mondrian.gui
Class SchemaTreeCellEditor

java.lang.Object
  extended by javax.swing.tree.DefaultTreeCellEditor
      extended by mondrian.gui.SchemaTreeCellEditor
All Implemented Interfaces:
ActionListener, EventListener, CellEditor, TreeSelectionListener, TreeCellEditor

public class SchemaTreeCellEditor
extends DefaultTreeCellEditor

Author:
sarora
 

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.tree.DefaultTreeCellEditor
DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainer
 
Field Summary
(package private)  JComboBox listEditor
           
(package private)  ArrayList listeners
           
 
Fields inherited from class javax.swing.tree.DefaultTreeCellEditor
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, lastPath, lastRow, offset, realEditor, renderer, timer, tree
 
Constructor Summary
SchemaTreeCellEditor(Workbench workbench, JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
          Creates a new instance of SchemaTreeCellEditor
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
           
protected  void fireEditingStopped()
           
 Object getCellEditorValue()
           
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
           
 boolean isCellEditable(EventObject event)
           
 void removeCellEditorListener(CellEditorListener l)
           
 void setValueAt(JTree tree)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.tree.DefaultTreeCellEditor
actionPerformed, cancelCellEditing, canEditImmediately, createContainer, createTreeCellEditor, determineOffset, getBorderSelectionColor, getCellEditorListeners, getFont, inHitRegion, prepareForEditing, setBorderSelectionColor, setFont, setTree, shouldSelectCell, shouldStartEditingTimer, startEditingTimer, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listEditor

JComboBox listEditor

listeners

ArrayList listeners
Constructor Detail

SchemaTreeCellEditor

public SchemaTreeCellEditor(Workbench workbench,
                            JTree tree,
                            DefaultTreeCellRenderer renderer,
                            TreeCellEditor editor)
Creates a new instance of SchemaTreeCellEditor

Method Detail

getTreeCellEditorComponent

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

isCellEditable

public boolean isCellEditable(EventObject event)
Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class DefaultTreeCellEditor

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor
Overrides:
getCellEditorValue in class DefaultTreeCellEditor

fireEditingStopped

protected void fireEditingStopped()

addCellEditorListener

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

removeCellEditorListener

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

setValueAt

public void setValueAt(JTree tree)

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor
Overrides:
stopCellEditing in class DefaultTreeCellEditor

SourceForge.net_Logo