|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode
com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNodeMapped
public class ContextNodeMapped
The WDL RT ContextNode mapped.
| Field Summary |
|---|
| Fields inherited from class com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode |
|---|
DEFAULT_DOMAIN_SIZE, isActive, modelRelationRole, raw_data, raw_data_iterator, supplyFunctionId |
| Fields inherited from interface com.sap.tc.mobile.wdlite.progmodel.core.Const |
|---|
CARDINALITY_0_1, CARDINALITY_0_N, CARDINALITY_1_1, CARDINALITY_1_N, EMPTY_ARR, EMPTY_CLASS_ARR, EMPTY_INT_ARRAY, EMPTY_INT_ARRAY2, EMPTY_MAP, FALSE, NAV_INFO_COMPONENT, NAV_INFO_PLUG, NAV_INFO_VIEW, NONE, PROPERTY_EMPTY_ARRAY, TRUE, TYPE_BINARY, TYPE_BOOLEAN, TYPE_DATE, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_SHORT, TYPE_STRING, TYPE_TIME, TYPE_TIMESTAMP |
| Constructor Summary | |
|---|---|
ContextNodeMapped(Context context,
int id,
java.lang.String name,
int parent,
int cardinality,
int selectionCardinality,
boolean singleton,
IWDNodeAttribute[] attributes,
int[] child,
java.lang.Object structure,
int mappedNodeId,
Controller ctrl)
|
|
| Method Summary | |
|---|---|
void |
addElement(int index,
IWDNodeElement element)
Handles the normal behaviour of the non-mapped part of the ContextNode. |
void |
addElement(IWDNodeElement element)
Adds an element to the node collection. |
void |
bind(java.util.Collection items)
Assumes some collection(and its iterator) of 'raw' data with context node. |
void |
clearSelections()
Clears the node's multiple selection; does not change the lead selection. |
IWDNodeElement |
createElement()
Creates a new node element of the type used for this value node. |
IWDNodeElement |
createElement(java.lang.Object model)
Creates a new node element of the type used for this model node. |
void |
ensureFetched(int ensureFetched)
Ensures that required count of raw content fetched into NodeElements list of this ContextNode. |
void |
enter()
Life-time callback on Context entering. |
void |
exit()
Life-time callback on Context exit. |
java.util.Collection |
getAttributeTexts(IWDNodeAttribute attribute)
|
java.lang.Object |
getAttributeValue(IWDNodeAttribute attribute)
|
IWDNodeElement |
getCurrentElement()
Returns the current element (at the lead selection) or null
if no element is selected. |
java.util.ArrayList |
getElements()
Gets NodeElements list of this ContextNode. |
int |
getLeadSelection()
|
java.util.Collection |
getRawData()
|
void |
init()
Life-time callback on Context initalizing. |
boolean |
isMultiSelected(int index)
Returns whether the element at the given index is selected. |
void |
listenContextNodeCursorChanged(ContextNode node)
Invokes when ContextNode cursor changed. |
void |
listenDomainContextNode(ContextNode contextNode)
Invokes when ContextNode domain changed. |
void |
reload()
Used to re-enter node programmatically, beside regular flow. |
void |
removeCurrentElement()
Removes an element from the node collection. |
void |
setAttributeValue(IWDNodeAttribute attribute,
java.lang.Object value)
|
void |
setLeadSelection(int index)
Sets lead selection. |
void |
setSelected(int index,
boolean selected)
Selects or unselects the element at the given index. |
int |
size()
|
| Methods inherited from class com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode |
|---|
addContextNodeElementListener, addContextNodeListener, clearSelection, getAttribute, getAttribute, getAttributeIndex, getAttributes, getAttributeValue, getAttributeValue, getChildNode, getChildren, getContext, getCurrentElementOrFirst, getElementAt, getElementIterator, getID, getName, getParent, getParentElement, getSelectionCardinality, invalidate, isEmpty, loadData, notifyCursorChanged, notifyDomainChanged, removeContextNodeElementListener, removeContextNodeListener, removeElement, setAttributeValue, setAttributeValue, setRawData, sortElements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextNodeMapped(Context context,
int id,
java.lang.String name,
int parent,
int cardinality,
int selectionCardinality,
boolean singleton,
IWDNodeAttribute[] attributes,
int[] child,
java.lang.Object structure,
int mappedNodeId,
Controller ctrl)
| Method Detail |
|---|
public void init()
ContextNode
init in class ContextNodepublic void enter()
ContextNode
enter in class ContextNodepublic void exit()
ContextNode
exit in class ContextNodepublic void reload()
ContextNode
reload in interface IWDNodereload in class ContextNodepublic void ensureFetched(int ensureFetched)
ContextNode
ensureFetched in class ContextNode
public void addElement(int index,
IWDNodeElement element)
ContextNodeContextNode. I.e. actually add the element to this node.
addElement in interface IWDNodeaddElement in class ContextNodeindex - The index to add the IWDNodeElement at.element - The element to be addedpublic void bind(java.util.Collection items)
ContextNode
bind in interface IWDNodebind in class ContextNodeitems - The collection of items, which should be bound to this nodepublic void clearSelections()
IWDNode
clearSelections in interface IWDNodeclearSelections in class ContextNodepublic void removeCurrentElement()
IWDNodeICMIObservableList is bound to the node, this list is
modified!
removeCurrentElement in interface IWDNoderemoveCurrentElement in class ContextNodepublic java.util.ArrayList getElements()
ContextNode
getElements in class ContextNodepublic java.util.Collection getRawData()
getRawData in class ContextNodepublic int size()
size in interface IWDNodesize in class ContextNodepublic void addElement(IWDNodeElement element)
IWDNode
addElement in interface IWDNodeaddElement in class ContextNodeelement - An element that matches the node.public IWDNodeElement getCurrentElement()
IWDNodenull
if no element is selected.
getCurrentElement in interface IWDNodegetCurrentElement in class ContextNodeIWDNodeElement or null if no
element is selected.public int getLeadSelection()
getLeadSelection in class ContextNodepublic boolean isMultiSelected(int index)
IWDNode
isMultiSelected in interface IWDNodeisMultiSelected in class ContextNodeindex - The index of the element.
true if the element is selected.public void setLeadSelection(int index)
ContextNode
setLeadSelection in interface IWDNodesetLeadSelection in class ContextNodeindex - of the selected IWDNodeElement
public void setSelected(int index,
boolean selected)
IWDNode
setSelected in interface IWDNodesetSelected in class ContextNodeindex - The index of the element.selected - The flag, which indicates, whether the element should be
selected or unselected.public java.lang.Object getAttributeValue(IWDNodeAttribute attribute)
getAttributeValue in class ContextNode
public void setAttributeValue(IWDNodeAttribute attribute,
java.lang.Object value)
setAttributeValue in class ContextNodepublic java.util.Collection getAttributeTexts(IWDNodeAttribute attribute)
getAttributeTexts in class ContextNodepublic IWDNodeElement createElement(java.lang.Object model)
IWDNodeIWDNodeElement.node() method will return null.
It can be added only to this node, either via bind or via
addElement.
createElement in interface IWDNodecreateElement in class ContextNodemodel - The model class object for new node to be created
IWDNodeElement.public IWDNodeElement createElement()
IWDNodeIWDNodeElement.node() method will return null.
It can be added only to this node, either via bind or via
addElement.
createElement in interface IWDNodecreateElement in class ContextNodeIWDNodeElement.public void listenDomainContextNode(ContextNode contextNode)
IContextNodeListenerContextNode domain changed.
listenDomainContextNode in interface IContextNodeListenerpublic void listenContextNodeCursorChanged(ContextNode node)
IContextNodeCursorListenerContextNode cursor changed.
listenContextNodeCursorChanged in interface IContextNodeCursorListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||