本文整理了Java中javax.swing.table.TableModel.removeTableModelListener()
方法的一些代码示例,展示了TableModel.removeTableModelListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableModel.removeTableModelListener()
方法的具体详情如下:
包路径:javax.swing.table.TableModel
类名称:TableModel
方法名:removeTableModelListener
暂无
代码示例来源:origin: groovy/groovy-core
protected void syntheticUnbind() {
boundTable.removePropertyChangeListener("model", this);
boundTable.getModel().removeTableModelListener(this);
}
代码示例来源:origin: groovy/groovy-core
public void propertyChange(PropertyChangeEvent event) {
update();
((TableModel) event.getOldValue()).removeTableModelListener(this);
((TableModel) event.getNewValue()).addTableModelListener(this);
}
}
代码示例来源:origin: chewiebug/GCViewer
/**
* Sets the new model and makes sure, that its data will be displayed. This table
* listens to data changes in the model and updates if necessary.
*
* @param model data to be displayed
*/
public void setModel(DoubleDataMapModel model) {
if (model == null) {
throw new IllegalArgumentException("Cannot set a null TableModel");
}
if (this.model != model) {
TableModel old = this.model;
if (old != null) {
old.removeTableModelListener(this);
}
this.model = model;
model.addTableModelListener(this);
}
checkStructure(model);
updateValues(model);
}
代码示例来源:origin: ron190/jsql-injection
/**
* Implement the PropertyChangeListener
*/
@Override
public void propertyChange(PropertyChangeEvent e) {
// When the TableModel changes we need to update the listeners
// and column widths
if ("model".equals(e.getPropertyName())) {
TableModel model = (TableModel)e.getOldValue();
model.removeTableModelListener( this );
model = (TableModel)e.getNewValue();
model.addTableModelListener( this );
this.adjustColumns();
}
}
代码示例来源:origin: ron190/jsql-injection
/**
* Indicate whether changes to the model should cause the width to be
* dynamically recalculated.
*/
public void setDynamicAdjustment(boolean isDynamicAdjustment) {
// May need to add or remove the TableModelListener when changed
if (this.isDynamicAdjustment != isDynamicAdjustment) {
if (isDynamicAdjustment) {
this.tableAdjust.addPropertyChangeListener( this );
this.tableAdjust.getModel().addTableModelListener( this );
} else {
this.tableAdjust.removePropertyChangeListener( this );
this.tableAdjust.getModel().removeTableModelListener( this );
}
}
this.isDynamicAdjustment = isDynamicAdjustment;
}
代码示例来源:origin: xyz.cofe/gui.swing
/**
* Снятие подписчика событий с оригинала
*/
protected void detachTMListener(){
if (this.tableModel != null) {
this.tableModel.removeTableModelListener(tableModelListener);
tableModelListenerStarted = false;
}
}
代码示例来源:origin: org.softsmithy.lib/lib-core
@Override
public void setTableModel(TableModel tableModel) {
if (this.tableModel != null) {
tableModel.removeTableModelListener(tableModelListener);
}
this.tableModel = tableModel;
if (this.tableModel != null) {
tableModel.addTableModelListener(tableModelListener);
}
}
代码示例来源:origin: kaikramer/keystore-explorer
@Override
public void propertyChange(PropertyChangeEvent e) {
// When the TableModel changes we need to update the listeners
// and column widths
if ("model".equals(e.getPropertyName())) {
TableModel model = (TableModel) e.getOldValue();
model.removeTableModelListener(this);
model = (TableModel) e.getNewValue();
model.addTableModelListener(this);
adjustColumns();
}
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
public void propertyChange(PropertyChangeEvent event) {
update();
((TableModel) event.getOldValue()).removeTableModelListener(this);
((TableModel) event.getNewValue()).addTableModelListener(this);
}
}
代码示例来源:origin: com.jidesoft/jide-oss
public void propertyChange(PropertyChangeEvent evt) {
if ("model".equals(evt.getPropertyName())) {
hidePopup();
if (evt.getOldValue() instanceof TableModel) {
((TableModel) evt.getOldValue()).removeTableModelListener(this);
}
if (evt.getNewValue() instanceof TableModel) {
((TableModel) evt.getNewValue()).addTableModelListener(this);
}
fireSearchableEvent(new SearchableEvent(this, SearchableEvent.SEARCHABLE_MODEL_CHANGE));
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
protected void detachEditor() {
super.detachEditor();
TableModel tableModel = outline.getModel();
tableModel.removeTableModelListener(this);
}
@Override
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
@Override
protected void detachEditor() {
super.detachEditor();
TableModel tableModel = outline.getModel();
tableModel.removeTableModelListener(this);
}
代码示例来源:origin: freeplane/freeplane
public void setTableModel(final TableModel tableModel) {
if (this.tableModel != null) {
this.tableModel.removeTableModelListener(tableModelListener);
}
this.tableModel = tableModel;
if (this.tableModel != null) {
this.tableModel.addTableModelListener(tableModelListener);
}
clearSortingState();
fireTableStructureChanged();
}
代码示例来源:origin: net.java.dev.jets3t/jets3t
public void setTableModel(TableModel tableModel) {
if (this.tableModel != null) {
this.tableModel.removeTableModelListener(tableModelListener);
}
this.tableModel = tableModel;
if (this.tableModel != null) {
this.tableModel.addTableModelListener(tableModelListener);
}
clearSortingState();
fireTableStructureChanged();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* @param oldValue
*/
protected void updateModel(TableModel oldValue) {
if (oldValue != null) {
oldValue.removeTableModelListener(getTableModelListener());
}
table.getModel().addTableModelListener(getTableModelListener());
updatePreferredRowHeights();
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* @param oldValue
*/
protected void updateModel(TableModel oldValue) {
if (oldValue != null) {
oldValue.removeTableModelListener(getTableModelListener());
}
table.getModel().addTableModelListener(getTableModelListener());
updatePreferredRowHeights();
}
代码示例来源:origin: net.sourceforge.jadex/jadex-rules-tools
public void setTableModel(TableModel tableModel) {
if (this.tableModel != null) {
this.tableModel.removeTableModelListener(tableModelListener);
}
this.tableModel = tableModel;
if (this.tableModel != null) {
this.tableModel.addTableModelListener(tableModelListener);
}
clearSortingState();
fireTableStructureChanged();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
void deinstall() {
if (focusOwner != null) {
focusOwner.removeKeyListener(this);
if (table.equals(focusOwner)) table.removeFocusListener(this);
focusOwner = null;
}
table.getModel().removeTableModelListener(this);
table.removeComponentListener(this);
table.removeHierarchyListener(this);
table.removeHierarchyBoundsListener(this);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
public void removeNotify() {
propertiesTable.getTableModel().removeTableModelListener(this);
HgModuleConfig.getDefault().getPreferences().removePreferenceChangeListener(this);
super.removeNotify();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
public void removeNotify() {
propertiesTable.getTableModel().removeTableModelListener(this);
HgModuleConfig.getDefault().getPreferences().removePreferenceChangeListener(this);
super.removeNotify();
}
内容来源于网络,如有侵权,请联系作者删除!