public class ProgressBar extends Widget
| Constructor and Description |
|---|
ProgressBar()
Creates new ProgressBar with default width of 256px
|
ProgressBar(int width)
Creates new ProgressBar
|
ProgressBar(int width,
double progress)
Creates new ProgressBar
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData() |
java.lang.String |
getName() |
ProgressBar |
setProgress(double progress)
Sets progress
|
ProgressBar |
setWidth(int width)
Sets new width
|
addTo, attach, getID, handleData, sendElementpublic ProgressBar()
public ProgressBar(int width)
width - Width of created ProgressBarpublic ProgressBar(int width,
double progress)
width - Width of created ProgressBarprogress - Initial progress, from 0 to 1public ProgressBar setProgress(double progress)
progress - New Progress, from 0 to 1public ProgressBar setWidth(int width)
width - New width