G4P GUI Builder
4.4
Visual GUI designer for the G4P v4.3.1 library
|
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 |
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.
g4p.tool.gui.propertygrid.Property.Property | ( | Object | o, |
Field | f | ||
) |
Creates a property from the gien object and field.
o | |
f |
|
private |
Get the value stored in a field and return it as an Object.
f | the field required |
obj | the object it applies to |
Object g4p.tool.gui.propertygrid.Property.getValue | ( | ) |
Get the value of this property. Used by the property grid to decide what should be shown.
|
private |
Store a value in a field.
f | |
obj | |
value |
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.