|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeCellEditor
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 |
Method Detail |
---|
javax.swing.JComponent getNodeCellEditorComponent(Graph2DView view, NodeRealizer context, java.lang.Object value, boolean isSelected)
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
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |