fdda.dialog.swing.properties
Class OiCellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--fdda.dialog.swing.properties.OiCellEditor
All Implemented Interfaces:
CellEditor, Serializable
Direct Known Subclasses:
BooleanEditor, DoubleEditor, IntegerEditor, NodeTypeEditor, StringEditor

public abstract class OiCellEditor
extends AbstractCellEditor

An abstract class, extending the cell editor. Superclass of the special editors for each property type.

Author:
Jörg Rüdenauer
See Also:
Serialized Form

Field Summary
protected  TypeGenerator generator
          Generator for the type
protected  Property myProperty
          the property
protected  Object value
          the value
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
OiCellEditor(Property property, Object value, TypeGenerator generator)
          Default constructor
 
Method Summary
protected  boolean checkValue(Object value)
          Checks for errors after editing.
protected  void fireEditingStopped()
           
 Object getCellEditorValue()
           
abstract  Component getTableCellEditorComponent()
          Returns the real editor.
protected abstract  String getValueAsString()
          Returns a string representation of the value
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myProperty

protected Property myProperty
the property


value

protected Object value
the value


generator

protected TypeGenerator generator
Generator for the type

Constructor Detail

OiCellEditor

public OiCellEditor(Property property,
                    Object value,
                    TypeGenerator generator)
Default constructor

Parameters:
property - the property
value - the value
generator - TypeGenerator for the type
Method Detail

getCellEditorValue

public Object getCellEditorValue()

getTableCellEditorComponent

public abstract Component getTableCellEditorComponent()
Returns the real editor.

Returns:
the editor

checkValue

protected boolean checkValue(Object value)
Checks for errors after editing.

Parameters:
value - the value
Returns:
whether the value is ok

getValueAsString

protected abstract String getValueAsString()
Returns a string representation of the value

Returns:
value as string

fireEditingStopped

protected void fireEditingStopped()
Overrides:
fireEditingStopped in class AbstractCellEditor


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.