|
||||||||||
| 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.Gauge
public class Gauge
This class represents a gauge.
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 | |
|---|---|
Gauge()
Construct a Gauge |
|
| Method Summary | |
|---|---|
protected void |
doLayout()
Layout the widget if its layout is defined. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the specified attribute |
Widget |
getBar()
|
int |
getIncrement()
|
Widget |
getInternalChildInstance(java.lang.String tag)
Returns the first internal child instance corresponding to the given tag. |
Layout |
getLayout()
|
java.lang.String |
getOnChange()
|
int |
getValue()
|
boolean |
processKeyEvent(byte type,
int kuixKeyCode)
Process a key event |
boolean |
processPointerEvent(byte type,
int x,
int y)
Process a pointer event |
boolean |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value to the specified attribute representing by
the name |
void |
setIncrement(int increment)
|
void |
setOnChange(java.lang.String onChange)
|
void |
setValue(int value)
|
| Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget |
|---|
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 Gauge()
Gauge
| Method Detail |
|---|
public boolean setAttribute(java.lang.String name,
java.lang.String value)
Widgetvalue to the specified attribute representing by
the name
setAttribute in class FocusableWidgettrue if the attribute existspublic java.lang.Object getAttribute(java.lang.String name)
Widget
getAttribute in class FocusableWidgetpublic Widget getInternalChildInstance(java.lang.String tag)
Widgettag.
getInternalChildInstance in class Widgetpublic Widget getBar()
public int getValue()
public void setValue(int value)
value - a fixed-point integer representing the valuepublic int getIncrement()
public void setIncrement(int increment)
increment - the increment to setpublic java.lang.String getOnChange()
public void setOnChange(java.lang.String onChange)
onChange - the onChange to setpublic Layout getLayout()
getLayout in class Widgetprotected void doLayout()
Widget
doLayout in class Widget
public boolean processKeyEvent(byte type,
int kuixKeyCode)
Widget
processKeyEvent in class Widgettrue if the event is treated by the widget
public boolean processPointerEvent(byte type,
int x,
int y)
Widget
processPointerEvent in class FocusableWidgettrue if the event is treated by the widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||