gate.gui
Class MainFrame.ResourcesTreeCellEditor

java.lang.Object
  |
  +--javax.swing.tree.DefaultTreeCellEditor
        |
        +--gate.gui.MainFrame.ResourcesTreeCellEditor
All Implemented Interfaces:
ActionListener, CellEditor, EventListener, TreeCellEditor, TreeSelectionListener
Enclosing class:
MainFrame

protected class MainFrame.ResourcesTreeCellEditor
extends DefaultTreeCellEditor


Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeCellEditor
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, lastPath, lastRow, offset, realEditor, renderer, timer, tree
 
Constructor Summary
(package private) MainFrame.ResourcesTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer)
           
 
Method Summary
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
          This is the original implementation from the super class with some changes (i.e.
protected  void startEditingTimer()
          This is the original implementation from the super class with some changes (i.e.
 
Methods inherited from class javax.swing.tree.DefaultTreeCellEditor
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, createContainer, createTreeCellEditor, determineOffset, getBorderSelectionColor, getCellEditorListeners, getCellEditorValue, getFont, inHitRegion, isCellEditable, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setTree, shouldSelectCell, shouldStartEditingTimer, stopCellEditing, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainFrame.ResourcesTreeCellEditor

MainFrame.ResourcesTreeCellEditor(JTree tree,
                                  DefaultTreeCellRenderer renderer)
Method Detail

startEditingTimer

protected void startEditingTimer()
This is the original implementation from the super class with some changes (i.e. shorter timer: 500 ms instead of 1200)

Overrides:
startEditingTimer in class DefaultTreeCellEditor

getTreeCellEditorComponent

public Component getTreeCellEditorComponent(JTree tree,
                                            Object value,
                                            boolean isSelected,
                                            boolean expanded,
                                            boolean leaf,
                                            int row)
This is the original implementation from the super class with some changes (i.e. correct discovery of icon)

Specified by:
getTreeCellEditorComponent in interface TreeCellEditor
Overrides:
getTreeCellEditorComponent in class DefaultTreeCellEditor