|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.chorem.jtimer.ui.StatusBar
public class StatusBar
StatusBar.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected TimerDataManager |
dataManager
DataManager |
protected JLabel |
lblMessage
Message label |
protected JLabel |
lblTime
Time label |
protected int |
nbTasksRunning
Reference how many tasks are running |
protected org.jdesktop.application.ResourceMap |
resourceMap
I18n resources map |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StatusBar(org.jdesktop.application.Application application,
TimerDataManager dataManager)
Constucteur. |
|
| Method Summary | |
|---|---|
void |
addProject(TimerProject project)
Add project event. |
void |
addTask(TimerTask task)
Add task event. |
void |
changeClosedState(TimerTask task)
Change task state. |
void |
dataLoaded(Collection<TimerProject> projects)
All data loaded. |
void |
deleteProject(TimerProject project)
Delete project. |
void |
deleteTask(TimerTask task)
Delete task. |
void |
modifyProject(TimerProject project)
Modify project. |
void |
modifyTask(TimerTask task)
Modify task. |
void |
moveTask(TimerTask task)
Post move task. |
void |
postMergeTasks(TimerTask destinationTask,
List<TimerTask> otherTasks)
Post merge task. |
void |
preMergeTasks(TimerTask destinationTask,
List<TimerTask> otherTasks)
Pre merge task. |
void |
preMoveTask(TimerTask task)
Pre move task. |
void |
setAnnotation(TimerTask task,
Date date,
String annotation)
Add annotation. |
void |
setTaskTime(TimerTask task,
Date date,
Long time)
Set task time. |
protected void |
startStopTask(TimerTask task,
boolean start)
Start and stop task common code. |
void |
startTask(TimerTask task)
Start task. |
void |
stopTask(TimerTask task)
Stop task. |
protected void |
updateTodayTime()
Udpate today time in status bar. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.jdesktop.application.ResourceMap resourceMap
protected TimerDataManager dataManager
protected JLabel lblMessage
protected JLabel lblTime
protected int nbTasksRunning
| Constructor Detail |
|---|
public StatusBar(org.jdesktop.application.Application application,
TimerDataManager dataManager)
application - parent applicationdataManager - data manager| Method Detail |
|---|
protected void updateTodayTime()
public void addProject(TimerProject project)
DataEventListener
addProject in interface DataEventListenerproject - project to addpublic void addTask(TimerTask task)
DataEventListener
addTask in interface DataEventListenertask - task to addpublic void dataLoaded(Collection<TimerProject> projects)
DataEventListener
dataLoaded in interface DataEventListenerprojects - projects collectionpublic void deleteProject(TimerProject project)
DataEventListener
deleteProject in interface DataEventListenerproject - deleted projectpublic void deleteTask(TimerTask task)
DataEventListener
deleteTask in interface DataEventListenertask - deleted taskpublic void modifyProject(TimerProject project)
DataEventListener
modifyProject in interface DataEventListenerproject - modified project
public void setTaskTime(TimerTask task,
Date date,
Long time)
DataEventListener
setTaskTime in interface DataEventListenertask - task where time is changeddate - datetime - task time
public void setAnnotation(TimerTask task,
Date date,
String annotation)
DataEventListener
setAnnotation in interface DataEventListenertask - task where annotation is changeddate - dateannotation - new annotation valuepublic void modifyTask(TimerTask task)
DataEventListener
modifyTask in interface DataEventListenertask - modified taskpublic void changeClosedState(TimerTask task)
DataEventListener
changeClosedState in interface DataEventListenertask - taskpublic void startTask(TimerTask task)
DataEventListener
startTask in interface DataEventListenertask - started taskpublic void stopTask(TimerTask task)
DataEventListener
stopTask in interface DataEventListenertask - stoped task
protected void startStopTask(TimerTask task,
boolean start)
task - taskstart - start(true) or stop (false)public void moveTask(TimerTask task)
DataEventListener
moveTask in interface DataEventListenertask - taskpublic void preMoveTask(TimerTask task)
DataEventListener
preMoveTask in interface DataEventListenertask - task
public void postMergeTasks(TimerTask destinationTask,
List<TimerTask> otherTasks)
DataEventListener
postMergeTasks in interface DataEventListenerdestinationTask - task where all other task will be mergedotherTasks - other tasks to merge
public void preMergeTasks(TimerTask destinationTask,
List<TimerTask> otherTasks)
DataEventListener
preMergeTasks in interface DataEventListenerdestinationTask - task where all other task will be mergedotherTasks - other tasks to merge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||