|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro Tray API.
Tray is used to group a number of UI elements under a common header.
A Tray may be collapsed by setting expanded to false.
A collapsed tray displays only its header.
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 |
IWDTray.IWDOnToggle
Interface defining the parameter names for event onToggle.
|
| Field Summary | |
static WDTrayDesign |
DEFAULT_DESIGN
Default value of the design property is WDTrayDesign.TRANSPARENT. |
static boolean |
DEFAULT_EXPANDED
Default value of the expanded property is true. |
static boolean |
DEFAULT_HAS_CONTENT_PADDING
Default value of the hasContentPadding property is true. |
| Fields inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDScrollContainer |
DEFAULT_ACCESSIBILITY_DESCRIPTION, DEFAULT_DEFAULT_BUTTON_ID, DEFAULT_SCROLLING_MODE |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElementContainer |
DEFAULT_HEIGHT, DEFAULT_WIDTH |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindDesign(IWDAttributeInfo attributeInfo)
Binds the design property to the context attribute specified by the given attribute info. |
void |
bindDesign(String path)
Binds the design property to the context attribute specified by the given path. |
void |
bindExpanded(IWDAttributeInfo attributeInfo)
Binds the expanded property to the context attribute specified by the given attribute info. |
void |
bindExpanded(String path)
Binds the expanded property to the context attribute specified by the given path. |
void |
bindHasContentPadding(IWDAttributeInfo attributeInfo)
Binds the hasContentPadding property to the context attribute specified by the given attribute info. |
void |
bindHasContentPadding(String path)
Binds the hasContentPadding property to the context attribute specified by the given path. |
String |
bindingOfDesign()
Returns the binding path of the design property. |
String |
bindingOfExpanded()
Returns the binding path of the expanded property. |
String |
bindingOfHasContentPadding()
Returns the binding path of the hasContentPadding property. |
void |
destroyHeader()
Destroys the aggregated Header element.
|
void |
destroyPopupMenu()
Destroys the aggregated PopupMenu element.
|
void |
destroyToolBar()
Destroys the aggregated ToolBar element.
|
WDTrayDesign |
getDesign()
Returns the value of the design property.
|
boolean |
getExpanded()
Returns the value of the expanded property.
|
boolean |
getHasContentPadding()
Returns the value of the hasContentPadding property.
|
IWDCaption |
getHeader()
Returns the aggregated Header element.
|
IWDAction |
getOnToggle()
Returns the action assigned to event onToggle.
|
IWDMenu |
getPopupMenu()
Returns the aggregated PopupMenu element |
IWDToolBar |
getToolBar()
Returns the aggregated ToolBar element.
|
IWDParameterMapping |
mappingOfOnToggle()
Returns the parameter mapping for event onToggle.
|
void |
setDesign(WDTrayDesign value)
Sets the design property to the given value. |
void |
setExpanded(boolean value)
Sets the expanded property to the given value. |
void |
setHasContentPadding(boolean value)
Sets the hasContentPadding property to the given value. |
void |
setHeader(IWDCaption header)
Sets the aggregated Header element. |
void |
setOnToggle(IWDAction action)
Assigns the given action to event onToggle. |
void |
setPopupMenu(IWDMenu popupMenu)
Sets the aggregated PopupMenu element. |
void |
setToolBar(IWDToolBar toolBar)
Sets the aggregated ToolBar element. |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDScrollContainer |
bindAccessibilityDescription, bindAccessibilityDescription, bindDefaultButtonId, bindDefaultButtonId, bindingOfAccessibilityDescription, bindingOfDefaultButtonId, bindingOfScrollingMode, bindScrollingMode, bindScrollingMode, getAccessibilityDescription, getCustomExtensionField, getCustomExtensionLabel, getDefaultButtonId, getScrollingMode, setAccessibilityDescription, setDefaultButtonId, setScrollingMode |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElementContainer |
addChild, addChild, bindHeight, bindHeight, bindingOfHeight, bindingOfWidth, bindWidth, bindWidth, createLayout, destroyAllChildren, getChild, getChildren, getHeight, getLayout, getWidth, hasChildren, indexOfChild, iterateChildren, numberOfChildren, removeAllChildren, removeChild, removeChild, setHeight, setWidth, swapChildren |
| 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 WDTrayDesign DEFAULT_DESIGN
design property is WDTrayDesign.TRANSPARENT.
public static final boolean DEFAULT_EXPANDED
expanded property is true.
public static final boolean DEFAULT_HAS_CONTENT_PADDING
hasContentPadding property is true.
| Method Detail |
public IWDAction getOnToggle()
onToggle.
The action performed when the tray is toggled (collapsed resp. expanded).
Event parameter is the new expansion state.
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)
{
IWDTray myTray = (IWDTray) view.getElement("ID-of-Tray");
myTray.mappingOfOnToggle().addSourceMapping
(
IWDTray.IWDOnToggle.EXPANDED, // event parameter name
"name-of-action-parameter" // (type boolean)
);
}
Event onToggle has the following parameters:
boolean expanded
onTogglegetOnToggle()public void bindDesign(String path)
design property to the context attribute specified by the given path.
path - the context path of the attribute to which the design property will be boundpublic void bindDesign(IWDAttributeInfo attributeInfo)
design property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the design property will be boundpublic String bindingOfDesign()
design property.
design property is currently boundpublic WDTrayDesign getDesign()
design property.
The initial value is WDTrayDesign.TRANSPARENT.
design propertysetDesign(WDTrayDesign)public void setDesign(WDTrayDesign value)
design property to the given value.
value - the new value of the design propertygetDesign()public void bindExpanded(String path)
expanded property to the context attribute specified by the given path.
path - the context path of the attribute to which the expanded property will be boundpublic void bindExpanded(IWDAttributeInfo attributeInfo)
expanded property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the expanded property will be boundpublic String bindingOfExpanded()
expanded property.
expanded property is currently boundpublic boolean getExpanded()
expanded property.
The initial value is true.
expanded propertysetExpanded(boolean)public void setExpanded(boolean value)
expanded property to the given value.
value - the new value of the expanded propertygetExpanded()public void bindHasContentPadding(String path)
hasContentPadding property to the context attribute specified by the given path.
path - the context path of the attribute to which the hasContentPadding property will be boundpublic void bindHasContentPadding(IWDAttributeInfo attributeInfo)
hasContentPadding property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the hasContentPadding property will be boundpublic String bindingOfHasContentPadding()
hasContentPadding property.
hasContentPadding property is currently boundpublic boolean getHasContentPadding()
hasContentPadding property.
The initial value is true.
hasContentPadding propertysetHasContentPadding(boolean)public void setHasContentPadding(boolean value)
hasContentPadding property to the given value.
value - the new value of the hasContentPadding propertygetHasContentPadding()public IWDCaption getHeader()
Header element.
The header of a tray contains a caption.
Header elementsetHeader(IWDCaption)public void setHeader(IWDCaption header)
Header element.
header - the new headergetHeader()public void destroyHeader()
Header element.
Destroyed view elements do not exist any longer in their view, i.e. a new element may be
created with the same ID.
public IWDMenu getPopupMenu()
PopupMenu element.
PopupMenu elementsetPopupMenu(IWDMenu)public void setPopupMenu(IWDMenu popupMenu)
PopupMenu element.
popupMenu - the new popupMenugetPopupMenu()public void destroyPopupMenu()
PopupMenu element.
Destroyed view elements do not exist any longer in their view, i.e. a new element may be
created with the same ID.
public IWDToolBar getToolBar()
ToolBar element.
A tray may contain a toolbar.
ToolBar elementsetToolBar(IWDToolBar)public void setToolBar(IWDToolBar toolBar)
ToolBar element.
toolBar - the new toolBargetToolBar()public void destroyToolBar()
ToolBar element.
Destroyed view elements do not exist any longer in their view, i.e. a new element may be
created with the same ID.
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||