public void propertyChange(PropertyChangeEvent event) { update(); ((ListSelectionModel) event.getOldValue()).removeListSelectionListener(this); ((ListSelectionModel) event.getNewValue()).addListSelectionListener(this); }
public synchronized void syntheticUnbind() { boundTable.removePropertyChangeListener("selectionModel", this); boundTable.getSelectionModel().removeListSelectionListener(this); boundTable = null; }
oldModelS.removeListSelectionListener(selectionL);
@Override public void close() throws IOException { if(cmpt!=null && l!=null ){ cmpt.removeListSelectionListener(l); cmpt = null; l = null; } } };
@Override public void removeListSelectionListener(ListSelectionListener x) { delegate.removeListSelectionListener(x); } }
public void setListModels(ListAdapterListModel<E> listAdapterListModel, ListSelectionModel listSelectionModel) { this.listAdapterListModel = listAdapterListModel; if (this.listSelectionModel != null) { this.listSelectionModel .removeListSelectionListener(listSelectionAdapter); } this.listSelectionModel = listSelectionModel; if (listSelectionModel != null) { listSelectionModel.addListSelectionListener(listSelectionAdapter); } }
/** @inheritDoc */ public void setSelectionModel(ListSelectionModel newModel) { if (newModel == null) throw new IllegalArgumentException("newModel may not be null"); if (newModel != selectionModel) { if (selectionModel != null) selectionModel.removeListSelectionListener(this); selectionModel = newModel; selectionModel.addListSelectionListener(this); } }
/** * @see Disposable#dispose() */ @Override public void dispose() { if (table != null) { table.getSelectionModel().removeListSelectionListener(selectionAdapter); table.removePropertyChangeListener("selectionModel", selectionAdapter); table = null; } }
@Override public void valueChanged(ListSelectionEvent event) { ListSelectionModel listSelectionModel = ( ListSelectionModel ) event.getSource(); listSelectionModel.removeListSelectionListener( this ); model.setRowCount(0); model.addRow(new Object[]{"1", "2", "3"}); model.addRow(new Object[]{"4", "2", "3"}); model.addRow(new Object[]{"3", "2", "3"}); model.addRow(new Object[]{"2", "2", "3"}); listSelectionModel.addListSelectionListener( this ); }
public void propertyChange(PropertyChangeEvent event) { update(); ((ListSelectionModel) event.getOldValue()).removeListSelectionListener(this); ((ListSelectionModel) event.getNewValue()).addListSelectionListener(this); }
/** * Set the ListSelectionModel used by this component. * @param sel the list selection model to use */ public void setSelectionModel(ListSelectionModel sel) { m_sel.removeListSelectionListener(m_lstnr); m_sel = sel; m_sel.addListSelectionListener(m_lstnr); m_lstnr.valueChanged(null); }
protected void listeningStopped() { table.getSelectionModel().removeListSelectionListener(handler); table.removePropertyChangeListener("selectionModel", handler); cachedElementOrElements = null; handler = null; }
public synchronized void syntheticUnbind() { boundTable.removePropertyChangeListener("selectionModel", this); boundTable.getSelectionModel().removeListSelectionListener(this); boundTable = null; }
/** * Deinitializes listeners. */ @Override public void removeNotify () { super.removeNotify (); table.getSelectionModel().removeListSelectionListener(managerListener); }
/** Stops the plugin * */ public void shutdown() { perspectivelist.getSelectionModel().removeListSelectionListener(perspectiveController_); while (((DefaultTableModel) perspectivelist.getModel()).getRowCount() > 0) ((DefaultTableModel) perspectivelist.getModel()).removeRow(0); dataviewlist.removeListSelectionListener(dataviewController_); ((DefaultComboBoxModel) dataviewlist.getModel()).removeAllElements(); }
public void selectedOntologyChanged() { updateEnabled(); if (table != null) { table.getSelectionModel().removeListSelectionListener(tableSelectionListener); } table = tables.getPrefixMapperTable(); if (table != null) { table.getSelectionModel().addListSelectionListener(tableSelectionListener); } } };
public void selectedOntologyChanged() { updateEnabled(); if (table != null) { table.getSelectionModel().removeListSelectionListener(tableSelectionListener); } table = tables.getPrefixMapperTable(); if (table != null) { table.getSelectionModel().addListSelectionListener(tableSelectionListener); } } };
protected void listeningStopped() { list.getSelectionModel().removeListSelectionListener(handler); list.removePropertyChangeListener("model", handler); list.removePropertyChangeListener("selectionModel", handler); cachedElementOrElements = null; handler = null; }
public void setSelectionModel(final ListSelectionModel _selectionModel) { // ne pas mettre getSelectionModel dans une variable ! if (getSelectionModel() != null) { getSelectionModel().removeListSelectionListener(this); } super.setSelectionModel(_selectionModel); if (getSelectionModel() != null) { getSelectionModel().addListSelectionListener(this); } }
@Override public void removeDataBinding() { removePropertyChangeListener("enabled", this); removePropertyChangeListener("list", this); if (getList() != null) { ListSelectionModel $target = (ListSelectionModel) $bindingSources.remove(" getList().getSelectionModel()"); if ($target != null) { $target.removeListSelectionListener( JAXXUtil.getEventListener(ListSelectionListener.class, this, "$pr$u0")); } getList().removePropertyChangeListener("selectionModel", JAXXUtil.getDataBindingUpdateListener(jaxx.runtime.swing.editor.bean.BeanListHeader.this, BINDING_RESET_SELECTION_ENABLED)); } }