|
|||||||||
| 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
org.formaria.editor.project.pages.components.properties.ListProperty
public class ListProperty
A helper class to describe a list property. Sets and gets the exact text as it appears in the property palette
Copyright (c) Formaria Ltd., 2002-2003
$Revision: 1.6 $
| Field Summary | |
|---|---|
protected java.lang.reflect.Method |
getterMethod
|
protected int[] |
ids
|
protected java.lang.String[] |
options
|
| 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, 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 | |
|---|---|
ListProperty(java.lang.String name,
java.lang.String[] listOptions,
int[] listIds)
|
|
ListProperty(java.lang.String name,
java.lang.String getterMethodName,
java.lang.String setterMethodName,
java.lang.String[] listOptions,
int[] listIds)
|
|
| 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.String[] |
getListItems(PropertyHelper helper,
java.lang.Object comp)
Get the items to display for a list property |
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 void |
setPropertyValue(java.lang.Object comp,
java.lang.Object value,
int selIdx)
For convenience when subclassing this method is called from the public setPropertyValue mehtod. |
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 |
| Field Detail |
|---|
protected java.lang.String[] options
protected int[] ids
protected java.lang.reflect.Method getterMethod
| Constructor Detail |
|---|
public ListProperty(java.lang.String name,
java.lang.String[] listOptions,
int[] listIds)
public ListProperty(java.lang.String name,
java.lang.String getterMethodName,
java.lang.String setterMethodName,
java.lang.String[] listOptions,
int[] listIds)
| Method Detail |
|---|
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)
getCellEditor in class PlainPropertytable - the table being editedcomp - the current componentcurrentProject - the current projectpropertyHelper - the owner propertyHelperpropertyName - the property namerow - the current rowcol - the current columnthe - current value
public java.lang.Object getPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
getPropertyValue in class PlainPropertypropertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instancepropertyName - the property name
public boolean setPropertyValue(PropertyHelper propertyHelper,
PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName,
java.lang.Object value)
setPropertyValue in class PlainPropertypropertyHelper - the helper that is using this propertypageResource - the page resource to which this component belongscomp - the component instancepropertyName - the property name
protected void setPropertyValue(java.lang.Object comp,
java.lang.Object value,
int selIdx)
comp - the component instancevalue - the value to be assigned to the propertyselIdx - the index of the property if needed
public java.lang.String[] getListItems(PropertyHelper helper,
java.lang.Object comp)
helper - the calling property helper
public int getPropertyType()
getPropertyType in class PlainProperty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||