DwtMenuItem: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Parent must be a DwtMenu object | |||
== Methods == | == Methods == | ||
<code>DwtMenuItem(parent, style, radioGroupId, index, className, posStyle)</coce> | |||
;<code>parent</code> : the parent widget, must be a <code>DwtMenu</code> object | |||
* style menu item's style | |||
* radioGroupId radio group that the menu item is part of | |||
* index position in menu | |||
* className a CSS class | |||
* posStyle positioning style | |||
addSelectionListener(listener) | addSelectionListener(listener) | ||
Revision as of 16:12, 18 April 2006
Parent must be a DwtMenu object
Methods
DwtMenuItem(parent, style, radioGroupId, index, className, posStyle)</coce>
parent
- the parent widget, must be a
DwtMenu
object
- style menu item's style
- radioGroupId radio group that the menu item is part of
- index position in menu
- className a CSS class
- posStyle positioning style
addSelectionListener(listener)
removeSelectionListener()
getChecked()
setChecked(checked, skipNotify)
setEnabled(enabled)
getDisabledImage()
setDisabledImage(imageInfo)
getImage()
setImage(imageInfo)
getMenu()
setMenu(menuOrCallback)
Adds a sub-menu to this menu item.
menuOrCallback
- The dropdown menu or an AjxCallback object. If a callback is given, it is called the first time the menu is requested. The callback must return a valid DwtMenu object.
setSize(width, height)
getText()
setText(text)
setSelectedStyle()
setTriggeredStyle()