|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.application.statusbar.support.DefaultStatusBar
public class DefaultStatusBar
A StatusBar control is a component with a horizontal layout which hosts a number of status indication controls. Typically it is situated below the content area of the window.
By default a StatusBar has two predefined status controls: a JLabel and a JProgressBar and it provides API for easy access.
| Constructor Summary | |
|---|---|
DefaultStatusBar()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the messages of this status bar. |
protected JComponent |
createControl()
Subclasses must override this method to create a new instance of the control that this factory produces. |
protected JLabel |
createMessageLabel()
Create the JLabel used to render the messages. |
protected StatusBarProgressMonitor |
createStatusBarProgressMonitor()
Create the StatusBarProgressMonitor. |
ProgressMonitor |
getProgressMonitor()
Returns the status bar's progress monitor |
void |
setCancelEnabled(boolean enabled)
Controls whether the ProgressIndication provides UI for canceling a long running operation. |
void |
setErrorMessage(Message errorMessage)
Sets the error message text to be displayed on the status bar. |
void |
setErrorMessage(String errorMessage)
Sets the error message text to be displayed on the status bar. |
void |
setMessage(Message message)
Sets the message text to be displayed on the status bar. |
void |
setMessage(String message)
Sets the message text to be displayed on the status bar. |
void |
setVisible(boolean visible)
Shows or hides this status bar. |
| Methods inherited from class org.springframework.richclient.factory.AbstractControlFactory |
|---|
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton |
| Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
|---|
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.richclient.factory.ControlFactory |
|---|
getControl |
| Constructor Detail |
|---|
public DefaultStatusBar()
| Method Detail |
|---|
public ProgressMonitor getProgressMonitor()
getProgressMonitor in interface StatusBarpublic void setCancelEnabled(boolean enabled)
setCancelEnabled in interface StatusBarenabled - true or falsepublic void setMessage(Message message)
The icon of the message is ignored
setMessage in interface StatusBarmessage - the message to be set, if null, the status line is cleared.public void setMessage(String message)
setMessage in interface StatusBarmessage - the message to be set, if null, the status line is cleared.public void setErrorMessage(Message errorMessage)
Error messages are shown over the standard message, and in a red color.
The icon of the message is ignored
setErrorMessage in interface StatusBarmessage - the error message to be set, if null, the error message is cleared, and the standard
message is shown againpublic void setErrorMessage(String errorMessage)
Error messages are shown over the standard message, and in a red color.
setErrorMessage in interface StatusBarmessage - the error message to be set, if null, the error message is cleared, and the standard
message is shown againprotected JLabel createMessageLabel()
JLabel used to render the messages.
Can safely be overridden to customize the label
JLabelprotected JComponent createControl()
AbstractControlFactory
createControl in class AbstractControlFactoryprotected StatusBarProgressMonitor createStatusBarProgressMonitor()
StatusBarProgressMonitor.
Can safely be overridden to customize the progress monitor and its components
StatusBarProgressMonitorpublic void setVisible(boolean visible)
setVisible in interface StatusBarvisible - true or falseComponent.setVisible(boolean)public void clear()
StatusBar
clear in interface StatusBar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||