|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
uic.widgets.StatusBar
This widget draws a StatusBar with progress line and cancel button.
Normal usage of a statusBar is on a Window, which MainWindow
will help you with.
| Nested Class Summary | |
static interface |
StatusBar.StatusLabelInterface
For applications that want more then just a single label on their status bar they can use this. |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected String |
backup
|
protected AbstractButton |
cancelButton
|
protected JProgressBar |
progressBar
|
protected String |
statusText
|
| 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 | |
StatusBar()
Sole constructor. |
|
| Method Summary | |
AbstractButton |
addProgressBar(int maxValue,
boolean allowCancelButton)
Create a progressbar on the statusBar with an optional cancel button. |
void |
clearTemporaryStatusText()
Reset temporary text. |
protected StatusBar.StatusLabelInterface |
createStatusLabel()
The major part of the statusbar is occupied by the statusLabel, this method creates it. |
Dimension |
getPreferredSize()
overrides the size from the super |
void |
paint(Graphics g)
Overrides the paint from the super |
void |
removeProgressBar()
Remove the progress bar from the statusbar. |
void |
setProgress(int value)
Update an existing progressbar to the new value. |
static void |
setStatus(Component you,
String text)
Set the statusbar on a window which belongs to the same window as 'you' do. |
void |
setTemporaryStatusText(String text)
set a status text that is just a temprorary indicator. |
void |
setText(String text)
Set the status text to be displayed on this statusbar. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String statusText
protected String backup
protected JProgressBar progressBar
protected AbstractButton cancelButton
| Constructor Detail |
public StatusBar()
| Method Detail |
protected StatusBar.StatusLabelInterface createStatusLabel()
public AbstractButton addProgressBar(int maxValue,
boolean allowCancelButton)
maxValue - the maximum value, when set using setProgress will show
the progress completely full.allowCancelButton - create a cancel button next to the progress bar.
removeProgressBar(),
setProgress(int)public void removeProgressBar()
addProgressBar(int, boolean),
setProgress(int)public void setProgress(int value)
removeProgressBar(),
addProgressBar(int, boolean)public void paint(Graphics g)
public Dimension getPreferredSize()
public static void setStatus(Component you,
String text)
you - is a component that is positioned on the same Window as the statusbar.text - the new text to be displayed.
IllegalArgumentException - if 'you' is not placed on a window which is a MainWindow.MainWindowpublic void setText(String text)
public void setTemporaryStatusText(String text)
setText(String),
clearTemporaryStatusText()public void clearTemporaryStatusText()
setTemporaryStatusText(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||