pivot.wtk
Class MenuPopup

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.wtk.Container
          extended by pivot.wtk.Window
              extended by pivot.wtk.MenuPopup
All Implemented Interfaces:
java.lang.Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual

public class MenuPopup
extends Window

Popup class that displays a cascading menu.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.Window
Window.ActionDictionary
 
Nested classes/interfaces inherited from class pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary
 
Nested classes/interfaces inherited from interface pivot.collections.Sequence
Sequence.Search, Sequence.Sort, Sequence.Tree
 
Constructor Summary
MenuPopup()
           
MenuPopup(Menu menu)
           
 
Method Summary
 void close()
          Closes the window.
 Component getAffiliate()
           
 Menu getMenu()
           
 ListenerList<MenuPopupListener> getMenuPopupListeners()
           
 void open(Component affiliate)
          Opens the popup.
 void open(Display display, int x, int y)
           
 void open(Display display, Point location)
           
 void open(Window owner, int x, int y)
           
 void open(Window owner, Point location)
           
 void setMenu(Menu menu)
           
 
Methods inherited from class pivot.wtk.Window
align, align, getActions, getActiveDescendant, getActiveWindow, getContent, getIcon, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isAuxilliary, isClosed, isClosing, isMaximized, isOpen, isOpening, isOwner, mouseDown, moveToBack, moveToFront, open, open, remove, setActive, setActiveDescendant, setActiveWindow, setContent, setDisplayable, setEnabled, setIcon, setIcon, setIcon, setMaximized, setOwner, setParent, setTitle
 
Methods inherited from class pivot.wtk.Container
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, invalidate, isAncestor, isFocusable, isValid, iterator, load, load, mouseClick, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, setTooltip, setVisible, store, store, update, validate
 
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, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, isBlocked, isDisplayable, isEnabled, isFocused, isMouseOver, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointToAncestor, mouseOver, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDragSource, setDropTarget, setFocused, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setUserData, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MenuPopup

public MenuPopup()

MenuPopup

public MenuPopup(Menu menu)
Method Detail

getMenu

public Menu getMenu()

setMenu

public void setMenu(Menu menu)

getAffiliate

public Component getAffiliate()

open

public void open(Display display,
                 int x,
                 int y)

open

public void open(Display display,
                 Point location)

open

public void open(Window owner,
                 int x,
                 int y)

open

public void open(Window owner,
                 Point location)

open

public void open(Component affiliate)
Opens the popup.

Parameters:
affiliate - The component with which the popup is affiliated.

close

public void close()
Description copied from class: Window
Closes the window. Closing a window closes all owned windows and removes the window from the display's component sequence. If the window was the active window, the active window will be cleared. If the window was the focus host, the focused component will be cleared.

Overrides:
close in class Window

getMenuPopupListeners

public ListenerList<MenuPopupListener> getMenuPopupListeners()