|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.data.DataModel
org.formaria.editor.data.pojo.PojoModelVis
org.formaria.editor.data.pojo.PojoModelEx
public class PojoModelEx
DataModel supporting properties with arguments. The first child of this node is a model node representing finder arguments, if there are any.
Copyright (c) Formaria Ltd., 2001-2007, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
| Field Summary | |
|---|---|
static int |
GETTER_ATTRIBUTE
|
protected boolean |
hasParameters
|
protected static java.util.Observable |
invocationErrorNotifier
|
protected boolean |
invocationOk
|
protected boolean |
isTransient
|
static int |
NUM_FIXED_ATTRIBUTE
|
protected PojoMethodArgs |
pojoMethodArgs
|
protected java.lang.String |
propertyName
|
static int |
SETTER_ATTRIBUTE
|
static int |
TRANSIENT_ATTRIBUTE
|
| Fields inherited from class org.formaria.editor.data.pojo.PojoModelVis |
|---|
adapter, ATTRIB_COMBO, ATTRIB_FREETEXT, ATTRIB_NEDITABLE, dataSource, getterSig, hashcode, ID_ATTRIBUTE, idAttrib, pojo, pojoClass, pojoCollection, pojoGetter, pojoSetter, setterSig, VALUE_ATTRIBUTE, valueAttrib |
| Fields inherited from class org.formaria.aria.data.DataModel |
|---|
parentModel, tagName |
| Constructor Summary | |
|---|---|
protected |
PojoModelEx(DataModel pn,
java.lang.Class clazz,
java.lang.String propName,
PojoDataSourceEx ds)
Creates a new instance of PojoModelEx |
protected |
PojoModelEx(DataModel pn,
java.lang.reflect.Method gtr,
java.lang.reflect.Method str,
java.lang.String propName,
PojoDataSourceEx ds)
Creates a new instance of PojoModelEx |
protected |
PojoModelEx(DataModel pn,
java.lang.Object p,
PojoDataSourceEx ds)
Creates a new instance of PojoModelEx |
| Method Summary | |
|---|---|
DataModel |
get(int i)
Gets the DataModel object located at the i
position. |
java.lang.Object |
get(java.lang.String element)
Gets the value located at the specified path |
java.lang.String[] |
getAttribAvailableValues(int i)
|
java.lang.String |
getAttribName(int i)
Retrieve the name of the attribute at the specified index |
boolean |
getAttribRuntime(int i)
Indicates whether the attribute will be available in the run-time mode. |
int |
getAttribType(int i)
|
java.lang.Object |
getAttribValue(int i)
Retrieve the value of the attribute at the specified index and return it. |
java.lang.String |
getAttribValueAsString(int i)
Returns the value of the attribute converted to a String at the specified index |
java.util.Vector |
getBindingAttributes()
Gets the list of this collection elemement's properties. |
java.lang.String |
getBindingPath()
Gets the runtime binding path of this model node |
java.lang.String |
getId()
Gets the id of this node |
static java.util.Observable |
getInvocationErrorNotifier()
Gets a method invocation error notifier |
int |
getNumAttributes()
Gets the number of attributes |
int |
getNumChildren()
Gets the number of children of this model node |
java.lang.Class[] |
getParameterTypes()
Gets the method parameter types. |
protected java.lang.Object[] |
getParameterValues()
Retrieves the method parameter values |
java.lang.Object |
getPojo()
Gets pojo wrapped by this model node |
java.lang.Class |
getPojoClass()
|
java.lang.String |
getPropertyName()
|
boolean |
hasParameters()
|
boolean |
isAttribEditable(int i)
|
boolean |
isCollection()
Indicates whether this model node wraps a collection. |
boolean |
isCollectionElement()
Indicates whether this model node is wrapping collection's element |
boolean |
isTransient()
Indicates whether the "transient" property of this mode is set. |
protected void |
notifyObservers(java.lang.Exception ex)
|
protected void |
obtainPropertyValue()
Obtains the underlying property value |
boolean |
parametersSet()
Indicates whether all finder arguments values were set. |
void |
setAttribValue(int i,
java.lang.Object value)
Sets the attribute value |
void |
setTransient(boolean state)
Sets the "transient" property of this model node. |
| Methods inherited from class org.formaria.editor.data.pojo.PojoModelVis |
|---|
append, append, get, getAdapter, getAttribute, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getCaption, getProperties, getValueAsDouble, getValueAsInt, getValueAsString, hashCode, isDirty, set, set, setAttribValue, setCaption, setDirty, setId, setPojo, setPojoClass, setPojoGetter, setPojoSetter |
| Methods inherited from class org.formaria.aria.data.DataModel |
|---|
addModelListener, clear, fireModelUpdated, getParent, getTagName, hasAutoId, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setNumAttributes, setNumChildren, setParent, setTagName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GETTER_ATTRIBUTE
public static final int SETTER_ATTRIBUTE
public static final int TRANSIENT_ATTRIBUTE
public static final int NUM_FIXED_ATTRIBUTE
protected boolean hasParameters
protected PojoMethodArgs pojoMethodArgs
protected java.lang.String propertyName
protected boolean invocationOk
protected boolean isTransient
protected static java.util.Observable invocationErrorNotifier
| Constructor Detail |
|---|
protected PojoModelEx(DataModel pn,
java.lang.reflect.Method gtr,
java.lang.reflect.Method str,
java.lang.String propName,
PojoDataSourceEx ds)
PojoModelEx
ds - the data source objectp - parent POJOfm - finder methodpropName - the name of the pojo property to be wrappedpm - the parent model node
protected PojoModelEx(DataModel pn,
java.lang.Class clazz,
java.lang.String propName,
PojoDataSourceEx ds)
PojoModelEx
pn - parent model nodeclazz - the class of the underlying POJOpropName - the name of the POJO property to be wrappedds - the data source object that's been used to load this model node
protected PojoModelEx(DataModel pn,
java.lang.Object p,
PojoDataSourceEx ds)
PojoModelEx
ds - data source objectp - POJO to be wrapped by this objectpn - parent model node| Method Detail |
|---|
public java.lang.Class getPojoClass()
getPojoClass in class PojoModelVispublic boolean isTransient()
public void setTransient(boolean state)
state - new state of the "transient" propertyprotected void obtainPropertyValue()
protected void notifyObservers(java.lang.Exception ex)
public DataModel get(int i)
i
position.
get in class PojoModelVisi - position of the node
public java.lang.Object get(java.lang.String element)
get in class DataModelelement - the path
public int getNumChildren()
getNumChildren in class DataModelpublic boolean hasParameters()
public boolean parametersSet()
protected java.lang.Object[] getParameterValues()
public java.lang.String getPropertyName()
public java.lang.Class[] getParameterTypes()
public java.util.Vector getBindingAttributes()
getBindingAttributes in interface ModelVisgetBindingAttributes in class PojoModelVispublic boolean isCollectionElement()
public boolean isCollection()
public java.lang.Object getPojo()
public java.lang.String getBindingPath()
getBindingPath in interface ModelVisgetBindingPath in class PojoModelVispublic int getNumAttributes()
PojoModelVis
getNumAttributes in class PojoModelVispublic java.lang.String getAttribName(int i)
DataModel
getAttribName in class PojoModelVisi - The index of the attributeNames array whose value we want
public java.lang.Object getAttribValue(int i)
DataModel
getAttribValue in class PojoModelVisi - The index of the attributeValues array whose value we want
public void setAttribValue(int i,
java.lang.Object value)
DataModel
setAttribValue in class PojoModelVisi - The index of the attributeValues array whose value we wantvalue - the value objectpublic java.lang.String getAttribValueAsString(int i)
getAttribValueAsString in class PojoModelVisi - the index of the attribute
public java.lang.String getId()
getId in class PojoModelVispublic static java.util.Observable getInvocationErrorNotifier()
public boolean getAttribRuntime(int i)
PojoModelVis
getAttribRuntime in class PojoModelVisi - the index of the attribute
public boolean isAttribEditable(int i)
isAttribEditable in class PojoModelVispublic int getAttribType(int i)
getAttribType in class PojoModelVispublic java.lang.String[] getAttribAvailableValues(int i)
getAttribAvailableValues in class PojoModelVis
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||