|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
net.sourceforge.java.feednread.frontend.components.statusbar.StatusLine
Application specific status line implementation.
| Field Summary | |
private CLabel |
dateLabel
The CLabel to hold the status Date |
private static DateFormat |
DEFAULT_DATE_FORMATTER
The default date formatter to format dates to be displayed |
private IProgressMonitor |
defaultProgressMonitor
The default IProgressMonitor to use for reporting progress
of a long enduring operation
|
private CLabel |
messageLabel
The CLabel to hold the status message |
private ProgressBar |
progressBar
The ProgressBarto display the progress status |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|
| Constructor Summary | |
StatusLine(Composite parent)
Creates a new StatusLine instance and embedes it into the
specified component.
|
|
| Method Summary | |
private void |
createComponents(Composite parent)
Creates the components used in this StatusLine context,
adjusts their settings and arranges the layout.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
Disposes all resources claimed by this StatusLine.
|
IProgressMonitor |
getProgressMonitor()
Gets the IProgressMonitor managed by this
StatusLine.
|
void |
setDate(Date date)
Sets the date to be displayed on this StatusLine.
|
void |
setErrorMessage(Image image,
String errorMessage)
Sets an Image and error message text to be displayed on
this StatusLine.
|
void |
setErrorMessage(String errorMessage)
Sets an error message text to be displayed on this StatusLine.
|
void |
setMessage(Image image,
String message)
Sets an Image and message text to be displayed on this
StatusLine.
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static DateFormat DEFAULT_DATE_FORMATTER
The default date formatter to format dates to be displayed
private CLabel messageLabel
The CLabel to hold the status message
private ProgressBar progressBar
The ProgressBarto display the progress status
private CLabel dateLabel
The CLabel to hold the status Date
private IProgressMonitor defaultProgressMonitor
The default IProgressMonitor to use for reporting progress
of a long enduring operation
| Constructor Detail |
public StatusLine(Composite parent)
Creates a new StatusLine instance and embedes it into the
specified component.
parent - the component to embed this StatusLine into| Method Detail |
public void dispose()
Disposes all resources claimed by this StatusLine.
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEvent
public void setMessage(Image image,
String message)
Sets an Image and message text to be displayed on this
StatusLine.
image - the image, or null for no imagemessage - the message, or null for no messagepublic void setErrorMessage(String errorMessage)
Sets an error message text to be displayed on this
StatusLine.
errorMessage - the error message, or null for no
error message
public void setErrorMessage(Image image,
String errorMessage)
Sets an Image and error message text to be displayed on
this StatusLine.
image - the image to use, or null for no imageerrorMessage - the error message, or null for no
error messagepublic void setDate(Date date)
Sets the date to be displayed on this StatusLine.
date - the date to be displayedpublic IProgressMonitor getProgressMonitor()
Gets the IProgressMonitor managed by this
StatusLine.
IProgressMonitor managed by this
StatusLineprivate void createComponents(Composite parent)
Creates the components used in this StatusLine context,
adjusts their settings and arranges the layout.
parent - the component to embed this StatusLine
components into
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||