|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.gwtframework.ui.client.menu.MenuItem
org.exoplatform.gwtframework.ui.client.menu.PopupMenuItem
public class PopupMenuItem
Created by The eXo Platform SAS .
| Constructor Summary | |
|---|---|
PopupMenuItem(java.lang.String title)
Create PopupMenuItem |
|
PopupMenuItem(java.lang.String icon,
java.lang.String title)
Create PopupMenuItem |
|
PopupMenuItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Command command)
|
|
| Method Summary | |
|---|---|
MenuItem |
addItem(java.lang.String title)
Create new MenuItem with specified parameters and add it to the list of children. |
MenuItem |
addItem(java.lang.String title,
com.google.gwt.user.client.Command command)
Create new MenuItem with specified parameters and add it to the list of children. |
MenuItem |
addItem(java.lang.String imageHTML,
java.lang.String title)
Create new MenuItem with specified parameters and add it to the list of children. |
MenuItem |
addItem(java.lang.String imageHTML,
java.lang.String title,
com.google.gwt.user.client.Command command)
Create new MenuItem with specified parameters and add it to the list of children. |
com.google.gwt.user.client.Command |
getCommand()
Get command |
java.lang.String |
getHotKey()
Get Hot Key value |
java.lang.String |
getIcon()
Get icon. |
java.util.List<MenuItem> |
getItems()
Get list of children. |
java.lang.String |
getTitle()
Get menu title |
boolean |
isEnabled()
Get is enabled |
boolean |
isSelected()
Get is selected |
boolean |
isVisible()
Get is visible |
void |
setCommand(com.google.gwt.user.client.Command command)
Set command which will be executed when item will be selected. |
void |
setEnabled(boolean enabled)
Set is enabled |
void |
setHotKey(java.lang.String hotKey)
Set Hot Key |
void |
setIcon(java.lang.String icon)
Set icon as HTML image. |
void |
setSelected(boolean selected)
Set is selected |
void |
setTitle(java.lang.String title)
Set title |
void |
setUpdateItemEnablingCallback(UpdateItemEnablingCallback updateItemEnablingCallback)
|
void |
setVisible(boolean visible)
set is visible |
java.lang.String |
toString()
Use for dump |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PopupMenuItem(java.lang.String title)
title - - title
public PopupMenuItem(java.lang.String icon,
java.lang.String title)
icon - - icon as HTML image for new item. Image must be prepared like "title - - title
public PopupMenuItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Command command)
icon - - icon as HTML image for new item. Image must be prepared like "title - - titlecommand - - command which will be executed when item will be selected| Method Detail |
|---|
public MenuItem addItem(java.lang.String title)
MenuItem
addItem in class MenuItemtitle - - title of menu item
org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#addItem(java.lang.String)
public MenuItem addItem(java.lang.String imageHTML,
java.lang.String title)
MenuItem
addItem in class MenuItemimageHTML - - icon as HTML image. Image must be prepared like "title - - title of menu item
org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#addItem(java.lang.String, java.lang.String)
public MenuItem addItem(java.lang.String title,
com.google.gwt.user.client.Command command)
MenuItem
addItem in class MenuItemtitle - - title of menu itemcommand - - associated command
org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#addItem(java.lang.String, com.google.gwt.user.client.Command)
public MenuItem addItem(java.lang.String imageHTML,
java.lang.String title,
com.google.gwt.user.client.Command command)
MenuItem
addItem in class MenuItemimageHTML - - icon as HTML image. Image must be prepared like "title - - title of menu itemcommand - - asociated command
org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#addItem(java.lang.String, java.lang.String, com.google.gwt.user.client.Command)public void setTitle(java.lang.String title)
MenuItem
setTitle in class MenuItemtitle - - new title of menu itemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setTitle(java.lang.String)public java.lang.String getTitle()
MenuItem
getTitle in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getTitle()public void setIcon(java.lang.String icon)
MenuItem
setIcon in class MenuItempublic java.lang.String getIcon()
MenuItem
getIcon in class MenuItempublic void setVisible(boolean visible)
MenuItem
setVisible in class MenuItemvisible - - true, falseorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setVisible(boolean)public boolean isVisible()
MenuItem
isVisible in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isVisible()public void setSelected(boolean selected)
MenuItem
setSelected in class MenuItemselected - - selected state (true / false)org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setSelected(boolean)public boolean isSelected()
MenuItem
isSelected in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isSelected()public void setEnabled(boolean enabled)
MenuItem
setEnabled in class MenuItemenabled - - true or falseorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setEnabled(boolean)public boolean isEnabled()
MenuItem
isEnabled in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isEnabled()public java.lang.String getHotKey()
MenuItem
getHotKey in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getHotKey()public void setHotKey(java.lang.String hotKey)
MenuItem
setHotKey in class MenuItemhotKey - - Hot Key valueorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setHotKey(java.lang.String)public java.util.List<MenuItem> getItems()
MenuItem
getItems in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getItems()public java.lang.String toString()
toString in class java.lang.Objectpublic void setCommand(com.google.gwt.user.client.Command command)
MenuItem
setCommand in class MenuItemcommand - - command to executeorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setCommand(com.google.gwt.user.client.Command)public com.google.gwt.user.client.Command getCommand()
MenuItem
getCommand in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getCommand()public void setUpdateItemEnablingCallback(UpdateItemEnablingCallback updateItemEnablingCallback)
updateItemEnablingCallback -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||