|
||||||||||
| 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.MenuBarItem
public class MenuBarItem
Created by The eXo Platform SAS .
| Constructor Summary | |
|---|---|
MenuBarItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Element element,
ItemSelectedHandler callback)
|
|
| 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 icon,
java.lang.String title)
Create new MenuItem with specified parameters and add it to the list of children. |
MenuItem |
addItem(java.lang.String icon,
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. |
void |
closePopupMenu()
Close opened Popup Menu. |
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 |
onMenuItemSelected(MenuItem menuItem)
Do some actions when menu item will be selected. |
boolean |
onMouseDown()
Mouse Down handler |
void |
onMouseOut()
Mouse Out Handler |
void |
onMouseOver()
Mouse Over Handler |
void |
onUpdateItemEnabling()
|
void |
openPopupMenu(MenuLockLayer menuLockLayer)
Open sub Popup Menu |
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 |
setNormalState()
Reset visual state of Menu Bar Item to default. |
void |
setSelected(boolean selected)
Set is selected |
void |
setTitle(java.lang.String title)
Set title |
void |
setVisible(boolean visible)
set is visible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuBarItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Element element,
ItemSelectedHandler callback)
icon - - icon as HTML image for new item. Image must be prepared like "title - - titleelement - - working element ( it must be cell of table )callback - - callBack for notifying Menu when menu item is selected and is need to close all pupups| Method Detail |
|---|
public MenuItem addItem(java.lang.String title)
MenuItem
addItem in class MenuItemtitle - - title of menu item
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
public MenuItem addItem(java.lang.String icon,
java.lang.String title)
MenuItem
addItem in class MenuItemicon - - icon as HTML image. Image must be prepared like "title - - title of menu item
public MenuItem addItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Command command)
MenuItem
addItem in class MenuItemicon - - icon as HTML image. Image must be prepared like "title - - title of menu itemcommand - - asociated command
public void closePopupMenu()
public com.google.gwt.user.client.Command getCommand()
MenuItem
getCommand in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getCommand()public java.lang.String getHotKey()
MenuItem
getHotKey in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getHotKey()public java.lang.String getIcon()
MenuItem
getIcon in class MenuItempublic java.util.List<MenuItem> getItems()
MenuItem
getItems in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getItems()public java.lang.String getTitle()
MenuItem
getTitle in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#getTitle()public boolean isEnabled()
MenuItem
isEnabled in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isEnabled()public boolean isSelected()
MenuItem
isSelected in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isSelected()public boolean isVisible()
MenuItem
isVisible in class MenuItemorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#isVisible()public void onMenuItemSelected(MenuItem menuItem)
ItemSelectedHandler
onMenuItemSelected in interface ItemSelectedHandlermenuItem - selected MenuItemorg.exoplatform.gwtframework.ui.client.ItemSelectedHandler.menu.nn.impl.ItemSelectedCallback#onMenuItemSelected(org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem)public boolean onMouseDown()
public void onMouseOut()
public void onMouseOver()
public void onUpdateItemEnabling()
onUpdateItemEnabling in interface UpdateItemEnablingCallbackpublic void openPopupMenu(MenuLockLayer menuLockLayer)
menuLockLayer - - lock layer which will receive PopupMenu visual component andpublic 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 void setEnabled(boolean enabled)
MenuItem
setEnabled in class MenuItemenabled - - true or falseorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setEnabled(boolean)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 void setIcon(java.lang.String icon)
MenuItem
setIcon in class MenuItempublic void setNormalState()
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 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 void setVisible(boolean visible)
MenuItem
setVisible in class MenuItemvisible - - true, falseorg.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem#setVisible(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||