st
Class GaugeForm

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Screen
              |
              +--javax.microedition.lcdui.Form
                    |
                    +--st.GaugeForm
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class GaugeForm
extends javax.microedition.lcdui.Form
implements javax.microedition.lcdui.CommandListener

A form with a gauge to show progress.


Field Summary
static int GAUGE_MAX
          Maximum value of this gauge.
 
Constructor Summary
GaugeForm(java.lang.String title, boolean stoppable)
          Constructs a new gauge.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
           
 void init(java.lang.String title, boolean stoppable)
          Initializes this gauge.
 void update(int i)
          Update the gauge with the given value.
 
Methods inherited from class javax.microedition.lcdui.Form
append, append, append, delete, get, insert, set, setItemStateListener, size
 
Methods inherited from class javax.microedition.lcdui.Screen
getTicker, getTitle, setTicker, setTitle
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setCommandListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAUGE_MAX

public static final int GAUGE_MAX
Maximum value of this gauge.
Constructor Detail

GaugeForm

public GaugeForm(java.lang.String title,
                 boolean stoppable)
Constructs a new gauge.
Parameters:
title - the title of this gauge.
stoppable - indicates whether the progress can be stopped.
Method Detail

init

public void init(java.lang.String title,
                 boolean stoppable)
Initializes this gauge.
Parameters:
title - the title of this gauge.
stoppable - indicates whether the progress can be stopped.

update

public void update(int i)
            throws ApplicationException
Update the gauge with the given value.
Parameters:
i - the new value for the gauge (between 0 and MAX_VALUE inclusive).

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener


Copyright © 2002 Sun Microsystems Inc. All rights reserved.