fdda.propertyTypes.implementations
Class StringEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--fdda.dialog.swing.properties.OiCellEditor
              |
              +--fdda.propertyTypes.implementations.StringEditor
All Implemented Interfaces:
CellEditor, Serializable

public class StringEditor
extends OiCellEditor

Editor for strings - uses a textfield.

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

Field Summary
 
Fields inherited from class fdda.dialog.swing.properties.OiCellEditor
generator, myProperty, value
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
StringEditor(Property property, Object value, StringGenerator generator)
          Default constructor.
 
Method Summary
 Component getTableCellEditorComponent()
          Returns the real editor.
protected  String getValueAsString()
          Returns a string representation of the value
 
Methods inherited from class fdda.dialog.swing.properties.OiCellEditor
checkValue, fireEditingStopped, getCellEditorValue
 
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
 

Constructor Detail

StringEditor

public StringEditor(Property property,
                    Object value,
                    StringGenerator generator)
Default constructor.

Parameters:
property - the property whose value will be edited
value - the value
generator - generator for string objects
Method Detail

getValueAsString

protected String getValueAsString()
Description copied from class: OiCellEditor
Returns a string representation of the value

Specified by:
getValueAsString in class OiCellEditor
Returns:
value as string

getTableCellEditorComponent

public Component getTableCellEditorComponent()
Description copied from class: OiCellEditor
Returns the real editor.

Specified by:
getTableCellEditorComponent in class OiCellEditor
Returns:
the editor


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