gate.gui
Class MainFrame.ResourcesTreeCellEditor

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

protected class MainFrame.ResourcesTreeCellEditor
extends DefaultTreeCellEditor


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.tree.DefaultTreeCellEditor
DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainer
 
Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeCellEditor
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, lastPath, lastRow, offset, realEditor, renderer, timer, tree
 
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. correct discovery of icon)
protected  void startEditingTimer()
          This is the original implementation from the super class with some changes (i.e. shorter timer: 500 ms instead of 1200)
 
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
 

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