|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.project.pages.components.properties.PlainProperty
public class PlainProperty
| Field Summary | |
|---|---|
protected java.lang.Class |
argType
|
static int |
BOOLEAN_PROPERTY
|
static int |
COMPONENT_NAME_PROPERTY
|
protected EditorProject |
currentProject
The owner project and the context in which this object operates. |
static int |
DATA_PROPERTY
|
static int |
DOUBLE_PROPERTY
|
static int |
EVENT_HANDLER_PROPERTY
|
protected java.lang.reflect.Method |
getterMethod
|
protected java.lang.String |
getterName
|
static int |
IMAGE_NAME_PROPERTY
|
static int |
INT_LIST_PROPERTY
|
static int |
INTEGER_PROPERTY
|
protected boolean |
isEnabled
|
static int |
LANG_PROPERTY
|
static int |
LAYOUT_CONSTRAINT_PROPERTY
|
static int |
LAYOUT_PROPERTY
|
static int |
LIST_PROPERTY
|
static int |
PLAIN_PROPERTY
|
protected java.lang.String |
propertyName
|
protected java.lang.reflect.Method |
setterMethod
|
protected java.lang.String |
setterName
|
static int |
STYLE_PROPERTY
|
static int |
VALIDATION_PROPERTY
|
| Constructor Summary | |
|---|---|
PlainProperty(java.lang.String name)
|
|
PlainProperty(java.lang.String name,
int type)
|
|
PlainProperty(java.lang.String getter,
java.lang.String setter)
|
|
PlainProperty(java.lang.String name,
java.lang.String getter,
java.lang.String setter)
|
|
| Method Summary | |
|---|---|
AriaBuilder |
getBuilder()
Get the page builder |
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.Object |
getDisplayPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
Get the value of the property displayed by the editor |
boolean |
getEnabled(java.lang.Object comp)
Get the enabled state of this property |
java.lang.String |
getExpression(java.lang.Object comp)
Get the expression value of this property if one exists |
java.lang.String |
getExpression(java.lang.Object comp,
java.lang.String name)
Get the expression value of this property if one exists |
boolean |
getIsCloneable()
Can this property value be cloned? |
java.lang.Object |
getOutputPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
Get the value of the property written to XML |
java.lang.String |
getPropertyName()
|
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 |
protected java.lang.Object |
getViaReflection(java.lang.String methodName,
java.lang.Object comp)
Get a property using refelction instead of the property helper. |
boolean |
isDataBindingProperty(java.lang.String propertyName)
Check if a property is a data binding property |
void |
setEnabled(java.lang.Object comp,
boolean state)
Set the enabled state of this property |
boolean |
setExpression(java.lang.Object comp,
java.lang.Object expression)
Set the expression value for this property |
boolean |
setExpression(java.lang.Object comp,
java.lang.String name,
java.lang.Object expression)
Set the expression value for this property |
void |
setGetterName(java.lang.String getter)
Set the getter name |
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 |
void |
setSetterName(java.lang.String setter)
Set the setter name |
protected boolean |
setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
boolean isBoolean)
Set a property using reflection instead of the property helper. |
boolean |
setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
java.lang.Class objectClass)
Set a property using refelction instead of the property helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PLAIN_PROPERTY
public static final int STYLE_PROPERTY
public static final int EVENT_HANDLER_PROPERTY
public static final int IMAGE_NAME_PROPERTY
public static final int LIST_PROPERTY
public static final int VALIDATION_PROPERTY
public static final int BOOLEAN_PROPERTY
public static final int DATA_PROPERTY
public static final int INTEGER_PROPERTY
public static final int DOUBLE_PROPERTY
public static final int LAYOUT_PROPERTY
public static final int LAYOUT_CONSTRAINT_PROPERTY
public static final int COMPONENT_NAME_PROPERTY
public static final int INT_LIST_PROPERTY
public static final int LANG_PROPERTY
protected java.lang.String getterName
protected java.lang.String setterName
protected java.lang.reflect.Method getterMethod
protected java.lang.reflect.Method setterMethod
protected java.lang.String propertyName
protected boolean isEnabled
protected java.lang.Class argType
protected EditorProject currentProject
| Constructor Detail |
|---|
public PlainProperty(java.lang.String getter,
java.lang.String setter)
public PlainProperty(java.lang.String name,
java.lang.String getter,
java.lang.String setter)
public PlainProperty(java.lang.String name)
public PlainProperty(java.lang.String name,
int type)
| Method Detail |
|---|
public AriaBuilder getBuilder()
public void setSetterName(java.lang.String setter)
setter - the setter namepublic void setGetterName(java.lang.String getter)
getter - the getter namepublic int getPropertyType()
public java.lang.String getPropertyName()
public boolean getEnabled(java.lang.Object comp)
public void setEnabled(java.lang.Object comp,
boolean state)
public boolean getIsCloneable()
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)
table - the table being editedcomp - the current componentcurrentProject - the current projectpropertyHelper - the owner propertyHelperpropertyName - the property namerow - the current rowcol - the current columnpropertyName - the property namethe - current value
public java.lang.Object getOutputPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instance
public java.lang.Object getPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instance
public java.lang.Object getDisplayPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instance
public boolean setPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName,
java.lang.Object value)
propertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instancepropertyName - the name of the property
protected java.lang.Object getViaReflection(java.lang.String methodName,
java.lang.Object comp)
methodName - the method namecomp - the component being modified
protected boolean setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
boolean isBoolean)
methodName - the method namecomp - the component being modifiedvalue - the new valueisBoolean - is it a boolean property being modified
public boolean setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
java.lang.Class objectClass)
methodName - the method namecomp - the component being modifiedvalue - the new valueobjectClass - the class of the argument of the set method being invoked
public java.lang.String getExpression(java.lang.Object comp)
public java.lang.String getExpression(java.lang.Object comp,
java.lang.String name)
public boolean setExpression(java.lang.Object comp,
java.lang.Object expression)
comp - the component instanceexpression - the new expression
public boolean setExpression(java.lang.Object comp,
java.lang.String name,
java.lang.Object expression)
comp - the component instanceexpression - the new expressionname - the name by which the property is known
public boolean isDataBindingProperty(java.lang.String propertyName)
propertyName - the name of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||