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 TypeMethodDescriptionvoidvoidgetTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) booleanisCellEditable(EventObject event) voidbooleanshouldSelectCell(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:
getTreeCellEditorComponentin interfaceTreeCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-