fdda.dialog.swing.properties
Class MultiValueEditor

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

class MultiValueEditor
extends AbstractCellEditor

Editor for values of properties, when the property has multiple values. As soon as the property is changed, editngStopped is fired, though that doesn't necessarily mean that the dialog is closed. Works just like the ObjectInspector.

Author:
Jörg Rüdenauer

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
MultiValueEditor(Property aProperty, String title)
          Constructor
 
Method Summary
protected  void fireEditingCanceled()
           
protected  void fireEditingStopped()
           
 Object getCellEditorValue()
           
 Property getProperty()
          Returns the property
 Component getTableCellEditorComponent()
          Returns the cell editing component - in _this_ case, shows the dialog
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, 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

MultiValueEditor

public MultiValueEditor(Property aProperty,
                        String title)
Constructor

Parameters:
aProperty - the property
title - title for the dialog
Method Detail

getCellEditorValue

public Object getCellEditorValue()

getTableCellEditorComponent

public Component getTableCellEditorComponent()
Returns the cell editing component - in _this_ case, shows the dialog

Returns:
null

getProperty

public Property getProperty()
Returns the property

Returns:
the property

fireEditingStopped

protected void fireEditingStopped()
Overrides:
fireEditingStopped in class AbstractCellEditor

fireEditingCanceled

protected void fireEditingCanceled()
Overrides:
fireEditingCanceled in class AbstractCellEditor


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