Home | Trees | Indices | Help |
|
---|
|
object --+ | MenuItem
A composite class for menu items and sub-menus. You can set commands to be fired on user click by implementing the menu_bar.ICommand interface. You can also add multiple MenuItems to a MenuItem and create a sub-menu.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructs a new menu item that can optionally have an icon and a command associated with it. Icon and command can be null, but a caption must be given.
|
Checks if the item has children (if it is a sub-menu).
|
Adds a separator to this menu. A separator is a way to visually group items in a menu, to make it easier for users to find what they are looking for in the menu. Author: Jouni Koivuviita / Vaadin Ltd. |
Add a new item inside this item, thus creating a sub-menu. Icon and command can be null, but a caption must be given.
|
Add an item before some item. If the given item does not exist the item is added at the end of the menu. Icon and command can be null, but a caption must be given.
|
For the associated command.
|
Gets the objects icon.
|
For the containing item. This will return null if the item is in the top-level menu bar.
|
This will return the children of this item or null if there are none.
|
Gets the objects text
|
Returns the number of children.
|
Get the unique identifier for this item.
|
Set the command for this item. Set null to remove.
|
Sets the icon. Set null to remove.
|
Set the text of this object.
|
Remove the first occurrence of the item.
|
Set the parent of this item. This is called by the addItem method.
|
Sets the items's description. See getDescription for more information on what the description is. This method will trigger a RepaintRequestEvent.
|
Gets the items's description. The description can be used to briefly describe the state of the item to the user. The description string may contain certain XML tags: <table border=1> <tr> <td width=120><b>Tag</b></td> <td width=120><b>Description</b></td> <td width=120><b>Example</b></td> </tr> <tr> <td><b></td> <td>bold</td> <td><b>bold text</b></td> </tr> <tr> <td><i></td> <td>italic</td> <td><i>italic text</i></td> </tr> <tr> <td><u></td> <td>underlined</td> <td><u>underlined text</u></td> </tr> <tr> <td><br></td> <td>linebreak</td> <td>N/A</td> </tr> <tr> <td><ul><br> <li>item1<br> <li>item1<br> </ul></td> <td>item list</td> <td> <ul> <li>item1 <li>item2 </ul> </td> </tr> </table> These tags may be nested.
|
Gets the checkable state of the item - whether the item has checked and unchecked states. If an item is checkable its checked state (as returned by isChecked) is indicated in the UI. An item is not checkable by default.
|
Sets the checkable state of the item. If an item is checkable its checked state (as returned by isChecked) is indicated in the UI. An item is not checkable by default. Items with sub items cannot be checkable.
|
Gets the checked state of the item (checked or unchecked). Only used if the item is checkable (as indicated by isCheckable). The checked state is indicated in the UI with the item, if the item is checkable. An item is not checked by default. The CSS style corresponding to the checked state is "-checked".
|
Sets the checked state of the item. Only used if the item is checkable (indicated by isCheckable). The checked state is indicated in the UI with the item, if the item is checkable. An item is not checked by default. The CSS style corresponding to the checked state is "-checked".
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 5 20:45:07 2015 | http://epydoc.sourceforge.net |