Field Summary |
public static
| activeMenu: Object |
| internal vars the currently actve main menu
|
|
public static
| activeSubMenu: Object |
| the currently actve mi
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| openOnRollOver: Boolean |
| Controls whether sub menus open when moused over; if false they require an explicit click to open
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| dataProvider: Object (read, write) |
| The hierarchy of objects to be displayed as menus.
|
|
public
| document: XMLNode (read, write) |
|
|
|
public
| groupExpandDirection: String (read, write) |
| The directions of expansion for Menu groups when they open
|
|
public
| itemsSource: ListDataSource (read, write) |
| Gets or sets an itemsSource
|
|
public
| source: String (read, write) |
| The URL of an XML dcoument to be loaded
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| MenuBar (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addMenuItemNode (
parentId: String, node: XMLNode
) |
| Adds an nested xml node to the menubar
|
|
public
| addSubMenuItem (
parentId: String, params: Object
): MenuItem |
| Add an item to a submenu
|
|
public
| close (
): Void |
| Close this menu and all open sub menu's
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| getMenu (
id: String
) |
| Get a reference to the menu using the menu's Id
|
|
public
| modelChangedHandler (
e: Event
): Void |
|
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| showMenu (
mi
): Void |
| Display a menu
|
|
public
| showSubMenu (
mi
): Void |
| Display a submenu
|
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|