javax.microedition.lcdui
Class Gauge
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.Gauge
public class Gauge
- extends Item
| Fields inherited from class javax.microedition.lcdui.Item |
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
|
Constructor Summary |
Gauge(String label,
boolean interactive,
int maxValue,
int initialValue)
|
| Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLayout, setPreferredSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEFINITE
public static final int INDEFINITE
- See Also:
- Constant Field Values
CONTINUOUS_IDLE
public static final int CONTINUOUS_IDLE
- See Also:
- Constant Field Values
INCREMENTAL_IDLE
public static final int INCREMENTAL_IDLE
- See Also:
- Constant Field Values
CONTINUOUS_RUNNING
public static final int CONTINUOUS_RUNNING
- See Also:
- Constant Field Values
INCREMENTAL_UPDATING
public static final int INCREMENTAL_UPDATING
- See Also:
- Constant Field Values
Gauge
public Gauge(String label,
boolean interactive,
int maxValue,
int initialValue)
setValue
public void setValue(int value)
getValue
public int getValue()
setMaxValue
public void setMaxValue(int maxValue)
getMaxValue
public int getMaxValue()
isInteractive
public boolean isInteractive()
setLabel
public void setLabel(String label)
- Overrides:
setLabel in class Item