Package mgui.interfaces.trees
Class InterfaceTreeCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
mgui.interfaces.trees.InterfaceTreeCellEditor
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.tree.TreeCellEditor
public class InterfaceTreeCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.tree.TreeCellEditor
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap<java.lang.Class,javax.swing.tree.TreeCellEditor>
editors
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
Constructors Constructor Description InterfaceTreeCellEditor()
-
Method Summary
Modifier and Type Method Description void
addEditor(java.lang.Class c, javax.swing.tree.TreeCellEditor e)
java.lang.Object
getCellEditorValue()
protected javax.swing.tree.TreeCellEditor
getEditorForObject(java.lang.Object value)
java.awt.Component
getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
void
removeEditor(javax.swing.tree.TreeCellEditor e)
void
setDefaultEditor(javax.swing.tree.TreeCellEditor 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
-
editors
public java.util.HashMap<java.lang.Class,javax.swing.tree.TreeCellEditor> editors
-
-
Constructor Details
-
InterfaceTreeCellEditor
public InterfaceTreeCellEditor()
-
-
Method Details
-
setDefaultEditor
public void setDefaultEditor(javax.swing.tree.TreeCellEditor e) -
addEditor
public void addEditor(java.lang.Class c, javax.swing.tree.TreeCellEditor e) -
removeEditor
public void removeEditor(javax.swing.tree.TreeCellEditor e) -
getTreeCellEditorComponent
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, 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
-
getEditorForObject
protected javax.swing.tree.TreeCellEditor getEditorForObject(java.lang.Object value)
-