javax.microedition.lcdui
Class Gauge

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.Gauge


public class Gauge
extends Item


Field Summary
static int CONTINUOUS_IDLE
           
static int CONTINUOUS_RUNNING
           
static int INCREMENTAL_IDLE
           
static int INCREMENTAL_UPDATING
           
static int INDEFINITE
           
 
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)
           
 
Method Summary
 int getMaxValue()
           
 int getValue()
           
 boolean isInteractive()
           
 void setLabel(String label)
           
 void setMaxValue(int maxValue)
           
 void setValue(int value)
           
 
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
 

Field Detail

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
Constructor Detail

Gauge

public Gauge(String label,
             boolean interactive,
             int maxValue,
             int initialValue)
Method Detail

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