uk.ac.ucl.cs.emofocl.jmibrowser
Class JMITreeCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by uk.ac.ucl.cs.emofocl.jmibrowser.JMITreeCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TreeCellEditor, ExtObjectListener

public class JMITreeCellEditor
extends AbstractCellEditor
implements TreeCellEditor, ExtObjectListener

A cell editor that knows how to parse strings, integers and doubles.

Author:
jwskene
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
JMITreeCellEditor()
           
 
Method Summary
 Object getCellEditorValue()
           
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
           
 boolean isCellEditable(EventObject anEvent)
          A cell is editable if its user object (model element) corresponds to a feature.
 void propertyValueAdded(ExtObjectEvent eOE)
           
 void propertyValueChanged(ExtObjectEvent eOE)
           
 void propertyValueRemoved(ExtObjectEvent eOE)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

JMITreeCellEditor

public JMITreeCellEditor()
Method Detail

isCellEditable

public boolean isCellEditable(EventObject anEvent)
A cell is editable if its user object (model element) corresponds to a feature.

Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class AbstractCellEditor
See Also:
CellEditor.isCellEditable(java.util.EventObject)

getTreeCellEditorComponent

public Component getTreeCellEditorComponent(JTree tree,
                                            Object value,
                                            boolean isSelected,
                                            boolean expanded,
                                            boolean leaf,
                                            int row)
Specified by:
getTreeCellEditorComponent in interface TreeCellEditor
See Also:
TreeCellEditor.getTreeCellEditorComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int)

stopCellEditing

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

getCellEditorValue

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

propertyValueAdded

public void propertyValueAdded(ExtObjectEvent eOE)
Specified by:
propertyValueAdded in interface ExtObjectListener

propertyValueRemoved

public void propertyValueRemoved(ExtObjectEvent eOE)
Specified by:
propertyValueRemoved in interface ExtObjectListener

propertyValueChanged

public void propertyValueChanged(ExtObjectEvent eOE)
Specified by:
propertyValueChanged in interface ExtObjectListener