public abstract class Task
extends java.lang.Object
Constructor and Description |
---|
Task(org.tencompetence.business.model.learningpath.ILearningPlan plan)
Instantiates a new Task for the specified plan.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doCompleteAction()
Complete the current learning action.
|
java.lang.String |
doSelectNextAction()
Selects the next available learning action a user has to perform.
|
java.lang.String |
doViewAction()
Do view action.
|
java.lang.String |
getActivityHint()
Gets the activity hint.
|
java.lang.String |
getActivityTitle()
Gets the activity title.
|
java.lang.String |
getActivityURL()
Gets the activity url.
|
ActionButtonController<org.tencompetence.generated.model.Goal> |
getController()
Gets the controller.
|
ElementController |
getElementController()
getElementController.
|
java.lang.String |
getTitle()
Gets the title.
|
boolean |
isActivityAvailable()
Checks if a valid activity is available.
|
boolean |
isActivityComplete()
Checks if is activity complete.
|
boolean |
isActivityURLAvailable()
Checks if activity url is available.
|
boolean |
isCompleted()
Checks if this task completed.
|
abstract void |
onActivityCompleted()
On activity completed event handler.
|
abstract void |
onActivityView(org.tencompetence.business.model.learningpath.ILearningAction action)
On activity view event handler.
|
public Task(org.tencompetence.business.model.learningpath.ILearningPlan plan)
plan
- the planpublic java.lang.String getActivityTitle()
public java.lang.String getActivityURL()
public java.lang.String getTitle()
public java.lang.String getActivityHint()
public boolean isActivityComplete()
public boolean isActivityURLAvailable()
public boolean isActivityAvailable()
An action is valid if the cursor points to ation that is both subscribed and completed.
public boolean isCompleted()
public java.lang.String doSelectNextAction()
public java.lang.String doViewAction()
public java.lang.String doCompleteAction()
public abstract void onActivityCompleted()
public abstract void onActivityView(org.tencompetence.business.model.learningpath.ILearningAction action)
action
- the action for which the the view button was pressedpublic ElementController getElementController()
public ActionButtonController<org.tencompetence.generated.model.Goal> getController()