|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro ToolBarButtonChoice API. A toolbar button with the possibility to choose from a set of actions.
The toolbar button choice may operate in two modes which are controlled by
the repeatSelectedAction property:
repeatSelectedAction = true:
repeatSelectedAction = false:
The toolbar button choice is displayed as one button that opens the choices
menu when pressed.
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| Field Summary | |
static boolean |
DEFAULT_COLLAPSIBLE
Default value of the collapsible property is false. |
static String |
DEFAULT_IMAGE_SOURCE
Default value of the imageSource property is "". |
static boolean |
DEFAULT_REPEAT_SELECTED_ACTION
Default value of the repeatSelectedAction property is true. |
static String |
DEFAULT_SELECTED_ACTION_ITEM
Default value of the selectedActionItem property is "". |
static String |
DEFAULT_TEXT
Default value of the text property is "". |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addChoice(IWDMenuActionItem choice)
Adds the given Choice at the end of the Choices list. |
void |
addChoice(IWDMenuActionItem choice,
int index)
Inserts the given Choice at the specified (zero-based) index into the Choices list. |
void |
bindCollapsible(IWDAttributeInfo attributeInfo)
Binds the collapsible property to the context attribute specified by the given attribute info. |
void |
bindCollapsible(String path)
Binds the collapsible property to the context attribute specified by the given path. |
void |
bindImageSource(IWDAttributeInfo attributeInfo)
Binds the imageSource property to the context attribute specified by the given attribute info. |
void |
bindImageSource(String path)
Binds the imageSource property to the context attribute specified by the given path. |
String |
bindingOfCollapsible()
Returns the binding path of the collapsible property. |
String |
bindingOfImageSource()
Returns the binding path of the imageSource property. |
String |
bindingOfRepeatSelectedAction()
Returns the binding path of the repeatSelectedAction property. |
String |
bindingOfSelectedActionItem()
Returns the binding path of the selectedActionItem property. |
String |
bindingOfText()
Returns the binding path of the text property. |
void |
bindRepeatSelectedAction(IWDAttributeInfo attributeInfo)
Binds the repeatSelectedAction property to the context attribute specified by the given attribute info. |
void |
bindRepeatSelectedAction(String path)
Binds the repeatSelectedAction property to the context attribute specified by the given path. |
void |
bindSelectedActionItem(IWDAttributeInfo attributeInfo)
Binds the selectedActionItem property to the context attribute specified by the given attribute info. |
void |
bindSelectedActionItem(String path)
Binds the selectedActionItem property to the context attribute specified by the given path. |
void |
bindText(IWDAttributeInfo attributeInfo)
Binds the text property to the context attribute specified by the given attribute info. |
void |
bindText(String path)
Binds the text property to the context attribute specified by the given path. |
void |
destroyAllChoices()
Destroys all elements in the Choices list.
|
IWDMenuActionItem |
getChoice(int index)
Returns the Choice at the given index. |
IWDMenuActionItem[] |
getChoices()
Returns the Choices list as an array.
|
boolean |
getCollapsible()
Returns the value of the collapsible property.
|
String |
getImageSource()
Returns the value of the imageSource property.
|
boolean |
getRepeatSelectedAction()
Returns the value of the repeatSelectedAction property.
|
String |
getSelectedActionItem()
Returns the value of the selectedActionItem property.
|
String |
getText()
Returns the value of the text property.
|
boolean |
hasChoices()
Returns true if there exists a Choice. |
int |
indexOfChoice(IWDMenuActionItem choice)
Returns the index of the given element in the Choices list,
returns -1 if the element is not in the list. |
Iterator |
iterateChoices()
Returns an iterator over the Choices list. |
int |
numberOfChoices()
Returns the number of Choices. |
void |
removeAllChoices()
Removes all elements from the Choices list.
|
IWDMenuActionItem |
removeChoice(int index)
Removes the Choice at the given index from the Choices list.
|
IWDMenuActionItem |
removeChoice(String id)
Removes the Choice with the given ID from the Choices list.
|
void |
setCollapsible(boolean value)
Sets the collapsible property to the given value. |
void |
setImageSource(String value)
Sets the imageSource property to the given value. |
void |
setRepeatSelectedAction(boolean value)
Sets the repeatSelectedAction property to the given value. |
void |
setSelectedActionItem(String value)
Sets the selectedActionItem property to the given value. |
void |
setText(String value)
Sets the text property to the given value. |
void |
swapChoices(int i,
int j)
Swaps the Choices at the given indices. |
| 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 |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDToolBarItem |
getVisible, setVisible |
| Field Detail |
public static final boolean DEFAULT_COLLAPSIBLE
collapsible property is false.
public static final String DEFAULT_IMAGE_SOURCE
imageSource property is "".
public static final boolean DEFAULT_REPEAT_SELECTED_ACTION
repeatSelectedAction property is true.
public static final String DEFAULT_SELECTED_ACTION_ITEM
selectedActionItem property is "".
public static final String DEFAULT_TEXT
text property is "".
| Method Detail |
public void bindCollapsible(String path)
collapsible property to the context attribute specified by the given path.
path - the context path of the attribute to which the collapsible property will be boundpublic void bindCollapsible(IWDAttributeInfo attributeInfo)
collapsible property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the collapsible property will be boundpublic String bindingOfCollapsible()
collapsible property.
collapsible property is currently boundpublic boolean getCollapsible()
collapsible property.
The initial value is false.
getCollapsible in interface IWDToolBarItemcollapsible propertysetCollapsible(boolean)public void setCollapsible(boolean value)
collapsible property to the given value.
setCollapsible in interface IWDToolBarItemvalue - the new value of the collapsible propertygetCollapsible()public void bindImageSource(String path)
imageSource property to the context attribute specified by the given path.
path - the context path of the attribute to which the imageSource property will be boundpublic void bindImageSource(IWDAttributeInfo attributeInfo)
imageSource property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the imageSource property will be boundpublic String bindingOfImageSource()
imageSource property.
imageSource property is currently boundpublic String getImageSource()
imageSource property.
The initial value is "".
repeatSelectedAction is set to true,
the image of the selected action item is displayed.
Otherwise, the image set on the toolbar button choice itself is displayed.
imageSource propertysetImageSource(String)public void setImageSource(String value)
imageSource property to the given value.
value - the new value of the imageSource propertygetImageSource()public void bindRepeatSelectedAction(String path)
repeatSelectedAction property to the context attribute specified by the given path.
path - the context path of the attribute to which the repeatSelectedAction property will be boundpublic void bindRepeatSelectedAction(IWDAttributeInfo attributeInfo)
repeatSelectedAction property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the repeatSelectedAction property will be boundpublic String bindingOfRepeatSelectedAction()
repeatSelectedAction property.
repeatSelectedAction property is currently boundpublic boolean getRepeatSelectedAction()
repeatSelectedAction property.
The initial value is true.
repeatSelectedAction is set to true,
the toolbar button choice remembers the last selected action
and repeats this action when pressed again.
repeatSelectedAction propertysetRepeatSelectedAction(boolean)public void setRepeatSelectedAction(boolean value)
repeatSelectedAction property to the given value.
value - the new value of the repeatSelectedAction propertygetRepeatSelectedAction()public void bindSelectedActionItem(String path)
selectedActionItem property to the context attribute specified by the given path.
path - the context path of the attribute to which the selectedActionItem property will be boundpublic void bindSelectedActionItem(IWDAttributeInfo attributeInfo)
selectedActionItem property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the selectedActionItem property will be boundpublic String bindingOfSelectedActionItem()
selectedActionItem property.
selectedActionItem property is currently boundpublic String getSelectedActionItem()
selectedActionItem property.
The initial value is "".
selectedActionItem propertysetSelectedActionItem(String)public void setSelectedActionItem(String value)
selectedActionItem property to the given value.
value - the new value of the selectedActionItem propertygetSelectedActionItem()public void bindText(String path)
text property to the context attribute specified by the given path.
path - the context path of the attribute to which the text property will be boundpublic void bindText(IWDAttributeInfo attributeInfo)
text property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the text property will be boundpublic String bindingOfText()
text property.
text property is currently boundpublic String getText()
text property.
The initial value is null.
repeatSelectedAction is set to true,
the text of the selected action item is displayed.
Otherwise, the text set on the toolbar button choice itself is displayed.
text propertysetText(String)public void setText(String value)
text property to the given value.
value - the new value of the text propertygetText()public void addChoice(IWDMenuActionItem choice)
Choice at the end of the Choices list.
choice - the Choice to be added to the listgetChoices()
public void addChoice(IWDMenuActionItem choice,
int index)
Choice at the specified (zero-based) index into the Choices list.
choice - the Choice to be inserted into the listindex - (zero-based) insertion position in the listgetChoices()
public void swapChoices(int i,
int j)
Choices at the given indices.
i - index of the first Choice to swapj - index of the second Choice to swap
IndexOutOfBoundsException - If one of the indices is out of boundspublic IWDMenuActionItem[] getChoices()
Choices list as an array.
The list of action items that may be chosen.
Choices listpublic IWDMenuActionItem getChoice(int index)
Choice at the given index.
Choice at the given indexpublic int indexOfChoice(IWDMenuActionItem choice)
Choices list,
returns -1 if the element is not in the list.
public int numberOfChoices()
Choices.
ChoicesgetChoices()public boolean hasChoices()
true if there exists a Choice.
true if there exists a Choice, otherwise returns falsegetChoices()public Iterator iterateChoices()
Choices list.
Choices listgetChoices()public IWDMenuActionItem removeChoice(int index)
Choice at the given index from the Choices list.
This does not destroy the removed element, i.e. it may be added again!
index - (zero-based) index of the removal position in the list
addChoice(IWDMenuActionItem),
getChoices()public IWDMenuActionItem removeChoice(String id)
Choice with the given ID from the Choices list.
This does not destroy the removed element, i.e. it may be added again!
id - unique ID of the element to be removed from the list
addChoice(IWDMenuActionItem),
getChoices()public void removeAllChoices()
Choices list.
This does not destroy the removed elements, i.e. they may be added again!
addChoice(IWDMenuActionItem),
getChoices()public void destroyAllChoices()
Choices list.
Destroyed view elements do not exist any longer in their view, i.e. new elements may be
created with the same IDs.
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||