|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.DataElement
com.ibm.btt.base.DataCollection
com.ibm.btt.base.KeyedCollection
com.ibm.btt.dojo.model.TreeModel
@EXTEND(value="NOT") @ATTR(value={"id#String#REQUIRED","value#String#IMPLIED","label#String#IMPLIED","description#String#IMPLIED"}) public class TreeModel
Wrapper data model for tree widget. Tree item need id, value, NLS label and children information which is exceed current KeyedCollection's capability, so this wrapper model is used to compose a pre-defined BTT model structure to present tree model and offers user friendly API to access the model.
Field Summary | |
---|---|
static java.lang.String |
CHILDREN
|
static java.lang.String |
LABEL
|
Fields inherited from class com.ibm.btt.base.KeyedCollection |
---|
bufferSize, DEFAULT_BUFFER_SIZE, DEFAULT_COMPRESSION, elements, nestedElements, order |
Fields inherited from class com.ibm.btt.base.DataElement |
---|
description, name, parameters, state |
Constructor Summary | |
---|---|
TreeModel()
Default constructor which should be only used by BTT Externalier internally. |
|
TreeModel(java.lang.String id,
java.lang.String value,
java.lang.String label)
Enhanced constructor which will be used by programming create instance. |
Method Summary | |
---|---|
void |
addChild(TreeModel treeModel)
Add tree item to current object. |
protected void |
addField(java.lang.String key,
java.lang.String value)
Used internally. |
TreeModel |
getChild(int index)
Get model of tree item from desired index. |
KeyedCollection |
getChildren()
Get the IndexedCollection which contains the children tree items. |
java.lang.String |
getItemValue()
Get the value of this tree item, this method is deficient from super.getValue() method. |
java.lang.String |
getLabel()
Get the label of this tree item which will be display to end user. |
java.lang.Object |
initializeFrom(Tag aTag)
Initialize a keyedCollection from its tag in XML. |
DataElement |
removeChild(java.lang.String aName)
Remove tree item from desired name. |
void |
setItemValue(java.lang.String value)
Set the value of this tree item, this method is deficient from super.setValue() method. |
void |
setLabel(java.lang.String label)
Set the label of this tree item which will be display to end user. |
Vector |
toStrings()
Returns a visual representation of the keyedCollection. |
Methods inherited from class com.ibm.btt.base.DataCollection |
---|
getValueAt, nestedElements, nestedElements, nestedFields, nestedKeyedCollections, nestedQualifiedElements, validate |
Methods inherited from class com.ibm.btt.base.DataElement |
---|
externalizer, getCompositeKey, getDescription, getDescriptor, getErrorInfo, getExternalizer, getKey, getName, getParameter, getParameters, getState, getTagName, isAmended, isCached, isSerializable, readExternal, readObject, removeExternal, setAmended, setCompositeKey, setDescription, setDescriptor, setErrorInfo, setExternalizer, setIsCached, setName, setParameter, setParameters, setSerializable, setState, toTags, validate, validateObject, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LABEL
public static final java.lang.String CHILDREN
Constructor Detail |
---|
public TreeModel()
public TreeModel(java.lang.String id, java.lang.String value, java.lang.String label)
id
- value
- label
- Method Detail |
---|
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
KeyedCollection
initializeFrom
in class KeyedCollection
aTag
- Tag
java.io.IOException
public void addChild(TreeModel treeModel)
treeModel
- public DataElement removeChild(java.lang.String aName)
aName
- the name of removed element
public KeyedCollection getChildren()
public TreeModel getChild(int index)
index
-
public void setLabel(java.lang.String label)
label
- public void setItemValue(java.lang.String value)
super.setValue()
method.
value
- public java.lang.String getLabel()
public java.lang.String getItemValue()
super.getValue()
method.
protected final void addField(java.lang.String key, java.lang.String value)
key
- value
- public Vector toStrings()
KeyedCollection
toStrings
in class KeyedCollection
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |