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
 void addCommand(Command cmd)
           
 int getMaxValue()
           
 int getValue()
           
 boolean isInteractive()
           
 void setDefaultCommand(Command cmd)
           
 void setItemCommandListener(ItemCommandListener l)
           
 void setLabel(String label)
           
 void setLayout(int layout)
           
 void setMaxValue(int maxValue)
           
 void setPreferredSize(int width, int height)
           
 void setValue(int value)
           
 
Methods inherited from class javax.microedition.lcdui.Item
getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand
 
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

setLabel

public void setLabel(String label)
Overrides:
setLabel in class Item

setLayout

public void setLayout(int layout)
Overrides:
setLayout in class Item

addCommand

public void addCommand(Command cmd)
Overrides:
addCommand in class Item

setItemCommandListener

public void setItemCommandListener(ItemCommandListener l)
Overrides:
setItemCommandListener in class Item

setPreferredSize

public void setPreferredSize(int width,
                             int height)
Overrides:
setPreferredSize in class Item

setDefaultCommand

public void setDefaultCommand(Command cmd)
Overrides:
setDefaultCommand in class Item

setValue

public void setValue(int value)

getValue

public int getValue()

setMaxValue

public void setMaxValue(int maxValue)

getMaxValue

public int getMaxValue()

isInteractive

public boolean isInteractive()


Copyright © 2006-2007 Jayway AB. All Rights Reserved.