NWNDialogEditorInterface
Class MainWindow.EditWindow.TreeEditor

java.lang.Object
  |
  +--NWNDialogEditorInterface.MainWindow.EditWindow.TreeEditor
All Implemented Interfaces:
CellEditor, EventListener, KeyListener, TreeCellEditor
Enclosing class:
MainWindow.EditWindow

protected class MainWindow.EditWindow.TreeEditor
extends Object
implements TreeCellEditor, KeyListener

15 juil. 2003

Author:
Alexandre Brunel This class allows to edit a dialog tree.

Constructor Summary
MainWindow.EditWindow.TreeEditor()
          Constructs a TreeEditor object.
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
           
 void cancelCellEditing()
           
 Object getCellEditorValue()
           
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
           
 boolean isCellEditable(EventObject anEvent)
           
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void removeCellEditorListener(CellEditorListener l)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainWindow.EditWindow.TreeEditor

public MainWindow.EditWindow.TreeEditor()
Constructs a TreeEditor object.

Method Detail

addCellEditorListener

public void addCellEditorListener(CellEditorListener l)
Specified by:
addCellEditorListener in interface CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

getTreeCellEditorComponent

public Component getTreeCellEditorComponent(JTree tree,
                                            Object value,
                                            boolean isSelected,
                                            boolean expanded,
                                            boolean leaf,
                                            int row)
Specified by:
getTreeCellEditorComponent in interface TreeCellEditor

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface CellEditor

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)
Specified by:
removeCellEditorListener in interface CellEditor

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Specified by:
shouldSelectCell in interface CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor