Package com.jsql.view.swing.tree
Class CellEditorNode
java.lang.Object
javax.swing.AbstractCellEditor
com.jsql.view.swing.tree.CellEditorNode
- All Implemented Interfaces:
MouseListener
,Serializable
,EventListener
,CellEditor
,TreeSelectionListener
,TreeCellEditor
public class CellEditorNode
extends AbstractCellEditor
implements TreeCellEditor, TreeSelectionListener, MouseListener
Tree cell editor responsible for mouse action on nodes.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTreeCellEditorComponent
(JTree tree, Object nodeRenderer, boolean selected, boolean expanded, boolean leaf, int row) void
void
void
void
void
void
valueChanged
(TreeSelectionEvent treeSelectionEvent) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Constructor Details
-
CellEditorNode
public CellEditorNode()Build editor, add tree and mouse listener.
-
-
Method Details
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object nodeRenderer, boolean selected, boolean expanded, boolean leaf, int row) - Specified by:
getTreeCellEditorComponent
in interfaceTreeCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
valueChanged
- Specified by:
valueChanged
in interfaceTreeSelectionListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-