y.view
Interface NodeCellEditor
- All Superinterfaces:
- javax.swing.CellEditor
public interface NodeCellEditor
- extends javax.swing.CellEditor
This interface is designed to behave like Swing's TableCellEditor
and TreeCellEditor.
It serves as a callback for CellEditorMode, e.g., which will query this interface for
a suitable JComponent that can be used to edit the node's value.
-
-
|
Method Summary |
javax.swing.JComponent |
getNodeCellEditorComponent(Graph2DView view,
NodeRealizer context,
java.lang.Object value,
boolean isSelected)
Callback method that prepares and returns a JComponent that can be used to
visually edit the node's data inside the Graph2DView. |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
getNodeCellEditorComponent
javax.swing.JComponent getNodeCellEditorComponent(Graph2DView view,
NodeRealizer context,
java.lang.Object value,
boolean isSelected)
- Callback method that prepares and returns a JComponent that can be used to
visually edit the node's data inside the Graph2DView.
- Parameters:
view - the view that contains the nodecontext - the node's realizervalue - the value that should be edited by this editorisSelected - whether the component should be rendered as selected
- Returns:
- a JComponent to use for editing the node's value