All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.ProgressBar

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.ProgressBar

public class ProgressBar
extends Component
Class ProgressBar represents progress bar class.


Constructor Index

 o ProgressBar()
Creates a new ProgressBar.
 o ProgressBar(String)
Creates a new ProgressBar.

Method Index

 o clear()
Get the percentage value of the progress bar.
 o getPercent()
Get the percentage value of the progress bar.
 o getText()
Gets the text of this progress bar.
 o paint(Graphics)
Paints the component.
 o setPercent(int)
Set the percentage value of the progress bar.
 o setText(String)
Sets the text for this progress bar to the specified text.

Constructors

 o ProgressBar
 public ProgressBar()
Creates a new ProgressBar.

 o ProgressBar
 public ProgressBar(String label)
Creates a new ProgressBar.

Methods

 o getText
 public String getText()
Gets the text of this progress bar.

See Also:
setText
 o setText
 public void setText(String s)
Sets the text for this progress bar to the specified text.

Parameters:
text - the text that makes up the progress bar
See Also:
getText
 o setPercent
 public synchronized void setPercent(int percentComplete)
Set the percentage value of the progress bar.

Parameters:
percentComplete - the percentage value of the progress bar.
 o getPercent
 public int getPercent()
Get the percentage value of the progress bar.

Returns:
the percentage value of the progress bar.
 o clear
 public void clear()
Get the percentage value of the progress bar.

Returns:
the percentage value of the progress bar.
 o paint
 public synchronized void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index