|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Container
com.sapportals.htmlb.EventValidationContainer
com.sapportals.htmlb.Tray
a Tray is an outer container similar to the Group but with additional functionality (collapse/expand). Application developers who write components for a Portal must NOT use this control since this element is provided by the portal environment.
Copyright 2004 SAP AG
| Field Summary | |
static String |
UI_ID
|
static int |
VAR_BEGIN
|
static int |
VAR_END
|
| Fields inherited from class com.sapportals.htmlb.Container |
elements |
| Constructor Summary | |
Tray()
|
|
Tray(String id)
|
|
| Method Summary | |
String |
getAccessibilityDescription()
get the semantical description of the component in it's applicationcontext used by screenreaders |
TrayDesign |
getDesign()
gets the design to be used for rendering this Tray. |
String |
getHeight()
gets the height of this tray |
HoverMenu |
getHoverMenu()
returns the hover menu which should be displayed as mouse moves over the text |
HoverMenu |
getMenu()
returns the menu of the tray |
String |
getOnClientToggle()
get the JavaScript fragment that is executed on the client side if the user toggles the tray |
String |
getOnCollapse()
gets the event action associated with collapsing the tray or null if no action should occur. |
String |
getOnEdit()
Deprecated. gets the event action associated with clicking on the trays 'Edit' icon or null if no action should occur. The 'Edit' icon will only be visible if an event action is set. |
String |
getOnExpand()
Deprecated. not supported. |
String |
getOnRemove()
Deprecated. gets the event action associated with clicking on the trays 'Remove' icon or null if no action should occur. The 'Remove' icon will only be visible if an event action is set. |
boolean |
getPersistExpansionState()
|
String |
getTitle()
gets the title for this Tray. |
String |
getTooltip()
gets the Tooltip for this Tray. |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
String |
getWidth()
gets the width of this tray |
boolean |
hasContentPadding()
|
boolean |
hasMenu()
check if menu item was set |
protected void |
init()
|
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only. |
boolean |
isCollapsed()
determines if this Tray should be rendered in a collapsed state. |
boolean |
isCollapsible()
get the collapsible value for the correct rendering |
boolean |
requiresForm()
check if this tray really requires a form around it. |
void |
setAccessibilityDescription(String accessibilityDescription)
sets the sematical description for the component in it's applicationcontext used by screenreaders |
void |
setCollapsed(boolean collapsed)
sets if this Tray should be rendered in a collapsed state. |
void |
setCollapsible(boolean collapsible)
Set the collapse icon in the top right corner |
void |
setDesign(TrayDesign design)
sets the design to be used for rendering this Tray. |
void |
setHasContentPadding(boolean hasContentPadding)
|
void |
setHeight(String height)
sets the height of the tray |
void |
setHoverMenu(HoverMenu hoverMenu)
sets the hove menu which should be displayed as mouse moves over the text |
void |
setMenu(HoverMenu menu)
sets the menu of the tray |
void |
setOnClientToggle(String onClientToggle)
set a Javascript fragment that is executed when the user toggles the tray |
void |
setOnCollapse(String onCollapse)
Deprecated. not supported. |
void |
setOnEdit(String onEdit)
Deprecated. sets the event action associated with clicking on the trays 'Edit' icon or null if no action should occur. The 'Edit' icon will only be visible if an event action is set. |
void |
setOnExpand(String onExpand)
Deprecated. not supported. |
void |
setOnRemove(String onRemove)
Deprecated. sets the event action associated with clicking on the trays 'Remove' icon or null if no action should occur. The 'Remove' icon will only be visible if an event action is set. |
void |
setPersistExpansionState(boolean persistExpansionState)
|
void |
setTitle(String title)
sets the title for this Tray. |
void |
setTooltip(String tooltip)
sets the Tooltip for this Tray. |
void |
setWidth(String width)
sets the width of the tray |
| Methods inherited from class com.sapportals.htmlb.EventValidationContainer |
getAllValidators, getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, isRequiresValidation, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Container |
addComponent, addRawText, addText, getChildCount, iterator, preRender, removeComponent, render |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, render, renderAsString, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int VAR_BEGIN
public static final int VAR_END
| Constructor Detail |
public Tray()
public Tray(String id)
| Method Detail |
protected void init()
public String getUI()
Component
getUI in class Componentpublic TrayDesign getDesign()
public void setDesign(TrayDesign design)
design - the design for this Tray.PageProcepublic String getWidth()
public void setWidth(String width)
width - the width of the traypublic String getHeight()
public void setHeight(String height)
height - the height of the traypublic boolean isCollapsed()
public void setCollapsed(boolean collapsed)
collapsed - true if the Tray should be collapsedpublic String getTitle()
public void setTitle(String title)
title - the titlepublic String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic String getOnCollapse()
public void setOnCollapse(String onCollapse)
onCollapse - the event action associated with collapsing the traypublic String getOnEdit()
The 'Edit' icon will only be visible if an event action is set.
public void setOnEdit(String onEdit)
The 'Edit' icon will only be visible if an event action is set.
onEdit - the event action associated with clicking the trays 'Edit' iconpublic String getOnExpand()
public void setOnExpand(String onExpand)
onExpand - the event action associated with expanding the traypublic String getOnRemove()
The 'Remove' icon will only be visible if an event action is set.
public void setOnRemove(String onRemove)
The 'Remove' icon will only be visible if an event action is set.
onRemove - the event action associated with clicking the trays 'Remove' iconpublic boolean hasMenu()
public HoverMenu getMenu()
public void setMenu(HoverMenu menu)
menu - menu component associated with the traypublic HoverMenu getHoverMenu()
public void setHoverMenu(HoverMenu hoverMenu)
public boolean requiresForm()
requiresForm in class Componentpublic void setPersistExpansionState(boolean persistExpansionState)
public boolean getPersistExpansionState()
protected void initFromPageContext(IPageContext pc,
String baseId)
Component
initFromPageContext in class Componentpc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)public boolean hasContentPadding()
public void setHasContentPadding(boolean hasContentPadding)
public String getOnClientToggle()
public void setOnClientToggle(String onClientToggle)
onClientToggle - the Javascriptpublic void setCollapsible(boolean collapsible)
collapsible - true/falsepublic boolean isCollapsible()
public String getAccessibilityDescription()
public void setAccessibilityDescription(String accessibilityDescription)
accessibilityDescription - description text
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||