|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdesktop.TrainingPanel.TaskPropertyMap
| Field Summary |
| Fields inherited from interface util.TaskProperties |
CANCELLED, FAILED, ONGOING, PASSED |
| Constructor Summary | |
TrainingPanel.TaskPropertyMap(TrainingPanel.KeyValue[] monitoredKeys,
java.lang.String[] allowedQueries)
|
|
| Method Summary | |
java.lang.String |
get(java.lang.String key)
Retrieves the value of the key. |
Constraint |
getCompletionConstraint()
Returns the failure condition (if any). |
java.lang.String |
getCompletionReason()
Returns the failure condition (if any). |
java.lang.String |
getCompletionStatus()
|
int |
getInt(java.lang.String key)
Retrieves the value of the key as an int, if possible. |
Settings |
getSettings()
Returns the settings for the application. |
boolean |
isCompleted()
Returns true if the task has been passed, failed or cancelled. |
boolean |
isSuccessful()
|
void |
put(java.lang.String key,
int value)
Associates the value with the key. |
void |
put(java.lang.String key,
java.lang.String value)
Associates the value with the key. |
void |
setCancelled()
Sets the task as cancelled. |
void |
setCompleted(boolean success,
Constraint constraint,
java.lang.String reason)
Called to indicate the user completed the task. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TrainingPanel.TaskPropertyMap(TrainingPanel.KeyValue[] monitoredKeys,
java.lang.String[] allowedQueries)
| Method Detail |
public Settings getSettings()
TaskProperties
getSettings in interface TaskPropertiespublic int getInt(java.lang.String key)
TaskProperties
getInt in interface TaskProperties
public void put(java.lang.String key,
int value)
TaskProperties
put in interface TaskPropertiespublic java.lang.String get(java.lang.String key)
TaskProperties
get in interface TaskProperties
public void put(java.lang.String key,
java.lang.String value)
TaskProperties
put in interface TaskProperties
public void setCompleted(boolean success,
Constraint constraint,
java.lang.String reason)
throws java.lang.IllegalStateException
TaskProperties
setCompleted in interface TaskPropertiessuccess - if true, the user successfully completed the task.constraint - The constraint that called this method.reason - The text given here should be documented in the constraint.
java.lang.IllegalStateException
public void setCancelled()
throws java.lang.IllegalStateException
setCancelled in interface TaskPropertiesjava.lang.IllegalStateExceptionpublic boolean isCompleted()
isCompleted in interface TaskProperties
public boolean isSuccessful()
throws ValueNotSetException
isSuccessful in interface TaskPropertiesValueNotSetException - if the task was cancelled.public java.lang.String getCompletionReason()
getCompletionReason in interface TaskPropertiespublic java.lang.String getCompletionStatus()
getCompletionStatus in interface TaskPropertiespublic Constraint getCompletionConstraint()
TaskProperties
getCompletionConstraint in interface TaskPropertiespublic java.lang.String toString()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.