|
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.Object sos.koa.Task sos.koa.ImportVotesAdapter
Class to handle importing the votes file.
Nested Class Summary | |
(package private) class |
ImportVotesAdapter.VoteFileChecker
Inner class to do light-weight sanity check on xml file. |
(package private) class |
ImportVotesAdapter.VoteFileParser
Inner class to parse the vote file. |
Nested classes inherited from class sos.koa.Task |
Task.ActionThread, Task.MonitoredThread |
Field Summary | |
(package private) boolean |
keepRunning
Whether to keep importing. |
(package private) int |
kieskringCount
Number of kieskringen encountered thus far. |
(package private) java.util.ArrayList |
rawVotes
The imported, not yet decrypted, votes. |
(package private) int |
taskCount
Number of rows encountered thus far. |
Fields inherited from class sos.koa.Task |
maxSubTasks, monitor, stillWorking, subTaskCount, success |
Constructor Summary | |
ImportVotesAdapter()
Constructs this adapter. |
Method Summary | |
(package private) void |
clear()
Clears temporary memory used by this task. |
(package private) void |
doAction()
Imports the votes. |
(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 |
isCancelableTask()
Indicates whether the effect of this task can be undone (and whether the user should be given the option to undo the task). |
(package private) boolean |
isPreStateAllowed(int state)
|
(package private) boolean |
isProgressMonitoredTask()
Importing votes can take a long time, better pop up a progress monitor. |
(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 |
logOpenedFile(java.io.File file)
Writes a 'task opened file' entry in the log. |
(package private) void |
logStarted()
Writes a 'task started' entry in the log. |
(package private) void |
stopAction()
If the cancel button is pressed this thread should stop |
Methods inherited from class sos.koa.Task |
actionPerformed, getAdditionalInfo, getWarningMessage, isAdditionalInfoAvailable, isDangerousTask, isModalTask, logCanceled, 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 |
java.util.ArrayList rawVotes
int taskCount
int kieskringCount
boolean keepRunning
Constructor Detail |
public ImportVotesAdapter()
Method Detail |
java.lang.String getTitle()
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
boolean isCancelableTask()
isCancelableTask
in class Task
true
.void doAction() throws KOAException
doAction
in class Task
KOAException
- if importing failed.void stopAction()
stopAction
in class Task
java.lang.String getInfo()
Task
getInfo
in class Task
boolean isProgressMonitoredTask()
isProgressMonitoredTask
in class Task
void clear()
Task
clear
in class Task
void logStarted()
Task
logStarted
in class Task
void logOpenedFile(java.io.File file)
Task
logOpenedFile
in class Task
void logCompleted()
Task
logCompleted
in class Task
void logFailed(java.lang.String reason)
Task
logFailed
in class Task
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |