|
|||||||||
| 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.viewitem.ViewItem
com.sap.tc.mobile.wdlite.progmodel.core.viewitem.LabelViewItem
public class LabelViewItem
Label view item class. Example
public final class SomeController extends Controller {
...
public void wdDoModifyView(SomeView view, boolean firstTime)
{
LabelViewItem label = view.getRootUIElementContainerViewItem().createLabel("Some name");
label.setText("Text");
label.bindVisibleProperty(wdContext.nodeSomeNode(), "some-attr");
}
...
}
Removing example
public final class SomeController extends Controller {
...
public void wdDoModifyView(SomeView view, boolean firstTime)
{
parentViewItem.remove("View item name");
or
parentViewItem.remove(someViewItemObject);
}
...
}
| Field Summary |
|---|
| Fields inherited from class com.sap.tc.mobile.wdlite.progmodel.core.viewitem.ViewItem |
|---|
viewElement |
| 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 | |
|---|---|
LabelViewItem(ViewElement viewElement)
Constructs this view item. |
|
| Method Summary | |
|---|---|
void |
bindTextProperty(ContextNode mappedNode,
java.lang.String attributeName)
Binds "text" property to context attribute |
void |
bindVisibleProperty(ContextNode mappedNode,
java.lang.String attributeName)
Binds "enable" property to context attribute |
void |
bindWidthProperty(ContextNode mappedNode,
java.lang.String attributeName)
Binds "width" property to context attribute |
java.lang.String |
getText()
Determines the component's text. |
int |
getWidth()
Determines this component width. |
boolean |
isVisible()
Determines whether this component should be visible when its parent is visible. |
void |
setText(java.lang.String text)
Sets the component's text to be the specified value. |
void |
setVisible(boolean visible)
Shows or hides this component depending on the value of parameter. |
void |
setWidth(int width)
Resizes this component width. |
| Methods inherited from class com.sap.tc.mobile.wdlite.progmodel.core.viewitem.ViewItem |
|---|
bindProperty, getBooleanPropertyValue, getId, getIntegerPropertyValue, getStringPropertyValue, setPropertyValue, setUIControlSubType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelViewItem(ViewElement viewElement)
| Method Detail |
|---|
public void bindVisibleProperty(ContextNode mappedNode,
java.lang.String attributeName)
public void setVisible(boolean visible)
public boolean isVisible()
public void bindWidthProperty(ContextNode mappedNode,
java.lang.String attributeName)
public void setWidth(int width)
public int getWidth()
public void bindTextProperty(ContextNode mappedNode,
java.lang.String attributeName)
public void setText(java.lang.String text)
public java.lang.String getText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||