|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kalmeo.kuix.widget.Widget
org.kalmeo.kuix.widget.FocusableWidget
org.kalmeo.kuix.widget.ActionWidget
org.kalmeo.kuix.widget.ListItem
org.kalmeo.kuix.widget.MenuItem
org.kalmeo.kuix.widget.Menu
public class Menu
This class represents a menu.
For further informations, visit the Kuix widgets reference page.
Nested Class Summary | |
---|---|
class |
Menu.MenuPopup
This class represents a menu popup |
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget |
---|
Widget.BindInstruction |
Field Summary | |
---|---|
protected Menu.MenuPopup |
popup
|
Fields inherited from class org.kalmeo.kuix.widget.FocusableWidget |
---|
DISABLED_PSEUDO_CLASS, enabled, focusable, focused, HOVER_PSEUDO_CLASS, PSEUDO_CLASSES |
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()
Construct a Menu |
|
Menu(java.lang.String tag)
Construct a Menu |
Method Summary | |
---|---|
void |
cleanUp()
CleanUp all widget's link and propagate the action on its children. |
int |
getDepth()
|
Widget |
getInternalChildInstance(java.lang.String tag)
Returns the first internal child instance corresponding to the given tag . |
Menu.MenuPopup |
getPopup()
|
protected static void |
hideAllMenuPopups()
Hide all visible menuPopups |
void |
hideMenuTree()
Hide the menu tree |
void |
hidePopup()
Close the menuPopup |
boolean |
processActionEvent()
Process action event |
void |
removeAll()
Remove all childs. |
void |
showPopup()
Open the menuPopup |
void |
showPopup(int displayX,
int displayY)
Open the menuPopup |
Methods inherited from class org.kalmeo.kuix.widget.ListItem |
---|
getDefaultStylePropertyValue |
Methods inherited from class org.kalmeo.kuix.widget.ActionWidget |
---|
getOnAction, processKeyEvent, processPointerEvent, processShortcutKeyEvent, setAttribute, setOnAction |
Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget |
---|
getAttribute, getAvailablePseudoClasses, getOnFocus, getOnLostFocus, giveFocusToNearestWidget, isEnabled, isFocusable, isFocused, isPseudoClassCompatible, onAdded, processFocusEvent, remove, requestFocus, setEnabled, setFocusable, setOnFocus, setOnLostFocus, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Menu.MenuPopup popup
Constructor Detail |
---|
public Menu()
Menu
public Menu(java.lang.String tag)
Menu
tag
- Method Detail |
---|
public Widget getInternalChildInstance(java.lang.String tag)
Widget
tag
.
getInternalChildInstance
in class Widget
public Menu.MenuPopup getPopup()
public int getDepth()
public void showPopup()
public void showPopup(int displayX, int displayY)
displayX
- displayY
- public void hidePopup()
public void hideMenuTree()
protected static void hideAllMenuPopups()
public void cleanUp()
Widget
cleanUp
in class Widget
public void removeAll()
Widget
removeAll
in class Widget
public boolean processActionEvent()
Widget
processActionEvent
in class MenuItem
true
if the event is treated by the widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |