|
||||||||||
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
public class ActionWidget
This class is base for all action widgets.
For further informations, visit the Kuix widgets reference page.
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.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 | |
---|---|
ActionWidget(java.lang.String tag)
Construct a ActionWidget |
Method Summary | |
---|---|
java.lang.String |
getOnAction()
|
boolean |
processActionEvent()
Process action event |
boolean |
processKeyEvent(byte type,
int kuixKeyCode)
Process a key event |
boolean |
processPointerEvent(byte type,
int x,
int y)
Process a pointer event |
boolean |
processShortcutKeyEvent(byte type,
int kuixKeyCode)
Process a shortcut key event |
boolean |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value to the specified attribute representing by
the name |
void |
setOnAction(java.lang.String onAction)
|
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 |
Constructor Detail |
---|
public ActionWidget(java.lang.String tag)
ActionWidget
tag
- Method Detail |
---|
public boolean setAttribute(java.lang.String name, java.lang.String value)
Widget
value
to the specified attribute representing by
the name
setAttribute
in class FocusableWidget
true
if the attribute existspublic java.lang.String getOnAction()
public void setOnAction(java.lang.String onAction)
onAction
- public boolean processKeyEvent(byte type, int kuixKeyCode)
Widget
processKeyEvent
in class Widget
true
if the event is treated by the widgetpublic boolean processShortcutKeyEvent(byte type, int kuixKeyCode)
Widget
processShortcutKeyEvent
in class Widget
true
if the event is treated by the widgetpublic boolean processPointerEvent(byte type, int x, int y)
Widget
processPointerEvent
in class FocusableWidget
true
if the event is treated by the widgetpublic boolean processActionEvent()
Widget
processActionEvent
in class Widget
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 |