fdda.propertyTypes
Class AbstractPropertyType

java.lang.Object
  |
  +--fdda.propertyTypes.AbstractPropertyType
All Implemented Interfaces:
PropertyType
Direct Known Subclasses:
BooleanType, DoubleType, IntegerType, NodeTypeType, StringType

public abstract class AbstractPropertyType
extends Object
implements PropertyType

Abstract implementation of PropertyType, superclass for the real property types. Stores the corresponding type generator and provides a default implementation of getCellRenderer that uses a JLabel.

Author:
Jörg Rüdenauer

Field Summary
protected  TypeGenerator generator
          the type generator
 
Constructor Summary
AbstractPropertyType()
          Default constructor.
 
Method Summary
 Component getCellRenderer(Property inProperty, int column)
          Returns a cell renderer that visualizes values of this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fdda.propertyTypes.PropertyType
getCellEditor, getTypeGenerator
 

Field Detail

generator

protected TypeGenerator generator
the type generator

Constructor Detail

AbstractPropertyType

public AbstractPropertyType()
Default constructor.

Method Detail

getCellRenderer

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

Specified by:
getCellRenderer in interface PropertyType
Parameters:
inProperty - 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.