public class ActiveLayerTableCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor, PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
changeEvent, listenerList| Constructor and Description |
|---|
ActiveLayerTableCellEditor()
Creates a new instance of ActiveLayerTableCellEditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing()
Calls
fireEditingCanceled. |
Object |
getCellEditorValue()
Returns the value contained in the editor.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Sets an initial
value for the editor. |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Sets an initial value for the editor.
|
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
|
boolean |
stopCellEditing()
Calls
fireEditingStopped and returns true. |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCellclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, isCellEditable, removeCellEditorListener, shouldSelectCellprotected static final boolean DEBUG
public ActiveLayerTableCellEditor()
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.
getTreeCellEditorComponent in interface TreeCellEditortree - the JTree that is asking the editor to edit; this parameter can be nullvalue - the value of the cell to be editedisSelected - true is the cell is to be renderer with selection highlightingexpanded - true if the node is expandedleaf - true if the node is a leaf noderow - the row index of the node being editedpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
value for the editor. This will cause the editor to stopEditing and
lose any partially edited value if the editor is editing when this method is called.
Returns the component that should be added to the client's Component hierarchy. Once installed in
the client's hierarchy this component will then be able to draw and receive user input.
getTableCellEditorComponent in interface TableCellEditortable - the JTable that is asking the editor to edit; can be nullvalue - the value of the cell to be edited; it is up to the specific editor to interpret and draw
the value. For example, if value is the string "true", it could be rendered as a string or
it could be rendered as a check box that is checked. null is a valid valueisSelected - true if the cell is to be rendered with highlightingrow - the row of the cell being editedcolumn - the column of the cell being editedpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source and the property that has changed.public void cancelCellEditing()
fireEditingCanceled.cancelCellEditing in interface CellEditorcancelCellEditing in class AbstractCellEditorpublic boolean stopCellEditing()
fireEditingStopped and returns true.stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorCopyright © 2012–2026 cismet GmbH. All rights reserved.