org.olat.course.nodes.ta
Class TaskFormController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.components.form.flexible.impl.FormBasicController
              extended by org.olat.course.nodes.ta.TaskFormController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class TaskFormController
extends FormBasicController

Provides a flexiform-based dialog for entering task assignment data, including an info message and choices for assignment type, sampling and preview.

Author:
twuersch

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Constructor Summary
TaskFormController(UserRequest ureq, WindowControl wControl, ModuleConfiguration config)
          Creates this controller.
 
Method Summary
 boolean getIsSamplingWithReplacement()
           
 java.lang.String getOptionalText()
           
 java.lang.String getTaskType()
           
 boolean isTaskPreviewMode()
           
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
dispose, event
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskFormController

public TaskFormController(UserRequest ureq,
                          WindowControl wControl,
                          ModuleConfiguration config)
Creates this controller.

Parameters:
ureq - The user request.
wControl - The window control.
config - This task's configuration object.
Method Detail

getTaskType

public java.lang.String getTaskType()
Returns:
Task type field value.

getOptionalText

public java.lang.String getOptionalText()
Returns:
Optional text field value.

getIsSamplingWithReplacement

public boolean getIsSamplingWithReplacement()
Returns:
True if task is "Sampling With Replacement"

isTaskPreviewMode

public boolean isTaskPreviewMode()
Returns:
True if task is "Preview Mode".