palmed.ui
Class ProgressDialog

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by palmed.ui.Dialog
                  extended by palmed.ui.ProgressDialog
All Implemented Interfaces:
IProgressIndicator

public final class ProgressDialog
extends Dialog
implements IProgressIndicator

This dialog displays a progress bar.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Constructor Summary
ProgressDialog(javax.microedition.lcdui.Display display, java.lang.String operation, int steps, javax.microedition.lcdui.Displayable next)
          Create a progress dialog.
 
Method Summary
 void step()
          Increments the progress indicator. The dialog is dismissed if the maximum number of steps has been reached.
 
Methods inherited from class palmed.ui.Dialog
appendMessage
 
Methods inherited from class javax.microedition.lcdui.Form
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressDialog

public ProgressDialog(javax.microedition.lcdui.Display display,
                      java.lang.String operation,
                      int steps,
                      javax.microedition.lcdui.Displayable next)
Create a progress dialog.

Parameters:
display - the application display
operation - the name of the operation under process
steps - the maximum number of steps
next - the displayable to show when 'OK' is pressed
Method Detail

step

public void step()
Increments the progress indicator.

The dialog is dismissed if the maximum number of steps has been reached.

Specified by:
step in interface IProgressIndicator


Copyright © 2004-2006 PalmEd. All Rights Reserved.