All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.ProgressBar

java.lang.Object
   |
   +----netscape.application.View
           |
           +----netscape.application.InternalWindow
                   |
                   +----semper.tinguin2.ProgressBar

public class ProgressBar
extends InternalWindow
Creates an InternalWindow which shows the progress of an action. Consists of a TextView for the action, a progress bar which shows how many percent of the action are done and a TextView for the subaction.

Version:
0.1
Author:
Christian Haag

Constructor Index

 o ProgressBar(String)
Creates an InternalWindow which show the progress.
 o ProgressBar(String, int, int)
Creates an InternalWindow which show the progress.

Method Index

 o incNumberOfActions()
Increases the number of actions.
 o setActionText(String)
Sets the action text.
 o setNumberOfActions(int)
Sets the number of actions to be taken in this Progress.
 o setProgress(int)
Sets the progress in percent.
 o setSubActionText(String)
Sets the subaction text.

Constructors

 o ProgressBar
 public ProgressBar(String title)
Creates an InternalWindow which show the progress.

Parameters:
title - The title of the InternalWindow
 o ProgressBar
 public ProgressBar(String title,
                    int x,
                    int y)
Creates an InternalWindow which show the progress.

Parameters:
title - The title of the InternalWindow
x - The X-Position of the InternalWindow
y - The Y-Position of the InternalWindow

Methods

 o setActionText
 public void setActionText(String text)
Sets the action text. That is the text at the top of the window.

Parameters:
text - The action text
 o setProgress
 public void setProgress(int p)
Sets the progress in percent. This bar is shown in the middle of the window.

Parameters:
p - Identifies how many percent of the action are done
 o setNumberOfActions
 public void setNumberOfActions(int n)
Sets the number of actions to be taken in this Progress. You can increase this number with incNumberOfActions(). The corresponding percentage is calculated automatically.

Parameters:
n - The number of actions
 o incNumberOfActions
 public void incNumberOfActions()
Increases the number of actions. You must first initialize it with setNumberOfActions().

 o setSubActionText
 public void setSubActionText(String text)
Sets the subaction text. That is the text at the bottom of the window.

Parameters:
text - The subaction text

All Packages  Class Hierarchy  This Package  Previous  Next  Index