|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--superwaba.ext.xplat.ui.ProgressBar
A basic progress bar, with the bar and a text
| Field Summary | |
Color |
textColor
The text color of the text of a progress bar. |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
font,
foreColor,
foreDis,
height,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
visible,
width,
x,
x2,
y,
y2 |
| Constructor Summary | |
ProgressBar()
Creates a progress bar, String is set to null, which is the default.
|
|
ProgressBar(int mn,
int mx)
Creates a progress bar, String is set to null, which is the default.
|
|
| Method Summary | |
int |
getMaximum()
Returns the model's maximum value. |
int |
getMinimum()
Returns the model's minimum value. |
double |
getPercentComplete()
Returns the percentage/percent complete for the progress bar. |
int |
getPreferredHeight()
Returns the preffered height of this control. |
int |
getPreferredWidth()
Returns the preffered width of this control. |
String |
getString()
Returns the current value of the Progress String. |
int |
getValue()
Returns the model's current value. |
void |
onPaint(Graphics g)
Called to draw the control. |
void |
setMaximum(int n)
Sets the model's maximum to n. |
void |
setMinimum(int n)
Sets the model's minimum to n. |
void |
setString(String s)
Sets the value of the Progress String. |
void |
setValue(int n)
Sets the model's current value to x. |
| Methods inherited from class waba.ui.Control |
addTimer,
contains,
createGraphics,
getAbsoluteRect,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getRect,
getSize,
isDisplayed,
isEnabled,
isVisible,
onBoundsChanged,
onColorsChanged,
onEvent,
onFontChanged,
onWindowPaintFinished,
postEvent,
removeTimer,
repaint,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setEnabled,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setRect,
setVisible |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
toString,
wait,
wait |
| Field Detail |
public Color textColor
| Constructor Detail |
public ProgressBar()
null, which is the default.
Uses the default minimum and maximum.
Uses the default minimum for the initial value of the progress bar.
public ProgressBar(int mn,
int mx)
null, which is the default.
Uses the specified minimum and maximum.
Uses the specified minimum for the initial value of the progress bar.| Method Detail |
public String getString()
setString(java.lang.String)public void setString(String s)
null.
If you are providing a custom Progress String via this method,
you will want to ensure that you call setString() before
you call getString().
If you have provided a custom String and want to revert to
the built-in behavior, set the String back to null.s - the value of the percent stringgetString()public double getPercentComplete()
public int getPreferredWidth()
public int getPreferredHeight()
public int getValue()
setValue(int)public int getMinimum()
0.setMinimum(int)public int getMaximum()
100.setMaximum(int)public void setValue(int n)
n - the new valuegetValue()public void setMinimum(int n)
n - the new minimumgetMinimum()public void setMaximum(int n)
x - the new maximumgetMaximum()public void onPaint(Graphics g)
g - the graphics object for drawingGraphics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||