|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MenuTreeInfoCtrl
MenuTree
providers choose to implement the MenuTreeInfoCtrl
interface if they
support to receive a copy of individual menu nodes from a different MenuTree
implementation
(ie if the tree is able to be the destination of a copy operation) and to modify MenuNode
information.
In order to support a per-node copy operation and modification of MenuNode
information,
the object returned by MenuProvider.getMenu(com.ibm.wps.portlet.menu.MenuContext)
implements the MenuTreeInfoCtrl
interface
besides the MenuTree
interface.
MenuTreeInfoCopyCtrl
,
MenuNode
This interface is designed to be implemented by clients. |
Method Summary | |
---|---|
void |
addActionParameter(java.lang.String name,
java.lang.String value,
MenuNode node)
Deprecated. Defines the action parameter name - value pair associated with the tree node. |
void |
clearActionParameters(MenuNode node)
Deprecated. Deletes all action parameter name - value pairs associated with the tree node. |
void |
setAction(java.lang.String name,
MenuNode node)
Deprecated. Defines the action associated with the tree node. |
void |
setInformation(java.util.Locale locale,
java.lang.String title,
java.lang.String description,
MenuNode node)
Deprecated. Sets title and descriptionof a menu tree node in a specific
locale. |
void |
setURL(java.lang.String url,
MenuNode node)
Deprecated. Defines a custom URL address. |
Method Detail |
---|
void setInformation(java.util.Locale locale, java.lang.String title, java.lang.String description, MenuNode node)
Sets title and descriptionof a menu tree node
in a specific
locale.
The locale must comprise the locale of the request which is defined in the environment language settings
of the browser. The locale of the request is returned from request.getLocale()
.
Example: If the locale of the request is en_US
, the locale of the node can be
en
or en_US
. If the locale of the request is en_US
and
the locale of the node is en_GB
, the methods
getTitle()
and getDescription()
return null
values.
locale
- locale of the title and description.title
- node titledescription
- node descriptionnode
- menu tree nodeMenuNode.getTitle()
,
MenuNode.getDescription()
void setAction(java.lang.String name, MenuNode node)
setURL(java.lang.String, com.ibm.wps.portlet.menu.MenuNode)
.
The action name is displayed in the center of the URL address when the cursor moves over the tree node.
name
- action name.node
- menu tree nodeActionListener
,
PortletAdapter
,
MenuNode.getURL()
void addActionParameter(java.lang.String name, java.lang.String value, MenuNode node)
name
- parameter namevalue
- parameter valuenode
- menu tree nodeMenuNode.getURL()
void clearActionParameters(MenuNode node)
node
- menu tree nodeMenuNode.getURL()
void setURL(java.lang.String url, MenuNode node)
http://www.ibm.com/us/
.
The URL address is overwritten with setAction(java.lang.String, com.ibm.wps.portlet.menu.MenuNode)
.
The URL address is displayed when the cursor moves over the tree node.
url
- URL addressnode
- menu tree nodeMenuNode.getURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |