|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel jwo.utils.gui.JWStatusBar
public class JWStatusBar
Creates status bar for displaying messages and progress.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JWStatusBar()
Creates a status bar for displaying messages and progress. |
|
JWStatusBar(String text)
Creates a status bar for displaying messages and progress. |
Method Summary | |
---|---|
void |
addInterruptionListener(JWInterruptionListener interruptionListener)
Adds the given interruption listener to this status bar. |
boolean |
removeInterruptionListener(JWInterruptionListener interruptionListener)
Removes the given interruption listener from this status bar. |
void |
setMaxProgress(int maxProgress)
Displays the maximum progress value. |
void |
setMessage(String text)
Displays the given message in the status bar. |
void |
setMinProgress(int minProgress)
Displays the minimum progress value. |
void |
setProgress(int progress)
Sets the current progress (should be between 0 and 100 unless minimum or maximum progress values have been changed. |
void |
showProgress(boolean visible)
Shows or removes the progress bar. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JWStatusBar()
public JWStatusBar(String text)
text
- Initial text to display in status bar.Method Detail |
---|
public void setMessage(String text)
text
- Message to display.public void setMinProgress(int minProgress)
minProgress
- Minimum progress value.public void setMaxProgress(int maxProgress)
maxProgress
- Maximum progress value.public void setProgress(int progress)
progress
- progress value.public void showProgress(boolean visible)
visible
- Progress bar will be visible if true;public void addInterruptionListener(JWInterruptionListener interruptionListener)
interruptionListener
- Object to be informed of an
interruption request.public boolean removeInterruptionListener(JWInterruptionListener interruptionListener)
interruptionListener
- Listener to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |