|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.statusline.StatusLine
public class 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 Label |
dateLabel
|
(package private) Display |
display
|
(package private) int |
entireLoad
|
(package private) int |
finishedLoad
|
private java.util.Calendar |
lastStatusDate
|
static int |
LOAD
Status: Load |
private static java.lang.String |
LOAD_LABEL
Label for Loading |
private java.util.Vector |
loadingJobQueue
|
private Composite |
parent
|
private Label |
rateStatusLabel
|
static int |
RELOAD
Status: Reload |
private static java.lang.String |
RELOAD_LABEL
Label for Reloading |
(package private) GUI |
rssOwlGui
|
static int |
SEARCH
Status: Search |
private static java.lang.String |
SEARCH_LABEL
Label for Searching |
private Label |
sepA
|
private ToolItem |
skipFeedButton
|
private java.lang.Thread |
statusLineAnimator
|
private Composite |
statusLineHolder
|
(package private) Label |
statusProgressBar
|
private Label |
statusTextLabel
|
private ToolItem |
stopOperationButton
|
private ToolBar |
stopOperationLoadBar
|
| Constructor Summary | |
|---|---|
StatusLine(Display display,
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 java.lang.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. |
void |
setAmphetaRateItemsVisible(boolean visible)
Set the AmphetaRate Statusline-Items visible or invisible based on the given argument. |
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(java.lang.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(java.lang.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 java.lang.String LOAD_LABEL
private static java.lang.String RELOAD_LABEL
private static java.lang.String SEARCH_LABEL
private Label dateLabel
private java.util.Calendar lastStatusDate
private java.util.Vector loadingJobQueue
private Composite parent
private Label rateStatusLabel
private Label sepA
private ToolItem skipFeedButton
private java.lang.Thread statusLineAnimator
private Composite statusLineHolder
private Label statusTextLabel
private ToolItem stopOperationButton
private ToolBar stopOperationLoadBar
LoadJob currentLoadingJob
Display display
int entireLoad
int finishedLoad
GUI rssOwlGui
Label statusProgressBar
| Constructor Detail |
|---|
public StatusLine(Display display,
Composite parent,
GUI rssOwlGui)
display - The displayparent - The parent Composite of the Status LinerssOwlGui - The Main controller| Method 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 setAmphetaRateItemsVisible(boolean visible)
visible - Set to TRUE if the Items are to be visible.public void updateFonts()
IFontChangeable.updateFonts()public void updateI18N()
ITranslatable.updateI18N()public void updateRateLabel(java.lang.String msg)
msg - The text to setprivate void displayJob(LoadJob rssOwlLoadJob)
rssOwlLoadJob - The job to displayprivate int getLoadingPercentages()
private java.lang.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(java.lang.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 | |||||||||