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
-
ProgressBar(String)
- Creates an InternalWindow which show the progress.
-
ProgressBar(String, int, int)
- Creates an InternalWindow which show the progress.
-
incNumberOfActions()
- Increases the number of actions.
-
setActionText(String)
- Sets the action text.
-
setNumberOfActions(int)
- Sets the number of actions to be taken in this Progress.
-
setProgress(int)
- Sets the progress in percent.
-
setSubActionText(String)
- Sets the subaction text.
ProgressBar
public ProgressBar(String title)
- Creates an InternalWindow which show the progress.
- Parameters:
- title - The title of the InternalWindow
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
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
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
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
incNumberOfActions
public void incNumberOfActions()
- Increases the number of actions. You must first initialize it
with setNumberOfActions().
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