|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.ProgressBar
A basic progress bar, with the bar and a text. This version is simplier than the one provided in the package superwaba.ext.xplat.ui.
| Field Summary | |
boolean |
drawBorder
If false, no border is drawn. |
int |
max
The maximum value of a progress bar. |
int |
min
The minimum value of a progress bar. |
java.lang.String |
prefix
The string prefix. |
java.lang.String |
suffix
The string prefix. |
Color |
textColor
The text color |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
appObj,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
clearValueInt,
clearValueStr,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
focusTraversable,
font,
foreColor,
foreDis,
height,
highlightRectsCount,
isHighlighting,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
uiCE,
uiFlat,
uiPalm,
uiVista,
visible,
width,
x,
x2,
y,
y2 |
| Constructor Summary | |
ProgressBar()
Creates a progress bar, with minimum and maximum set as 0 and 100, respectively. |
|
ProgressBar(int min,
int max)
Creates a progress bar, String is set to null, which is the default.
|
|
| Method Summary | |
void |
clear()
Clears this control, setting the value to clearValueInt. |
int |
getPreferredHeight()
Returns the preferred height, which is fmH+2 |
int |
getPreferredWidth()
Gets the preferred width, which is the parent's width-6, or the screen's width. |
int |
getValue()
Returns the current value |
void |
onPaint(Graphics g)
Paint the Progress Bar. |
void |
setValue(int n)
Sets the current value. |
void |
setValue(int value,
java.lang.String prefix,
java.lang.String suffix)
Sets the current value and the prefix and suffix. |
| Methods inherited from class waba.ui.Control |
addTimer,
changeHighlighted,
contains,
createGraphics,
drawHighlight,
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,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public int min
public int max
public java.lang.String prefix
public java.lang.String suffix
public Color textColor
public boolean drawBorder
| Constructor Detail |
public ProgressBar()
public ProgressBar(int min,
int max)
null, which is the default.
Uses the specified minimum for the initial value of the progress bar.min - The minimum valuemax - The maximum value| Method Detail |
public int getPreferredWidth()
public int getPreferredHeight()
public void setValue(int n)
n - The new valuegetValue()
public void setValue(int value,
java.lang.String prefix,
java.lang.String suffix)
value - The new valuegetValue()public int getValue()
public void onPaint(Graphics g)
g - the graphics object for drawingGraphicspublic void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||