UniVista.beans
Class ArrayVariableDisplay.VariableCellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--javax.swing.DefaultCellEditor
              |
              +--UniVista.beans.ArrayVariableDisplay.VariableCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
Enclosing class:
ArrayVariableDisplay

protected class ArrayVariableDisplay.VariableCellEditor
extends javax.swing.DefaultCellEditor

the cell editor for the table. It is mostly a wrapper for the VariableUI interface.

See Also:
Serialized Form

Inner Class Summary
 class ArrayVariableDisplay.VariableCellEditor.EditButtonListener
           
 class ArrayVariableDisplay.VariableCellEditor.ValueEditDialogCallback
           
 class ArrayVariableDisplay.VariableCellEditor.ValueEditDialogRejectCallback
           
 
Inner classes inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ArrayVariableDisplay.VariableCellEditor()
          set up a new editor
 
Method Summary
protected  void fireEditingStopped()
          to make me protected
 java.lang.Object getCellEditorValue()
          return the value of the editor
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable t, java.lang.Object value, boolean isSelected, int row, int column)
          set up the editor button that pops up the value editing dialog box
 boolean isVariableObject(java.lang.Object obj)
          determine if a passed object is a Variable object through comparing its class names.
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, removeCellEditorListener
 
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, removeCellEditorListener
 

Constructor Detail

ArrayVariableDisplay.VariableCellEditor

public ArrayVariableDisplay.VariableCellEditor()
set up a new editor
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable t,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
set up the editor button that pops up the value editing dialog box
Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor

isVariableObject

public boolean isVariableObject(java.lang.Object obj)
determine if a passed object is a Variable object through comparing its class names. Because all variable types are subclasses of Variable, we can search up through the inheritence chain.

fireEditingStopped

protected void fireEditingStopped()
to make me protected
Overrides:
fireEditingStopped in class javax.swing.AbstractCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
return the value of the editor
Overrides:
getCellEditorValue in class javax.swing.DefaultCellEditor