T
- public interface Menu<T> extends NiftyControl
Modifier and Type | Method and Description |
---|---|
void |
addMenuItem(String menuText,
String menuIcon,
T item)
Add a menu item to this Menu.
|
void |
addMenuItem(String menuText,
T item)
Add a menu item to this Menu.
|
void |
addMenuItemSeparator()
Add a separator.
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
void addMenuItem(String menuText, T item)
menuText
- the text to displayitem
- the itemvoid addMenuItem(String menuText, String menuIcon, T item)
menuText
- the text to displaymenuIcon
- the icon (image) to displayitem
- the itemvoid addMenuItemSeparator()
Copyright © 2013. All Rights Reserved.