com.ca.directory.jxplorer.tree
Class SmartTreeCellEditor.MyTreeCellEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--javax.swing.DefaultCellEditor
|
+--com.ca.directory.jxplorer.tree.SmartTreeCellEditor.MyTreeCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
- Enclosing class:
- SmartTreeCellEditor
- public class SmartTreeCellEditor.MyTreeCellEditor
- extends javax.swing.DefaultCellEditor
A custom CellEditor that extends DefaultCellEditor, and changes the
internal editor delegate used to be the CellEditorGUI defined above.
(why they didn't allow DefaultCellEditor to be created with an
arbitrary editor component, who knows - the architecture is all there.).
- See Also:
- Serialized Form
| Nested classes inherited from class javax.swing.DefaultCellEditor |
javax.swing.DefaultCellEditor.EditorDelegate |
| Fields inherited from class javax.swing.DefaultCellEditor |
clickCountToStart, delegate, editorComponent |
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
|
Method Summary |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Returns the editor component, which is the internal CellEditorGUI
object created in the constructor, after setting the value it is
to display/edit. |
| Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| 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, removeCellEditorListener |
SmartTreeCellEditor.MyTreeCellEditor
public SmartTreeCellEditor.MyTreeCellEditor()
- Constructor automatically creates the editor with a
CellEditorGUI delegate.
getTreeCellEditorComponent
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
- Returns the editor component, which is the internal CellEditorGUI
object created in the constructor, after setting the value it is
to display/edit.
- Specified by:
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditor- Overrides:
getTreeCellEditorComponent in class javax.swing.DefaultCellEditor