|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro CheckBoxGroup API. CheckBoxGroup represents a multiple selection visualized by a group of check boxes.
Data binding:
The context must provide a node X with X.cardinality =
0..n
and X.selection = 0..n with an attribute y. The
type of y must be a simple type like String.
The number of check boxes is the number of node elements, their texts are
the values of attribute y,
and the selection of the check boxes is determined by the (multiple)
selection of the node.
The property texts must be bound to the attribute
y.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
Type Classification:
This interface is part of the Web Dynpro API, so applications may reference it or call any method of it, but they must not implement or extend it.
For a detailed explanation of API classification see the Web Dynpro Compatibility Guide| Nested Class Summary | |
static interface |
IWDCheckBoxGroup.IWDOnToggle
Interface defining the parameter names for event onToggle.
|
| Field Summary | |
static String |
DEFAULT_ACCESSIBILITY_DESCRIPTION
Default value of the accessibilityDescription property is "". |
static int |
DEFAULT_COL_COUNT
Default value of the colCount property is 1. |
static boolean |
DEFAULT_READ_ONLY
Default value of the readOnly property is false. |
static WDState |
DEFAULT_STATE
Default value of the state property is WDState.NORMAL. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of the textDirection property is WDTextDirection.INHERIT. |
static String |
DEFAULT_WIDTH
Default value of the width property is "". |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
Binds the accessibilityDescription property to the context attribute specified by the given attribute info. |
void |
bindAccessibilityDescription(String path)
Binds the accessibilityDescription property to the context attribute specified by the given path. |
void |
bindColCount(IWDAttributeInfo attributeInfo)
Binds the colCount property to the context attribute specified by the given attribute info. |
void |
bindColCount(String path)
Binds the colCount property to the context attribute specified by the given path. |
String |
bindingOfAccessibilityDescription()
Returns the binding path of the accessibilityDescription property. |
String |
bindingOfColCount()
Returns the binding path of the colCount property. |
String |
bindingOfReadOnly()
Returns the binding path of the readOnly property. |
String |
bindingOfState()
Returns the binding path of the state property. |
String |
bindingOfTextDirection()
Returns the binding path of the textDirection property. |
String |
bindingOfTexts()
Returns the binding path of the texts property.
|
String |
bindingOfWidth()
Returns the binding path of the width property. |
void |
bindReadOnly(IWDAttributeInfo attributeInfo)
Binds the readOnly property to the context attribute specified by the given attribute info. |
void |
bindReadOnly(String path)
Binds the readOnly property to the context attribute specified by the given path. |
void |
bindState(IWDAttributeInfo attributeInfo)
Binds the state property to the context attribute specified by the given attribute info. |
void |
bindState(String path)
Binds the state property to the context attribute specified by the given path. |
void |
bindTextDirection(IWDAttributeInfo attributeInfo)
Binds the textDirection property to the context attribute specified by the given attribute info. |
void |
bindTextDirection(String path)
Binds the textDirection property to the context attribute specified by the given path. |
void |
bindTexts(IWDAttributeInfo attributeInfo)
Binds the texts property to the context attribute specified by the given attribute info.
|
void |
bindTexts(String path)
Binds the texts property to the context attribute specified by the given path.
|
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds the width property to the context attribute specified by the given attribute info. |
void |
bindWidth(String path)
Binds the width property to the context attribute specified by the given path. |
String |
getAccessibilityDescription()
Returns the value of the accessibilityDescription property.
|
int |
getColCount()
Returns the value of the colCount property.
|
IWDAction |
getOnToggle()
Returns the action assigned to event onToggle.
|
boolean |
getReadOnly()
Returns the value of the readOnly property.
|
WDState |
getState()
Returns the value of the state property.
|
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property.
|
String |
getWidth()
Returns the value of the width property.
|
IWDParameterMapping |
mappingOfOnToggle()
Returns the parameter mapping for event onToggle.
|
void |
setAccessibilityDescription(String value)
Sets the accessibilityDescription property to the given value. |
void |
setColCount(int value)
Sets the colCount property to the given value. |
void |
setOnToggle(IWDAction action)
Assigns the given action to event onToggle. |
void |
setReadOnly(boolean value)
Sets the readOnly property to the given value. |
void |
setState(WDState value)
Sets the state property to the given value. |
void |
setTextDirection(WDTextDirection value)
Sets the textDirection property to the given value. |
void |
setWidth(String value)
Sets the width property to the given value. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
destroy, getId, getView, requestFocus |
| Field Detail |
public static final String DEFAULT_ACCESSIBILITY_DESCRIPTION
accessibilityDescription property is "".
public static final int DEFAULT_COL_COUNT
colCount property is 1.
public static final boolean DEFAULT_READ_ONLY
readOnly property is false.
public static final WDState DEFAULT_STATE
state property is WDState.NORMAL.
public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection property is WDTextDirection.INHERIT.
public static final String DEFAULT_WIDTH
width property is "".
| Method Detail |
public IWDAction getOnToggle()
onToggle.
The action performed when a check box in this group is toggled.
Event parameters are the new checked value and the zero based
index of the toggled check box.
onTogglemappingOfOnToggle()public void setOnToggle(IWDAction action)
onToggle.
action - the action assigned to the eventgetOnToggle()public IWDParameterMapping mappingOfOnToggle()
onToggle.
To pass UI element event parameter values into action handler parameters,
a parameter mapping has to be defined. Add code like the following inside
method wdDoModifyView() of the view controller:
if (firstTime)
{
IWDCheckBoxGroup myCheckBoxGroup = (IWDCheckBoxGroup) view.getElement("ID-of-CheckBoxGroup");
myCheckBoxGroup.mappingOfOnToggle().addSourceMapping
(
IWDCheckBoxGroup.IWDOnToggle.CHECKED, // event parameter name
"name-of-action-parameter" // (type boolean)
);
myCheckBoxGroup.mappingOfOnToggle().addSourceMapping
(
IWDCheckBoxGroup.IWDOnToggle.INDEX, // event parameter name
"name-of-action-parameter" // (type int)
);
}
Event onToggle has the following parameters:
boolean checkedint index
onTogglegetOnToggle()public void bindAccessibilityDescription(String path)
accessibilityDescription property to the context attribute specified by the given path.
path - the context path of the attribute to which the accessibilityDescription property will be boundpublic void bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
accessibilityDescription property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the accessibilityDescription property will be boundpublic String bindingOfAccessibilityDescription()
accessibilityDescription property.
accessibilityDescription property is currently boundpublic String getAccessibilityDescription()
accessibilityDescription property.
The initial value is "".
accessibilityDescription propertysetAccessibilityDescription(String)public void setAccessibilityDescription(String value)
accessibilityDescription property to the given value.
value - the new value of the accessibilityDescription propertygetAccessibilityDescription()public void bindColCount(String path)
colCount property to the context attribute specified by the given path.
path - the context path of the attribute to which the colCount property will be boundpublic void bindColCount(IWDAttributeInfo attributeInfo)
colCount property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the colCount property will be boundpublic String bindingOfColCount()
colCount property.
colCount property is currently boundpublic int getColCount()
colCount property.
The initial value is 1.
colCount propertysetColCount(int)public void setColCount(int value)
colCount property to the given value.
value - the new value of the colCount propertygetColCount()public void bindReadOnly(String path)
readOnly property to the context attribute specified by the given path.
path - the context path of the attribute to which the readOnly property will be boundpublic void bindReadOnly(IWDAttributeInfo attributeInfo)
readOnly property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the readOnly property will be boundpublic String bindingOfReadOnly()
readOnly property.
readOnly property is currently boundpublic boolean getReadOnly()
readOnly property.
The initial value is false.
readOnly propertysetReadOnly(boolean)public void setReadOnly(boolean value)
readOnly property to the given value.
value - the new value of the readOnly propertygetReadOnly()public void bindState(String path)
state property to the context attribute specified by the given path.
path - the context path of the attribute to which the state property will be boundpublic void bindState(IWDAttributeInfo attributeInfo)
state property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the state property will be boundpublic String bindingOfState()
state property.
state property is currently boundpublic WDState getState()
state property.
The initial value is WDState.NORMAL.
state propertysetState(WDState)public void setState(WDState value)
state property to the given value.
value - the new value of the state propertygetState()public void bindTextDirection(String path)
textDirection property to the context attribute specified by the given path.
path - the context path of the attribute to which the textDirection property will be boundpublic void bindTextDirection(IWDAttributeInfo attributeInfo)
textDirection property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the textDirection property will be boundpublic String bindingOfTextDirection()
textDirection property.
textDirection property is currently boundpublic WDTextDirection getTextDirection()
textDirection property.
The initial value is WDTextDirection.INHERIT.
textDirection propertysetTextDirection(WDTextDirection)public void setTextDirection(WDTextDirection value)
textDirection property to the given value.
value - the new value of the textDirection propertygetTextDirection()public void bindTexts(String path)
texts property to the context attribute specified by the given path.
Note: This property must be bound to the context!
path - the context path of the attribute to which the texts property will be boundpublic void bindTexts(IWDAttributeInfo attributeInfo)
texts property to the context attribute specified by the given attribute info.
Note: This property must be bound to the context!
attributeInfo - the info of the context attribute to which the texts property will be boundpublic String bindingOfTexts()
texts property.
Note: This property must be bound to the context!
texts property is currently boundpublic void bindWidth(String path)
width property to the context attribute specified by the given path.
path - the context path of the attribute to which the width property will be boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the width property will be boundpublic String bindingOfWidth()
width property.
width property is currently boundpublic String getWidth()
width property.
The initial value is "".
width propertysetWidth(String)public void setWidth(String value)
width property to the given value.
value - the new value of the width propertygetWidth()
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||