Zimlet JavaScript API Reference - DwtMenuItem

Class DwtMenuItem


Extends DwtButton.

Menu items can be part of a radio group, or can be checked style menu items.

Defined in: DwtMenuItem.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtMenuItem(params)
Creates a menu item.
Field Summary
Field Attributes Field Name and Description
<static>  
DwtMenuItem.CASCADE_STYLE
Defines the "cascade" style.
<static>  
DwtMenuItem.CHECK_STYLE
Defines the "check" style.
<static>  
DwtMenuItem.NO_STYLE
Defines the "no" style.
<static>  
DwtMenuItem.PUSH_STYLE
Defines the "push" style.
<static>  
DwtMenuItem.RADIO_STYLE
Defines the "radio" style.
<static>  
DwtMenuItem.SELECT_STYLE
Defines the "select" style.
<static>  
DwtMenuItem.SEPARATOR_STYLE
Defines the "separator" style.
Method Summary
Method Attributes Method Name and Description
<static>  
DwtMenuItem.create(params)
Creates the menu item.
 
Gets the checked flag.
 
setChecked(checked, skipNotify)
Sets the checked flag.
Methods borrowed from class DwtButton:
addDropDownSelectionListener, addSelectionListener, dispose, getKeyMapName, getMenu, handleKeyAction, isToggled, popup, removeDropDownSelectionListener, removePullDownMenuOptions, removeSelectionListener, removeSelectionListeners, resetClassName, setActionTiming, setDepressedImage, setDisplayState, setDropDownHovImage, setDropDownImages, setEnabled, setEnabledImage, setHovered, setHoverImage, setImage, setMenu, setSelected, setText
Methods borrowed from class DwtLabel:
getImage, getText, isStyle, setAlign, setDisabledImage, setIconEl, setTextBackground, setTextForeground, toString
Methods borrowed from class DwtComposite:
addChild, cleanupSeparators, clear, getChild, getChildren, getNumChildren, getTabGroupMember, removeChild, removeChildren
Methods borrowed from class DwtControl:
addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDragBox, setDragSource, setDropTarget, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
DwtMenuItem(params)
Creates a menu item.
Author: Ross Dargahi.
Parameters:
{hash} params
a hash of parameters
{DwtComposite} params.parent
the parent widget
{constant} params.style
the menu item style
{string} params.radioGroupId
the radio group that the menu item is part of
{number} params.index
the position in menu
{string} params.className
the CSS class
{constant} params.posStyle
the positioning style (see DwtControl)
{string} params.id
an explicit ID to use for the control's HTML element
Field Detail
<static> DwtMenuItem.CASCADE_STYLE
Defines the "cascade" style.

<static> DwtMenuItem.CHECK_STYLE
Defines the "check" style.

<static> DwtMenuItem.NO_STYLE
Defines the "no" style.

<static> DwtMenuItem.PUSH_STYLE
Defines the "push" style.

<static> DwtMenuItem.RADIO_STYLE
Defines the "radio" style.

<static> DwtMenuItem.SELECT_STYLE
Defines the "select" style.

<static> DwtMenuItem.SEPARATOR_STYLE
Defines the "separator" style.
Method Detail
<static> DwtMenuItem.create(params)
Creates the menu item.
Parameters:
{hash} params
a hash of parameters

{boolean} getChecked()
Gets the checked flag.
Returns:
{boolean} true if the item is checked

setChecked(checked, skipNotify)
Sets the checked flag.
Parameters:
{boolean} checked
if true, check the item
{boolean} skipNotify
if true, do not notify listeners

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:29 GMT-0400 (EDT)