|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.microedition.lcdui.Item
|
+--javax.microedition.lcdui.Gauge
A gauge allows a range of values to be entered
| Nested Class Summary | |
protected class |
Gauge.Peer
Peer class that does the drawing |
| Nested classes inherited from class javax.microedition.lcdui.Item |
|
| Field Summary |
| Fields inherited from class javax.microedition.lcdui.Item |
form, highlighted, label, peer |
| Constructor Summary | |
Gauge(java.lang.String label,
boolean interactive,
int maxValue,
int initialValue)
Create a new gauge |
|
| Method Summary | |
int |
getMaxValue()
Get the maximum value |
int |
getValue()
Get the current value |
boolean |
isInteractive()
Return true if it is interactive |
void |
setMaxValue(int maxValue)
Set the maximum value |
void |
setValue(int value)
Set the value |
| Methods inherited from class javax.microedition.lcdui.Item |
getLabel, setLabel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Gauge(java.lang.String label,
boolean interactive,
int maxValue,
int initialValue)
label - The labelinteractive - If it is interactivemaxValue - The maximum valueinitialValue - The initial value| Method Detail |
public int getMaxValue()
public int getValue()
public boolean isInteractive()
public void setMaxValue(int maxValue)
maxValue - The new maximum value
IllegalArgumentException - if the maximum value is invalidpublic void setValue(int value)
value - The value
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||