|
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 Task
java.lang.String getSuccessMessage()
Task
getSuccessMessage
in class Task
java.lang.String getFailureMessage()
Task
getFailureMessage
in class Task
boolean isPreStateAllowed(int state)
isPreStateAllowed
in class Task
int getSuccessState()
Task
getSuccessState
in class Task
void logStarted()
Task
logStarted
in class Task
void logCompleted()
Task
logCompleted
in class Task
void logFailed(java.lang.String reason)
Task
logFailed
in class Task
boolean isProgressMonitoredTask()
Task
isProgressMonitoredTask
in class Task
false
.public void doAction() throws KOAException
doAction
in class Task
KOAException
- if something goes wrong.void stopAction()
Task
doAction
method.
stopAction
in class Task
java.lang.String getInfo()
Task
getInfo
in class Task
java.lang.Object getAdditionalInfo()
Task
Object
can be used in a dialog message.
getAdditionalInfo
in class Task
boolean isAdditionalInfoAvailable()
Task
isAdditionalInfoAvailable
in class Task
java.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 |