Package mgui.interfaces.attributes.tree
Class AttributeTreeCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
mgui.interfaces.attributes.tree.AttributeTreeCellEditor
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.ItemListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.CellEditor
,javax.swing.tree.TreeCellEditor
public class AttributeTreeCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.tree.TreeCellEditor, java.awt.event.ItemListener, java.awt.event.ActionListener
Cell editor for an attribute tree node.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
CMD_CHANGE_BOOL
java.lang.String
CMD_CHANGE_COLOUR
java.lang.String
CMD_CHANGE_STROKE
java.lang.String
CMD_CHANGE_TEXT
java.lang.String
CMD_CHANGE_TYPE
protected java.awt.Color
selectedBG
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
Constructors Constructor Description AttributeTreeCellEditor()
-
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
java.lang.Object
getCellEditorValue()
java.awt.Color
getSelectedBackground()
java.awt.Component
getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean sel, boolean expanded, boolean leaf, int row)
void
itemStateChanged(java.awt.event.ItemEvent e)
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
-
Field Details
-
selectedBG
protected java.awt.Color selectedBG -
CMD_CHANGE_COLOUR
public final java.lang.String CMD_CHANGE_COLOUR- See Also:
- Constant Field Values
-
CMD_CHANGE_BOOL
public final java.lang.String CMD_CHANGE_BOOL- See Also:
- Constant Field Values
-
CMD_CHANGE_TEXT
public final java.lang.String CMD_CHANGE_TEXT- See Also:
- Constant Field Values
-
CMD_CHANGE_TYPE
public final java.lang.String CMD_CHANGE_TYPE- See Also:
- Constant Field Values
-
CMD_CHANGE_STROKE
public final java.lang.String CMD_CHANGE_STROKE- See Also:
- Constant Field Values
-
-
Constructor Details
-
AttributeTreeCellEditor
public AttributeTreeCellEditor()
-
-
Method Details
-
getSelectedBackground
public java.awt.Color getSelectedBackground() -
getTreeCellEditorComponent
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean sel, boolean expanded, boolean leaf, int row)- Specified by:
getTreeCellEditorComponent
in interfacejavax.swing.tree.TreeCellEditor
-
getCellEditorValue
public java.lang.Object getCellEditorValue()- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
-