Java Code Examples for javax.swing.table.TableCellEditor#removeCellEditorListener()
The following examples show how to use
javax.swing.table.TableCellEditor#removeCellEditorListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EditableTableHeader.java From rapidminer-studio with GNU Affero General Public License v3.0 | 6 votes |
public void removeEditor() { TableCellEditor editor = getCellEditor(); if (editor != null) { editor.removeCellEditorListener(this); requestFocus(); remove(editorComp); int index = getEditingColumn(); Rectangle cellRect = getHeaderRect(index); setCellEditor(null); setEditingColumn(-1); editorComp = null; repaint(cellRect); } }
Example 2
Source File: EditableHeader.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 6 votes |
public void removeEditor() { final TableCellEditor editor = getCellEditor(); if ( editor != null ) { editor.removeCellEditorListener( this ); requestFocus(); remove( editorComp ); final int index = getEditingColumn(); final Rectangle cellRect = getHeaderRect( index ); setCellEditor( null ); setEditingColumn( -1 ); editorComp = null; repaint( cellRect ); } }
Example 3
Source File: EditableHeader.java From chipster with MIT License | 6 votes |
public void removeEditor() { TableCellEditor editor = getCellEditor(); if (editor != null) { editor.removeCellEditorListener(this); requestFocus(); remove(editorComp); int index = getEditingColumn(); Rectangle cellRect = getHeaderRect(index); setCellEditor(null); setEditingColumn(-1); editorComp = null; repaint(cellRect); } }
Example 4
Source File: DelegatingCellEditor.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void removeCellEditorListener(CellEditorListener l) { TableCellEditor editor = currentEditor; if (editor == null && canceledEditorRef != null) { editor = canceledEditorRef.get(); } if (editor != null) { editor.removeCellEditorListener(l); } }
Example 5
Source File: AlternatingTableCellEditor.java From gate-core with GNU Lesser General Public License v3.0 | 5 votes |
/** * Remove the specified listener from <em>all</em> the delegate editors. * @param l the listener to remove. */ @Override public void removeCellEditorListener(CellEditorListener l) { for(TableCellEditor e : editors) { e.removeCellEditorListener(l); } }
Example 6
Source File: EditableTableHeader.java From rapidminer-studio with GNU Affero General Public License v3.0 | 5 votes |
public void setCellEditor(TableCellEditor newEditor) { TableCellEditor oldEditor = cellEditor; cellEditor = newEditor; // firePropertyChange if (oldEditor != null) { oldEditor.removeCellEditorListener(this); } if (newEditor != null) { newEditor.addCellEditorListener(this); } }
Example 7
Source File: EditableHeader.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
public void setCellEditor( final TableCellEditor newEditor ) { final TableCellEditor oldEditor = cellEditor; cellEditor = newEditor; if ( oldEditor != null ) { oldEditor.removeCellEditorListener( this ); } if ( newEditor != null ) { newEditor.addCellEditorListener( this ); } }