Class DummyTreeCellEditor
java.lang.Object
gg.xp.xivsupport.events.triggers.easytriggers.gui.tree.DummyTreeCellEditor
- All Implemented Interfaces:
CellEditor
,TreeCellEditor
Class that lets us use a workaround to this issue.
We use an artificially-started edit + immediate cancel to get the BasicTreeUI to realize that the cell size has changed after we change the name of a trigger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) boolean
isCellEditable
(EventObject event) void
boolean
shouldSelectCell
(EventObject anEvent) boolean
-
Constructor Details
-
DummyTreeCellEditor
public DummyTreeCellEditor()
-
-
Method Details
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) - Specified by:
getTreeCellEditorComponent
in interfaceTreeCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditing
in interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-