|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.components.notificationbar.NotificationBar
Component to display user notifications about the application status. On the
one hand it displays the status of all currently active IJobs
where on the other hand it displays log messages produced by application
components.
| Field Summary | |
private TableColumn |
durationColumn
Job table: duration column |
private TableColumn |
jobNameColumn
Job table: job name column |
private CTabItem |
jobStatusTabItem
The CTabItem to hold the jobStatusTable
|
private Table |
jobStatusTable
The Table to display the currently active
IJobs
|
private JobStatusTableContentProvider |
jobStatusTableContentProvider
The content provider to hold all JobStatus domain objects
for the currently active IJobs
|
private JobStatusTableLabelProvider |
jobStatusTableLabelProvider
The label provider which converts the JobStatus objects to
gui displayable objects
|
private TableViewer |
jobStatusTableViewer
The TableViewer to act as controller for the
jobStatusTable
|
private CTabItem |
logTabItem
The CTabItem item to hold the logTable |
private Table |
logTable
The Table to display the log |
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private TableColumn |
messageColumn
Log table: Message column |
private Composite |
notificationBarContainer
The container to hold all components |
private CTabFolder |
notificationTabFolder
The CTabFolder to hold the notification tabs |
private TableColumn |
originColumn
Log table: Origin column |
private TableColumn |
priorityColumn
Job table: Priority column |
private TableColumn |
progressColumn
Job table: progress column |
private TableColumn |
startTimeColumn
Job table: Start time column |
private TableColumn |
statusColumn
Job table: status column |
private TableColumn |
typeColumn
Log table: Type column |
| Constructor Summary | |
NotificationBar(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NotificationBar instance.
|
|
| Method Summary | |
private void |
createComponents(Composite parent)
Creates the components used in the context of this NotificationBar.
|
private void |
createJobStatusTable(Composite parent)
Creates and sets up the Job table by creating the required view and model. |
private void |
createJobTableColumns()
Creates the TableColumn objects for the JobStatus table
and adjusts their settings.
|
private void |
createLogTable(Composite parent)
Creates and sets up the log table by creating the required view and model. |
private void |
createLogTableColumns()
Creates the TableColumn objects for the logs table and
adjusts their settings.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
Disposes all resources claimed by this NotificationBar.
|
boolean |
isVisible()
Gets the visibility status of this NotificationBar
component.
|
void |
jobDone(JobEvent event)
Indicates that an IJob is done.
|
void |
jobStarted(JobEvent event)
Indicates that an IJob was started.
|
void |
jobStatusChanged(JobEvent event)
Indicates that the status of an IJob changed.
|
private void |
registerEventHandler()
Creates and registers all event handlers required in this NotificationBar |
void |
setVisible(boolean visible)
Sets the visibility status of this NotificationBar
component.
|
private void |
unregisterEventHandler()
Unregisters all event handlers required in this NotificationBar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MainApplicationWindow mainWindow
The Feed'n Read main window
private Composite notificationBarContainer
The container to hold all components
private CTabFolder notificationTabFolder
The CTabFolder to hold the notification tabs
private CTabItem jobStatusTabItem
The CTabItem to hold the jobStatusTable
private CTabItem logTabItem
The CTabItem item to hold the logTable
private Table jobStatusTable
The Table to display the currently active
IJobs
private TableViewer jobStatusTableViewer
The TableViewer to act as controller for the
jobStatusTable
private JobStatusTableLabelProvider jobStatusTableLabelProvider
The label provider which converts the JobStatus objects to
gui displayable objects
private TableColumn priorityColumn
Job table: Priority column
private TableColumn startTimeColumn
Job table: Start time column
private TableColumn jobNameColumn
Job table: job name column
private TableColumn progressColumn
Job table: progress column
private TableColumn durationColumn
Job table: duration column
private TableColumn statusColumn
Job table: status column
private Table logTable
The Table to display the log
private TableColumn typeColumn
Log table: Type column
private TableColumn messageColumn
Log table: Message column
private TableColumn originColumn
Log table: Origin column
private JobStatusTableContentProvider jobStatusTableContentProvider
The content provider to hold all JobStatus domain objects
for the currently active IJobs
| Constructor Detail |
public NotificationBar(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NotificationBar instance.
parent - the Component to place this NotificationBar inmainWindow - the Feed'n Read main window| Method Detail |
public void dispose()
Disposes all resources claimed by this NotificationBar.
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEventpublic void setVisible(boolean visible)
Sets the visibility status of this NotificationBar
component.
visible - true for visible; false
for invisiblepublic boolean isVisible()
Gets the visibility status of this NotificationBar
component.
true if visible; false
if invisiblepublic void jobStarted(JobEvent event)
Indicates that an IJob was started.
jobStarted in interface IJobListenerevent - the triggered JobEventpublic void jobDone(JobEvent event)
Indicates that an IJob is done.
jobDone in interface IJobListenerevent - the triggered JobEventpublic void jobStatusChanged(JobEvent event)
Indicates that the status of an IJob changed.
jobStatusChanged in interface IJobListenerevent - the triggered JobEventprivate void createComponents(Composite parent)
Creates the components used in the context of this
NotificationBar.
parent - the component that this NotificationBar
and its children should be placed inprivate void createJobStatusTable(Composite parent)
Creates and sets up the Job table by creating the required view and model.
parent - the parent container to embed the created Job table
intoprivate void createJobTableColumns()
Creates the TableColumn objects for the JobStatus table
and adjusts their settings.
private void createLogTable(Composite parent)
Creates and sets up the log table by creating the required view and model.
parent - the parent container to embed the created log table
intoprivate void createLogTableColumns()
Creates the TableColumn objects for the logs table and
adjusts their settings.
private void registerEventHandler()
Creates and registers all event handlers required in this
NotificationBar context.
private void unregisterEventHandler()
Unregisters all event handlers required in this
NotificationBar context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||