Java Doc for Worker.java in  » Mail-Clients » columba-1.4 » org » columba » core » command » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Mail Clients » columba 1.4 » org.columba.core.command 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.columba.core.base.SwingWorker
      org.columba.core.command.Worker

Worker
public class Worker extends SwingWorker implements IWorkerStatusController(Code)
Worker additionally sends status information updates to the TaskManager .

This updates get displayed in the StatusBar.

Note that Command objects get Worker objects only when executed.
author:
   fdietz



Field Summary
protected  CommandProcessorboss
    
protected  booleancancelled
    
protected  StringdisplayText
    
protected  EventListenerListlistenerList
    
protected  Commandop
    
protected  intoperationMode
    
protected  intprogressBarMax
    
protected  intprogressBarValue
    
protected  List<IWorkerStatusChangeListener>workerStatusChangeListeners
    

Constructor Summary
public  Worker(CommandProcessor parent)
    

Method Summary
public  voidaddExceptionListener(IExceptionListener l)
     Adds a listener.
public  voidaddWorkerStatusChangeListener(IWorkerStatusChangeListener l)
    
public  voidcancel()
    
public  booleancancelled()
    
public  voidclearDisplayText()
    
public  voidclearDisplayTextWithDelay()
     Clears the text displayed in the status bar - with a given delay.
public  Objectconstruct()
     Method runs in background.
public  voidfinished()
    
protected  voidfireWorkerStatusChanged(WorkerStatusChangedEvent e)
    
public  StringgetDisplayText()
    
public  intgetPriority()
    
public  intgetProgessBarMaximum()
     Returns the max.
public  intgetProgressBarValue()
    
public  intgetTimeStamp()
     Returns the timeStamp.
public  voidprocess(Command theCommand, int theOperationMode, int theTimeStamp)
    
public  voidremoveExceptionListener(IExceptionListener l)
     Removes a previously registered listener.
public  voidremoveWorkerStatusChangeListener(IWorkerStatusChangeListener l)
    
public  voidresetProgressBar()
     Sets the progress bar value to zero, i.e.
public  voidsetDisplayText(String text)
    
public  voidsetProgressBarMaximum(int max)
     Sets the maximum value for the progress bar.
Parameters:
  max - New max.
public  voidsetProgressBarValue(int aValue)
     Sets the current value of the progress bar.
public  Threadstart()
    

Field Detail
boss
protected CommandProcessor boss(Code)



cancelled
protected boolean cancelled(Code)



displayText
protected String displayText(Code)



listenerList
protected EventListenerList listenerList(Code)



op
protected Command op(Code)



operationMode
protected int operationMode(Code)



progressBarMax
protected int progressBarMax(Code)



progressBarValue
protected int progressBarValue(Code)



workerStatusChangeListeners
protected List<IWorkerStatusChangeListener> workerStatusChangeListeners(Code)




Constructor Detail
Worker
public Worker(CommandProcessor parent)(Code)




Method Detail
addExceptionListener
public void addExceptionListener(IExceptionListener l)(Code)
Adds a listener.



addWorkerStatusChangeListener
public void addWorkerStatusChangeListener(IWorkerStatusChangeListener l)(Code)



cancel
public void cancel()(Code)



cancelled
public boolean cancelled()(Code)



clearDisplayText
public void clearDisplayText()(Code)
Clears the text displayed in the status bar - without any delay



clearDisplayTextWithDelay
public void clearDisplayTextWithDelay()(Code)
Clears the text displayed in the status bar - with a given delay. The delay used is 500 ms.
If a new text is set within this delay, the text is not cleared.



construct
public Object construct()(Code)
Method runs in background. Every Command.execute method is wrapped here.

All general exceptions are caught here, nice error dialogs shown to the users.
See Also:   org.columba.core.base.SwingWorker.construct




finished
public void finished()(Code)



fireWorkerStatusChanged
protected void fireWorkerStatusChanged(WorkerStatusChangedEvent e)(Code)



getDisplayText
public String getDisplayText()(Code)
Returns the text currently displayed in the status bar



getPriority
public int getPriority()(Code)



getProgessBarMaximum
public int getProgessBarMaximum()(Code)
Returns the max. value for the progress bar



getProgressBarValue
public int getProgressBarValue()(Code)
Returns the current value for the progress bar



getTimeStamp
public int getTimeStamp()(Code)
Returns the timeStamp. int



process
public void process(Command theCommand, int theOperationMode, int theTimeStamp)(Code)



removeExceptionListener
public void removeExceptionListener(IExceptionListener l)(Code)
Removes a previously registered listener.



removeWorkerStatusChangeListener
public void removeWorkerStatusChangeListener(IWorkerStatusChangeListener l)(Code)



resetProgressBar
public void resetProgressBar()(Code)
Sets the progress bar value to zero, i.e. clears the progress bar. This is the same as calling setProgressBarValue(0)



setDisplayText
public void setDisplayText(String text)(Code)
Set the text to be displayed in the status bar
Parameters:
  text - Text to display in status bar



setProgressBarMaximum
public void setProgressBarMaximum(int max)(Code)
Sets the maximum value for the progress bar.
Parameters:
  max - New max. value for progress bar



setProgressBarValue
public void setProgressBarValue(int aValue)(Code)
Sets the current value of the progress bar.
Parameters:
  aValue - New current value of progress bar



start
public Thread start()(Code)

See Also:   org.columba.core.base.SwingWorker.start



Fields inherited from org.columba.core.base.SwingWorker
protected boolean cancel(Code)(Java Doc)
protected Thread thread(Code)(Java Doc)
protected ThreadVar threadVar(Code)(Java Doc)
protected Object value(Code)(Java Doc)

Methods inherited from org.columba.core.base.SwingWorker
abstract public Object construct()(Code)(Java Doc)
public void finished()(Code)(Java Doc)
public Object get()(Code)(Java Doc)
public boolean getCancel()(Code)(Java Doc)
public Thread getThread()(Code)(Java Doc)
public ThreadVar getThreadVar()(Code)(Java Doc)
protected synchronized Object getValue()(Code)(Java Doc)
public void interrupt()(Code)(Java Doc)
protected boolean isCanceled()(Code)(Java Doc)
public void setCancel(boolean b)(Code)(Java Doc)
public Thread start()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.