|
|||||||||
| 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.builder.FormInfoTreeTableAdapter
public class FormInfoTreeTableAdapter
| Field Summary |
|---|
| Fields inherited from class org.formaria.aria.data.DataModel |
|---|
parentModel, tagName |
| Constructor Summary | |
|---|---|
FormInfoTreeTableAdapter(java.util.List<java.lang.String> aPropertyList,
java.util.Map<java.lang.String,java.lang.Object> aFieldProperties)
|
|
| Method Summary | |
|---|---|
void |
append(DataModel arg0)
Append a node |
java.lang.Object |
append(java.lang.String arg0)
Append a new node with the specified name. |
java.lang.Object |
get()
gets the value attribute |
DataModel |
get(int idx)
Get the DataModel at element i |
java.lang.String |
getAttribName(int idx)
Retrieve the name of the attribute at the specified index |
int |
getAttribute(java.lang.String arg0)
returns the index of the attribiteNames array whose value is the same as the attribName |
java.lang.Object |
getAttribValue(int idx)
Retrieve the value of the attribute at the specified index and return it. |
double |
getAttribValueAsDouble(int arg0)
Retrieve the value of the attribute at the specified index, convert it to a double and return it. |
double |
getAttribValueAsDouble(int arg0,
char arg1,
char arg2)
Convert the attribute at the specified index to a double and return it |
int |
getAttribValueAsInt(int arg0)
Retrieve the value of the attribute at the specified index, convert it to an int and return it. |
java.lang.String |
getAttribValueAsString(int idx)
Retrieve the value of the attribute at the specified index, convert it to a String and return it. |
java.lang.String |
getId()
Gets the value of the ID attribute |
int |
getNumAttributes()
Gets the number of attributes of this node |
int |
getNumChildren()
Gets the number of immediate children of this node |
double |
getValueAsDouble(java.lang.String arg0)
Retrieve the named child, convert it's value to a double and return it. |
int |
getValueAsInt(java.lang.String arg0)
Retrieve the named child, convert it's value to an int and return it. |
java.lang.String |
getValueAsString(java.lang.String arg0)
Retrieve the named child, convert it's value to a String and return it. |
int |
hashCode()
Get a hash code for the node. |
void |
set(java.lang.Object arg0)
Sets the model value |
void |
set(java.lang.String arg0,
java.lang.Object arg1)
Set the named attribute value of this DataModel node. |
void |
setAttribValue(int idx,
java.lang.Object value)
Sets the attribute value |
void |
setAttribValue(int arg0,
java.lang.String arg1,
java.lang.Object arg2)
Sets the attribute name and value |
| Methods inherited from class org.formaria.aria.data.DataModel |
|---|
addModelListener, clear, fireModelUpdated, get, getParent, getTagName, hasAutoId, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setId, setNumAttributes, setNumChildren, setParent, setTagName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormInfoTreeTableAdapter(java.util.List<java.lang.String> aPropertyList,
java.util.Map<java.lang.String,java.lang.Object> aFieldProperties)
| Method Detail |
|---|
public java.lang.String getId()
DataModel
getId in class DataModel
public void set(java.lang.String arg0,
java.lang.Object arg1)
DataModel
set in class DataModelarg0 - The path to the DataModel in the format 'base/fooarg1 - The new value of the DataModelpublic int getAttribute(java.lang.String arg0)
DataModel
getAttribute in class DataModelarg0 - The name of the attribute we are trying to locate
public java.lang.String getAttribValueAsString(int idx)
DataModel
getAttribValueAsString in class DataModelidx - The index of the attributeValues array whose value we want
public void setAttribValue(int idx,
java.lang.Object value)
DataModel
setAttribValue in class DataModelidx - The index of the attributeValues array whose value we wantvalue - the value objectpublic java.lang.Object getAttribValue(int idx)
DataModel
getAttribValue in class DataModelidx - The index of the attributeValues array whose value we want
public void setAttribValue(int arg0,
java.lang.String arg1,
java.lang.Object arg2)
DataModel
setAttribValue in class DataModelarg0 - The index of the attributeValues array whose value we wantarg1 - the name of the attributearg2 - the value objectpublic DataModel get(int idx)
DataModel
get in class DataModelidx - The index of the values array
public int getNumChildren()
DataModel
getNumChildren in class DataModelpublic java.lang.Object get()
DataModel
get in class DataModelpublic void set(java.lang.Object arg0)
DataModel
set in class DataModelarg0 - the new valuepublic java.lang.String getAttribName(int idx)
DataModel
getAttribName in class DataModelidx - The index of the attributeNames array whose value we want
public int getNumAttributes()
DataModel
getNumAttributes in class DataModelpublic double getAttribValueAsDouble(int arg0)
DataModel
getAttribValueAsDouble in class DataModelarg0 - The index of the attributeValues array whose value we want
public double getAttribValueAsDouble(int arg0,
char arg1,
char arg2)
DataModel
getAttribValueAsDouble in class DataModelarg0 - The index of the attributeValues array whose value we wantarg1 - the decimal separatorarg2 - the grouping (thousands) separator
public int getAttribValueAsInt(int arg0)
DataModel
getAttribValueAsInt in class DataModelarg0 - The index of the attributeValues array whose value we want
public double getValueAsDouble(java.lang.String arg0)
DataModel
getValueAsDouble in class DataModelarg0 - The name of the child whose value is required
public int getValueAsInt(java.lang.String arg0)
DataModel
getValueAsInt in class DataModelarg0 - The name of the child to be retrieved
public java.lang.String getValueAsString(java.lang.String arg0)
DataModel
getValueAsString in class DataModelarg0 - The name of the child whose value is required
public int hashCode()
DataModel
hashCode in class DataModelpublic void append(DataModel arg0)
DataModel
append in class DataModelarg0 - the child nodepublic java.lang.Object append(java.lang.String arg0)
DataModel
append in class DataModelarg0 - The immediate path to the DataModel required
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||