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


Inner classes inherited from class javax.swing.tree.DefaultTreeCellEditor
DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainer
 
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, getCellEditorValue, getFont, inHitRegion, isCellEditable, prepareForEditing, readObject, removeCellEditorListener, setBorderSelectionColor, setFont, setTree, shouldSelectCell, shouldStartEditingTimer, stopCellEditing, valueChanged, writeObject
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, 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)
Overrides:
getTreeCellEditorComponent in class DefaultTreeCellEditor