|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public TypeGenerator getTypeGenerator()
public OiCellEditor getCellEditor(Property property, Object value)
property
- the property whose value shall be editedvalue
- the value that will be edited
public Component getCellRenderer(Property property, int column)
property
- the property whose value shall be visualizedcolumn
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |