pivot.wtk
Class Menu.Item

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.wtk.Button
          extended by pivot.wtk.Menu.Item
All Implemented Interfaces:
ConstrainedVisual, Visual
Enclosing class:
Menu

public static class Menu.Item
extends Button

Component representing a menu item.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.Button
Button.DataRenderer, Button.Group, Button.GroupListener, Button.State
 
Nested classes/interfaces inherited from class pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 
Constructor Summary
Menu.Item()
           
Menu.Item(Object buttonData)
           
 
Method Summary
 ListenerList<Menu.ItemListener> getItemListeners()
           
 Menu getMenu()
           
 Menu.Section getSection()
           
 void press()
          "Presses" the button.
 void setMenu(Menu menu)
           
protected  void setParent(Container parent)
           
 void setTriState(boolean triState)
          Sets the button's tri-state state.
 
Methods inherited from class pivot.wtk.Button
getAction, getButtonData, getButtonListeners, getButtonPressListeners, getButtonStateListeners, getDataRenderer, getGroup, getGroup, getSelectedKey, getState, getStateKey, isSelected, isToggleButton, isTriState, load, setAction, setAction, setButtonData, setDataRenderer, setEnabled, setGroup, setGroup, setSelected, setSelectedKey, setState, setState, setStateKey, setToggleButton, store
 
Methods inherited from class pivot.wtk.Component
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, invalidate, isBlocked, isDisplayable, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, paint, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setFocused, setHeight, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setVisible, setWidth, setX, setY, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Menu.Item

public Menu.Item()

Menu.Item

public Menu.Item(Object buttonData)
Method Detail

setParent

protected void setParent(Container parent)
Overrides:
setParent in class Component

getSection

public Menu.Section getSection()

getMenu

public Menu getMenu()

setMenu

public void setMenu(Menu menu)

setTriState

public void setTriState(boolean triState)
Description copied from class: Button
Sets the button's tri-state state.

Overrides:
setTriState in class Button

press

public void press()
Description copied from class: Button
"Presses" the button. Performs any action associated with the button.

Overrides:
press in class Button

getItemListeners

public ListenerList<Menu.ItemListener> getItemListeners()