G4P GUI Builder  4.4
Visual GUI designer for the G4P v4.3.1 library
 All Classes Namespaces Functions Variables
g4p.tool.gui.propertygrid.Property Class Reference
Inheritance diagram for g4p.tool.gui.propertygrid.Property:

Public Member Functions

 Property (Object o, Field f)
 
Object getValue ()
 
void setValue (Object value)
 
int compareTo (Object o)
 

Public Attributes

Object fieldFromObject
 
Field field
 
String fieldName
 
String shortFieldName
 
String cellLabel
 
String tooltip = null
 
Method updateMethod = null
 
Validator validator = null
 
EditorBase cell_editor = null
 
TableCellRenderer renderer = null
 
boolean allowEdit = true
 
boolean show = true
 

Private Member Functions

Object getFieldValue (Field f, Object obj)
 
void setFieldValue (Field f, Object obj, Object value) throws IllegalArgumentException, IllegalAccessException
 

Detailed Description

This class represents a 'property' that is to be shown in the property grid and is linked to a field in the D component object.

Author
Peter Lager

Constructor & Destructor Documentation

g4p.tool.gui.propertygrid.Property.Property ( Object  o,
Field  f 
)

Creates a property from the gien object and field.

Parameters
o
f

Member Function Documentation

Object g4p.tool.gui.propertygrid.Property.getFieldValue ( Field  f,
Object  obj 
)
private

Get the value stored in a field and return it as an Object.

Parameters
fthe field required
objthe object it applies to
Returns
Object g4p.tool.gui.propertygrid.Property.getValue ( )

Get the value of this property. Used by the property grid to decide what should be shown.

Returns
void g4p.tool.gui.propertygrid.Property.setFieldValue ( Field  f,
Object  obj,
Object  value 
) throws IllegalArgumentException, IllegalAccessException
private

Store a value in a field.

Parameters
f
obj
value
Exceptions
IllegalArgumentException
IllegalAccessException
void g4p.tool.gui.propertygrid.Property.setValue ( Object  value)

This is a really important method in that it is called when a cell in the property grid loses focus. It stores the edited value in the attribute and calls the property updater method if any.


The documentation for this class was generated from the following file: