gate.gui
Class MainFrame.ResourcesTreeCellEditor

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

protected class MainFrame.ResourcesTreeCellEditor
extends DefaultTreeCellEditor


Nested Class Summary
 
Nested classes 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
 
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)


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)