|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.util.ValidationObject | +--org.zaval.lw.LwCanvas | +--org.zaval.lw.LwProgress
This is progress bar light weight component that can be used to display progress status for
some processes. The progress status is changed starting from zero to a maxiaml value. The
maximal value can be set by setMaxValue
method and current status can be
controlled by getValue
and setValue
methods. Use
addActionListener
and removeActionListener
methods to listen
whenever the current progress status has been changed. The action event returns previous
value (that is represented with java.lang.Integer class) by getData
method.
The progress bar component can be oriented by two manners:
setOrientation
method to define the progress bar orientation.
Use setTitleView
method to define title view for the component. The view will
be rendered at the center of the progress bar component.
Fields inherited from class org.zaval.lw.LwCanvas |
bits, height, insets, parent, psHeight, psWidth, skins, width, x, y |
Fields inherited from class org.zaval.util.ValidationObject |
isValidFlag |
Constructor Summary | |
LwProgress()
Constructs the progress bar. |
Method Summary | |
void |
addActionListener(LwActionListener l)
Adds the specified action listener to receive action events from this component. |
protected java.awt.Dimension |
calcPreferredSize()
Gets the "pure" preferred size for this component. |
LwView |
getTitleView()
Gets the title view. |
int |
getValue()
Gets the current progress value. |
void |
paint(java.awt.Graphics g)
Paints this component. |
void |
removeActionListener(LwActionListener l)
Removes the specified action listener. |
void |
setBundleColor(java.awt.Color c)
Sets the bundle color. |
void |
setBundleSize(int size)
Sets the bundle size. |
void |
setGap(int g)
Sets the gap. |
void |
setMaxValue(int m)
Sets the maximal value. |
void |
setOrientation(int o)
Sets the specified orientation for the component. |
void |
setTitleView(LwView v)
Sets the specified title view. |
void |
setValue(int p)
Sets the current value. |
Methods inherited from class org.zaval.lw.LwCanvas |
canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isVisible, recalc, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, toString, update, validate, viewManChanged, vrp |
Methods inherited from class org.zaval.util.ValidationObject |
isValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zaval.util.Validationable |
isValid |
Constructor Detail |
public LwProgress()
Method Detail |
public void setOrientation(int o)
o
- the specified orientation.public int getValue()
public void setBundleSize(int size)
size
- the bundle size.public void setBundleColor(java.awt.Color c)
c
- the bundle color.public void setMaxValue(int m)
m
- the maximal value.public void setValue(int p)
p
- the current value.public void setGap(int g)
g
- the gap.public LwView getTitleView()
public void setTitleView(LwView v)
v
- the specified title view.public void paint(java.awt.Graphics g)
LwCanvas
paint
in class LwCanvas
org.zaval.lw.LwCanvas
g
- the graphics context to be used for painting.public void addActionListener(LwActionListener l)
l
- the specified action listener.public void removeActionListener(LwActionListener l)
l
- the specified action listener.protected java.awt.Dimension calcPreferredSize()
LwCanvas
getPreferredSize
method.calcPreferredSize
in class LwCanvas
org.zaval.lw.LwCanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |