fdda.propertyTypes
Interface PropertyType

All Known Implementing Classes:
AbstractPropertyType

public interface PropertyType

The generic interface for the possible types of a property value. Each type must provide a 'generator' that can clone values and check whether a value is correct. It must also provide an editor that can be used in the property edit panel and a cell renderer that visualizes values when they are not edited. Property types are loaded dynamically as needed. It is therefore possible to add new types to the application without recompiling. If a property is assigned the type 'X', the application will look for a class 'fdda.propertyTypes.XType' which implements this interface.

Author:
Jörg Rüdenauer

Method Summary
 OiCellEditor getCellEditor(Property property, Object value)
          Returns an editor for values of this type.
 Component getCellRenderer(Property property, int column)
          Returns a cell renderer that visualizes values of this type.
 TypeGenerator getTypeGenerator()
          Returns a generator for the type.
 

Method Detail

getTypeGenerator

public TypeGenerator getTypeGenerator()
Returns a generator for the type.

Returns:
generator

getCellEditor

public OiCellEditor getCellEditor(Property property,
                                  Object value)
Returns an editor for values of this type. The editor should fit into a table cell of the property edit panel.

Parameters:
property - the property whose value shall be edited
value - the value that will be edited
Returns:
the editor for this value

getCellRenderer

public Component getCellRenderer(Property property,
                                 int column)
Returns a cell renderer that visualizes values of this type. This cell renderer is used in the table of the property edit panel.

Parameters:
property - the property whose value shall be visualized
column - the column in the table - 0 is the left column that normally just contains the name of the property. 1 is the right column that normally contains the value.
Returns:
renderer for a table cell


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