linb.UI.MenuBar

Direct Super Classes

linb.Base

linb.iBox

linb.iDataBinder

linb.UI

linb.UI.iList

linb.UI.iWidget

Events

afterCreated (profile)
Fired after component is created. At this time, component object has not been attached to DOM.
profile: UIProfile. See profile name.

afterRendered (profile)
Fired after component is rendered in DOM. At this time, component object has been attached to DOM.
profile: UIProfile. See profile name.

beforeClickEffect (profile, item, src, type)
When end uese is clicking this component, this component will high-light itself. This action is called clicking effect. Developer can change default effect in this event handler. If false returned, default effect will be disabled.
profile: UIProfile. See profile name.
item: Always be null.
src: DOM node. The DOM host of this event.
type: String. Could be "mousedown" or "mouseup".

beforeDestroy (profile)
Fired before component is destroyed.
profile: UIProfile. See profile name.

beforeHoverEffect (profile, item, src, type)
When mouse pointer is hovering over this component, this component will high-light itself. This action is called clicking effect. Developer can change default effect in this event handler. If false returned, default effect will be disabled.
profile: UIProfile. See profile name.
item: Always be null.
src: DOM node. The DOM host of this event.
type: String. Could be "mousedown" or "mouseup".

beforeNextFocus (profile, e, src)
Fired before next component gets focus.
profile: UIProfile. See profile name.
e: See event object.
src: DOM node. The DOM host of this event.

onHotKeydown (profile, key, control, shift, alt, e, src)
Fired when key is down.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeypress (profile, key, control, shift, alt, e, src)
Fired when key is pressed.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeyup (profile, key, control, shift, alt, e, src)
Fired when key is up.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onMenuSelected ( profile, id, src)
Fired when menu item is selected.
profile: UIProfile. See profile name.
id: String. Id of menu item.
src: DOM node. Event host.

Instance Methods

getHandler ( )
To determine whether a handler is showing or hiding.
returns: Boolean. True for showing, false for hiding.

hide ( flag )
To hide drop-down menu items.

pop ( id, src, flag )
To pop up menu items with specific id.
id: String. Item id.

reset ( )
To reset menus.

setHandler ( value, flag )
To specify whether a handler is showing or hiding.
value: Boolean. True for showing, false for hiding.