org.formaria.editor.project.pages.components.properties
Class EventProperty
java.lang.Object
org.formaria.editor.project.pages.components.properties.PlainProperty
org.formaria.editor.project.pages.components.properties.EventProperty
public class EventProperty
- extends PlainProperty
A helper class to describe an event property
Copyright (c) Formaria Ltd., 2002-2003
$Revision: 1.1 $
|
Field Summary |
protected java.lang.reflect.Method |
adder
|
protected java.lang.Class |
clazz
|
protected java.lang.String |
eventName
|
protected long |
mask
|
| Fields inherited from class org.formaria.editor.project.pages.components.properties.PlainProperty |
argType, BOOLEAN_PROPERTY, COMPONENT_NAME_PROPERTY, currentProject, DATA_PROPERTY, DOUBLE_PROPERTY, EVENT_HANDLER_PROPERTY, getterMethod, getterName, IMAGE_NAME_PROPERTY, INT_LIST_PROPERTY, INTEGER_PROPERTY, isEnabled, LANG_PROPERTY, LAYOUT_CONSTRAINT_PROPERTY, LAYOUT_PROPERTY, LIST_PROPERTY, PLAIN_PROPERTY, propertyName, setterMethod, setterName, STYLE_PROPERTY, VALIDATION_PROPERTY |
|
Constructor Summary |
EventProperty(java.lang.String name,
java.lang.Class klass)
|
EventProperty(java.lang.String name,
long eventMask)
|
EventProperty(java.lang.String name,
java.lang.reflect.Method adderMethod)
|
|
Method Summary |
javax.swing.table.TableCellEditor |
getCellEditor(javax.swing.JTable table,
java.lang.Object comp,
EditorProject currentProject,
PropertyHelper propertyHelper,
java.lang.String propertyName,
int row,
int col,
java.lang.Object value)
Get a table cell editor |
java.lang.Class |
getEventClass()
|
long |
getEventMask()
|
int |
getPropertyType()
|
java.lang.Object |
getPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
Get the value of the property exposed by the component |
boolean |
setPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName,
java.lang.Object value)
Set the value of the property exposed by the component |
| Methods inherited from class org.formaria.editor.project.pages.components.properties.PlainProperty |
getBuilder, getDisplayPropertyValue, getEnabled, getExpression, getExpression, getIsCloneable, getOutputPropertyValue, getPropertyName, getViaReflection, isDataBindingProperty, setEnabled, setExpression, setExpression, setGetterName, setSetterName, setViaReflection, setViaReflection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventName
protected java.lang.String eventName
adder
protected java.lang.reflect.Method adder
mask
protected long mask
clazz
protected java.lang.Class clazz
EventProperty
public EventProperty(java.lang.String name,
java.lang.reflect.Method adderMethod)
EventProperty
public EventProperty(java.lang.String name,
long eventMask)
EventProperty
public EventProperty(java.lang.String name,
java.lang.Class klass)
getCellEditor
public javax.swing.table.TableCellEditor getCellEditor(javax.swing.JTable table,
java.lang.Object comp,
EditorProject currentProject,
PropertyHelper propertyHelper,
java.lang.String propertyName,
int row,
int col,
java.lang.Object value)
- Get a table cell editor
- Overrides:
getCellEditor in class PlainProperty
- Parameters:
table - the table being editedcomp - the current componentcurrentProject - the current projectpropertyHelper - the owner propertyHelperpropertyName - the property namerow - the current rowcol - the current columnthe - current value
getPropertyValue
public java.lang.Object getPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
- Get the value of the property exposed by the component
- Overrides:
getPropertyValue in class PlainProperty
- Parameters:
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instancepropertyName - the property name
- Returns:
- the value
setPropertyValue
public boolean setPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName,
java.lang.Object value)
- Set the value of the property exposed by the component
- Overrides:
setPropertyValue in class PlainProperty
- Parameters:
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instancepropertyName - the property name
- Returns:
- true if the property is set OK
getEventMask
public long getEventMask()
getEventClass
public java.lang.Class getEventClass()
getPropertyType
public int getPropertyType()
- Overrides:
getPropertyType in class PlainProperty