com.sap.portal.pb.services

Interface ITrayService


public interface ITrayService

The interface that defines methods to add and remove items to iView and page tray menus. Menu items are bound to a Web Dynpro action. Note that adding or removing a menu item should be executed only once in the wdDoModifyView method.


Field Summary
static String ADD_IVIEW_ITEM
          The constant that represents the key of the add item to iView tray command.
static String ADD_PAGE_ITEM
          The constant that represents the key of the add item to page tray command.
static String KEY
          The service key
static String REMOVE_IVIEW_ITEM
          The constant that represents the key of the remove item from iView tray command.
static String REMOVE_PAGE_ITEM
          The constant that represents the key of the remove item from page tray command.
 
Method Summary
 void addIViewItem(String id, String text, com.sap.tc.webdynpro.progmodel.api.IWDAction action, Map parameters)
          Adds an item to the iView tray menu that, when selected, executes the specified Web Dynpro action.
 void addPageItem(String id, String text, com.sap.tc.webdynpro.progmodel.api.IWDAction action, Map parameters)
          Adds an item to the page tray menu that, when selected, executes the specified Web Dynpro action.
 void removeIViewItem(String id)
          Removes the specified item from the iView tray menu.
 void removePageItem(String id)
          Removes the specified item from the page tray menu.
 

Field Detail

KEY

static final String KEY
The service key

See Also:
Constant Field Values

ADD_IVIEW_ITEM

static final String ADD_IVIEW_ITEM
The constant that represents the key of the add item to iView tray command.

For internal use only.

See Also:
Constant Field Values

REMOVE_IVIEW_ITEM

static final String REMOVE_IVIEW_ITEM
The constant that represents the key of the remove item from iView tray command.

For internal use only.

See Also:
Constant Field Values

ADD_PAGE_ITEM

static final String ADD_PAGE_ITEM
The constant that represents the key of the add item to page tray command.

For internal use only.

See Also:
Constant Field Values

REMOVE_PAGE_ITEM

static final String REMOVE_PAGE_ITEM
The constant that represents the key of the remove item from page tray command.

For internal use only.

See Also:
Constant Field Values
Method Detail

addIViewItem

void addIViewItem(String id,
                  String text,
                  com.sap.tc.webdynpro.progmodel.api.IWDAction action,
                  Map parameters)
Adds an item to the iView tray menu that, when selected, executes the specified Web Dynpro action.

Parameters:
id - the id of the menu item
text - the display name of the item in the tray menu
action - a Web Dynpro action that is executed when the user selects this item
parameters - the required parameters for the specified action, or null if no parameters are needed

addPageItem

void addPageItem(String id,
                 String text,
                 com.sap.tc.webdynpro.progmodel.api.IWDAction action,
                 Map parameters)
Adds an item to the page tray menu that, when selected, executes the specified Web Dynpro action.

Parameters:
id - the id of the menu item
text - the display name of the item in the tray menu
action - a Web Dynpro action that is executed when the user selects this item
parameters - the required parameters for the specified action, or null if no parameters are needed

removeIViewItem

void removeIViewItem(String id)
Removes the specified item from the iView tray menu.

Parameters:
id - the id of the menu item

removePageItem

void removePageItem(String id)
Removes the specified item from the page tray menu.

Parameters:
id - the id of the menu item
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/pagebuilder/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice