org.kalmeo.kuix.widget
Class Menu.MenuPopup

java.lang.Object
  extended by org.kalmeo.kuix.widget.Widget
      extended by org.kalmeo.kuix.widget.List
          extended by org.kalmeo.kuix.widget.Menu.MenuPopup
Enclosing class:
Menu

public class Menu.MenuPopup
extends List

This class represents a menu popup


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget
Widget.BindInstruction
 
Field Summary
 
Fields inherited from class org.kalmeo.kuix.widget.Widget
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous
 
Constructor Summary
Menu.MenuPopup()
          Construct a Menu.MenuPopup
 
Method Summary
 FocusManager getFocusManager()
          Used for popup like widgets
 LayoutData getLayoutData()
           
 Menu getMenu()
           
 void hide()
          Hide this Menu.MenuPopup
protected  void onRemoved(Widget parent)
          Event called when the widjet is removed from parent.
 void show(Desktop desktop, int displayX, int displayY)
          Display the Menu.MenuPopup
 
Methods inherited from class org.kalmeo.kuix.widget.List
addItem, addItem, addItem, addItem, getDefaultStylePropertyValue, getItemWidget, getRenderer, isObjectAttribute, processItemsModelUpdateEvent, removeAllItems, removeItem, setAttribute, setItems, setObjectAttribute, setRenderer
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, add, bringNear, bringToFront, catchChildrenFrom, cleanUp, cleanUpChildren, clearCachedStyle, doLayout, getAlign, getAttribute, getAuthorStyle, getAvailablePseudoClasses, getBackgroundAlign, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBorderAlign, getBorderColor, getBorderImage, getBorderStroke, getCachedMetrics, getChild, getColor, getDataProvider, getDesktop, getDisplayX, getDisplayY, getGap, getGrayedColor, getHeight, getId, getInheritedTag, getInnerHeight, getInnerWidth, getInsets, getInternalChildInstance, getLastChild, getLayout, getMargin, getMinSize, getOtherFocus, getPadding, getPreferredSize, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, getWidget, getWidgetAt, getWidgetAt, getWidth, getX, getY, hasBindInstruction, hasShortcutKeyCodes, hasShortcuts, invalidate, invalidate, invalidateAppearance, invalidateAppearanceRegion, invalidateStylePropertiesCache, isFocusable, isFocused, isFocusWidgetChild, isIndividualyVisible, isInvalidated, isInWidgetTree, isPseudoClassCompatible, isShortcutKeyCodeCompatible, isVisible, markAsValidate, needToComputePreferredSize, onAdded, onChildAdded, onChildRemoved, onFocus, onLostFocus, paint, paintBackground, paintBorder, paintChildrenImpl, paintImpl, paintMosaicImage, parseAuthorStyle, processActionEvent, processDataBindEvent, processFocusEvent, processKeyEvent, processModelUpdateEvent, processPointerEvent, processShortcutKeyEvent, propagateFocusEvent, remove, removeAll, removeAttributeBindInstruction, requestBackwardFocus, requestFocus, requestForwardFocus, sendToBack, setAttributeBindInstruction, setAuthorStyle, setBounds, setDataProvider, setId, setShortcutKeyCodes, setShortcuts, setStyleClass, setStyleClasses, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Menu.MenuPopup

public Menu.MenuPopup()
Construct a Menu.MenuPopup

Method Detail

getMenu

public Menu getMenu()
Returns:
the associated Menu

getFocusManager

public FocusManager getFocusManager()
Description copied from class: Widget
Used for popup like widgets

Overrides:
getFocusManager in class Widget
Returns:
The special FocusManager

getLayoutData

public LayoutData getLayoutData()
Overrides:
getLayoutData in class Widget
Returns:
the layoutData

show

public void show(Desktop desktop,
                 int displayX,
                 int displayY)
Display the Menu.MenuPopup

Parameters:
desktop -
displayX -
displayY -

hide

public void hide()
Hide this Menu.MenuPopup


onRemoved

protected void onRemoved(Widget parent)
Description copied from class: Widget
Event called when the widjet is removed from parent.

Overrides:
onRemoved in class Widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.