WUI : API


org.westofj.wui
Class WMenuItem

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WAbstractButton
          extended byorg.westofj.wui.WMenuElement
              extended byorg.westofj.wui.WMenuItem
Direct Known Subclasses:
WCheckMenuItem, WRadioMenuItem

public class WMenuItem
extends WMenuElement

A selectable item within a WMenu.

Version:
$Revision: 1.2 $, $Date: 2004/03/08 01:57:35 $
Author:
bill

Constructor Summary
WMenuItem()
          Constructs a menu item.
WMenuItem(String text)
          Constructs a menu item with the specified text.
WMenuItem(WDisplayable text)
          Constructs a menu item with the specified text.
 
Method Summary
 int getElementCount()
          Returns the number of elements contained within this menu element.
 List getSubElements()
          Returns the sub-menu elements of this menu element.
 
Methods inherited from class org.westofj.wui.WMenuElement
render, renderModifier
 
Methods inherited from class org.westofj.wui.WAbstractButton
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, press, removeActionListener, setActionCommand, setEnabled, setText, setText
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMenuItem

public WMenuItem()
Constructs a menu item.


WMenuItem

public WMenuItem(String text)
Constructs a menu item with the specified text.

Parameters:
text - the label of the menu item.

WMenuItem

public WMenuItem(WDisplayable text)
Constructs a menu item with the specified text.

Parameters:
text - the label of the menu item.
Method Detail

getElementCount

public int getElementCount()
Description copied from class: WMenuElement
Returns the number of elements contained within this menu element.

Specified by:
getElementCount in class WMenuElement
Returns:
int the number of elements contained within this menu element.

getSubElements

public List getSubElements()
Description copied from class: WMenuElement
Returns the sub-menu elements of this menu element.

Specified by:
getSubElements in class WMenuElement
Returns:
List the sub-menu elements of this menu element.

Copyright (c) 2003 West of J - All rights reserved.