DwtMenuItem: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Line 22: | Line 23: | ||
getMenu() | getMenu() | ||
<code>setMenu(menuOrCallback)</code> | |||
<code> ===setMenu(menuOrCallback)=== </code> | |||
Adds a sub-menu to this menu item. | Adds a sub-menu to this menu item. | ||
Revision as of 11:50, 16 April 2006
Methods
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()