|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.rssowl.controller.statusline.StatusLine
The status line at the bottom of RSSOwl that shows the status of loading / reloading / searching of newsfeeds. A cancel button allows to cancel the operation, whereas the skip button allows to skip the current operation.
Field Summary | |
(package private) LoadJob |
currentLoadingJob
|
private org.eclipse.swt.widgets.Label |
dateLabel
|
(package private) org.eclipse.swt.widgets.Display |
display
|
(package private) int |
entireLoad
|
(package private) int |
finishedLoad
|
private Calendar |
lastStatusDate
|
static int |
LOAD
Status: Load |
private static String |
LOAD_LABEL
Label for Loading |
private Vector |
loadingJobQueue
|
private org.eclipse.swt.widgets.Composite |
parent
|
private org.eclipse.swt.widgets.Label |
rateStatusLabel
|
static int |
RELOAD
Status: Reload |
private static String |
RELOAD_LABEL
Label for Reloading |
(package private) GUI |
rssOwlGui
|
static int |
SEARCH
Status: Search |
private static String |
SEARCH_LABEL
Label for Searching |
private org.eclipse.swt.widgets.ToolItem |
skipFeedButton
|
private Thread |
statusLineAnimator
|
private org.eclipse.swt.widgets.Composite |
statusLineHolder
|
(package private) org.eclipse.swt.widgets.Label |
statusProgressBar
|
private org.eclipse.swt.widgets.Label |
statusTextLabel
|
private org.eclipse.swt.widgets.ToolItem |
stopOperationButton
|
private org.eclipse.swt.widgets.ToolBar |
stopOperationLoadBar
|
Constructor Summary | |
StatusLine(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Composite parent,
GUI rssOwlGui)
Instantiate a new StatusLine |
Method Summary | |
void |
addEntireLoad(int loadcount)
Add a number to the entireLoad value. |
private void |
displayJob(LoadJob rssOwlLoadJob)
Display the given Job in the status line |
void |
finishJob(LoadJob rssOwlLoadJob)
The given Job has finished normally and was not interrupted by the user. |
private int |
getLoadingPercentages()
Calculate the percentages of finishedLoad divided through entireLoad. |
private String |
getStyleText(int style)
Format the given style as String |
private void |
initComponents()
Init the status lines controls |
private void |
initJobLabel()
Update the Job Label from the Translation. |
void |
insertJob(LoadJob rssOwlLoadJob)
This tells the status line that a new Job has been started. |
boolean |
isBusyLoading()
Check if RSSOwl is currently busy loading feeds. |
(package private) void |
operationCanceld()
The current running operation was canceld by the user. |
private void |
resetStatusLine()
Resets the status line. |
private void |
setSkipFeedEnabled(boolean enabled)
Set the skip feed button enabled / disabled |
private void |
setStatusEnabled(boolean enabled)
Set the status controlls enabled / disabled |
private void |
setStatusText(String text)
Set the status text and avoid display of accelerators with replacing all amps with double amps. |
private void |
setupDefaults()
Reset some values to default. |
private void |
startStatusAnimatorThread(int initCount)
Start / Resume the status animator thread |
private void |
updateDateLabel(boolean force)
Update the date of the label |
void |
updateFonts()
|
void |
updateI18N()
|
void |
updateRateLabel(String msg)
Set text to the rate label |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LOAD
public static final int RELOAD
public static final int SEARCH
private static String LOAD_LABEL
private static String RELOAD_LABEL
private static String SEARCH_LABEL
private org.eclipse.swt.widgets.Label dateLabel
private Calendar lastStatusDate
private Vector loadingJobQueue
private org.eclipse.swt.widgets.Composite parent
private org.eclipse.swt.widgets.Label rateStatusLabel
private org.eclipse.swt.widgets.ToolItem skipFeedButton
private Thread statusLineAnimator
private org.eclipse.swt.widgets.Composite statusLineHolder
private org.eclipse.swt.widgets.Label statusTextLabel
private org.eclipse.swt.widgets.ToolItem stopOperationButton
private org.eclipse.swt.widgets.ToolBar stopOperationLoadBar
LoadJob currentLoadingJob
org.eclipse.swt.widgets.Display display
int entireLoad
int finishedLoad
GUI rssOwlGui
org.eclipse.swt.widgets.Label statusProgressBar
Constructor Detail |
public StatusLine(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Composite parent, GUI rssOwlGui)
display
- The displayparent
- The parent Composite of the Status LinerssOwlGui
- The Main controllerMethod Detail |
public void addEntireLoad(int loadcount)
loadcount
- The number of jobs that will start. From an aggregation,
the number of all favorites in the aggregation will be passed as value.public void finishJob(LoadJob rssOwlLoadJob)
rssOwlLoadJob
- The job that has finishedpublic void insertJob(LoadJob rssOwlLoadJob)
rssOwlLoadJob
- The job that has been startedpublic boolean isBusyLoading()
public void updateFonts()
IFontChangeable.updateFonts()
public void updateI18N()
ITranslatable.updateI18N()
public void updateRateLabel(String msg)
msg
- The text to setprivate void displayJob(LoadJob rssOwlLoadJob)
rssOwlLoadJob
- The job to displayprivate int getLoadingPercentages()
private String getStyleText(int style)
style
- The style to format
private void initComponents()
private void initJobLabel()
private void resetStatusLine()
private void setSkipFeedEnabled(boolean enabled)
enabled
- TRUE for enabledprivate void setStatusEnabled(boolean enabled)
enabled
- TRUE for enabledprivate void setStatusText(String text)
text
- The text to displayprivate void setupDefaults()
private void startStatusAnimatorThread(int initCount)
initCount
- The initial progress of the bar as value (0-100)private void updateDateLabel(boolean force)
force
- TRUE forces the update to occur, even if the day has not
changed.void operationCanceld()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |