| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
util.IEventListener --+
|
terminal.paintable.IPaintable --+
|
object --+ |
| |
terminal.variable_owner.IVariableOwner --+
|
object --+ |
| |
terminal.sizeable.ISizeable --+
|
component.IComponent --+
|
object --+ |
| |
event.method_event_source.IMethodEventSource --+
|
abstract_component.AbstractComponent --+
|
MenuBar
A class representing a horizontal menu bar. The menu can contain MenuItem objects, which in turn can contain more MenuBars. These sub-level MenuBars are represented as vertical menu.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
CLIENT_WIDGET = Nonehash(x) |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructs an empty, horizontal menu
|
Paint (serialise) the component for the client.
|
Deserialize changes received from client.
|
Add a new item to the menu bar. 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.
|
Returns a list with all the MenuItem objects in the menu bar
|
Remove first occurrence the specified item from the main menu
|
Returns the size of the menu.
|
Set the icon to be used if a sub-menu has children. Defaults to null; Deprecated: Icon is set in theme, no need to worry about the visual representation here. |
See Also: setSubmenuIcon |
Enable or disable collapsing top-level items. Top-level items will collapse together if there is not enough room for them. Items that don't fit will be placed under the "More" menu item. Collapsing is enabled by default. Deprecated: Collapsing is always enabled if the MenuBar has a specified width. |
See Also: #setCollapse(boolean) @deprecated |
Set the item that is used when collapsing the top level menu. All "overflowing" items will be added below this. The item command will be ignored. If set to null, the default item with a downwards arrow is used. The item command (if specified) is ignored. |
Using this method menubar can be put into a special mode where top level menus opens without clicking on the menu, but automatically when mouse cursor is moved over the menu. In this mode the menu also closes itself if the mouse is moved out of the opened menu. Note, that on touch devices the menu still opens on a click event.
|
Detects whether the menubar is in a mode where top level menus are automatically opened when the mouse cursor is moved over the menu. Normally root menu opens only by clicking on the menu. Submenus always open automatically.
|
Sets whether html is allowed in the item captions. If set to true, the captions are passed to the browser as html and the developer is responsible for ensuring no harmful html is used. If set to false, the content is passed to the browser as plain text.
|
Checks whether item captions are interpreted as html or plain text.
See Also: setHtmlContentAllowed |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Apr 20 16:52:56 2013 | http://epydoc.sourceforge.net |