|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsos.koa.Task
sos.koa.CountAdapter
Class to count the votes.
| Nested Class Summary |
| Nested classes inherited from class sos.koa.Task |
Task.ActionThread, Task.MonitoredThread |
| Field Summary | |
(package private) java.util.ArrayList |
errors
A list containing errors encountered this far. |
(package private) boolean |
keepRunning
Whether to keep counting. |
(package private) int |
votesCounted
The number of votes counted this far. |
(package private) VoteSet |
voteSet
The datastructure containing counted votes. |
| Fields inherited from class sos.koa.Task |
maxSubTasks, monitor, stillWorking, subTaskCount, success |
| Constructor Summary | |
CountAdapter()
Constructs this adapter. |
|
| Method Summary | |
void |
doAction()
Counts the votes. |
(package private) java.lang.Object |
getAdditionalInfo()
Gets even more information about this (completed) task. |
(package private) java.lang.String[] |
getErrors()
Gets the errors encountered during execution of this task. |
(package private) java.lang.String |
getFailureMessage()
What to print in failure dialog. |
(package private) java.lang.String |
getInfo()
Gets information that should be displayed if this task completes successfully. |
(package private) java.lang.String |
getSuccessMessage()
What to print in success dialog. |
(package private) int |
getSuccessState()
The application state after successful termination of this task. |
(package private) java.lang.String |
getTitle()
The title of this task. |
(package private) boolean |
isAdditionalInfoAvailable()
Indicates whether even more information is available about this (completed) task. |
(package private) boolean |
isPreStateAllowed(int state)
|
(package private) boolean |
isProgressMonitoredTask()
Indicates whether a progress monitor should be popped up. |
(package private) void |
logCompleted()
Writes a 'task completed' entry in the log. |
(package private) void |
logFailed(java.lang.String reason)
Writes a 'task failed' entry in the log. |
(package private) void |
logStarted()
Writes a 'task started' entry in the log. |
(package private) void |
stopAction()
What to do to halt the execution of the doAction method. |
| Methods inherited from class sos.koa.Task |
actionPerformed, clear, getWarningMessage, isCancelableTask, isDangerousTask, isModalTask, logCanceled, logOpenedFile, popupAdditionalInfo, popupAdditionalInfo, popupFailure, popupGetFile, popupGetPassword, popupNext, popupNextOrBack, popupSuccess, popupWarning, setMaxSubTasks, setSubTaskCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
VoteSet voteSet
int votesCounted
boolean keepRunning
java.util.ArrayList errors
| Constructor Detail |
public CountAdapter()
| Method Detail |
java.lang.String getTitle()
Task
getTitle in class Taskjava.lang.String getSuccessMessage()
Task
getSuccessMessage in class Taskjava.lang.String getFailureMessage()
Task
getFailureMessage in class Taskboolean isPreStateAllowed(int state)
isPreStateAllowed in class Taskint getSuccessState()
Task
getSuccessState in class Taskvoid logStarted()
Task
logStarted in class Taskvoid logCompleted()
Task
logCompleted in class Taskvoid logFailed(java.lang.String reason)
Task
logFailed in class Taskboolean isProgressMonitoredTask()
Task
isProgressMonitoredTask in class Taskfalse.
public void doAction()
throws KOAException
doAction in class TaskKOAException - if something goes wrong.void stopAction()
TaskdoAction method.
stopAction in class Taskjava.lang.String getInfo()
Task
getInfo in class Taskjava.lang.Object getAdditionalInfo()
TaskObject can be used in a dialog message.
getAdditionalInfo in class Taskboolean isAdditionalInfoAvailable()
Task
isAdditionalInfoAvailable in class Taskjava.lang.String[] getErrors()
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||