org.olat.course.nodes.ms
Class MSEditFormController

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.ms.MSEditFormController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class MSEditFormController
extends FormBasicController

Provides a FlexiForm for the assesment settings dialog, including custom rules for when to show which dialog element.

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
MSEditFormController(UserRequest ureq, WindowControl wControl, ModuleConfiguration modConfig)
          Creates this controller.
 
Method Summary
static boolean isConfigValid(ModuleConfiguration config)
           
 void setDisplayOnly(boolean displayOnly)
          Sets this form to be write-protected.
 void updateModuleConfiguration(ModuleConfiguration moduleConfiguration)
           
 
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

MSEditFormController

public MSEditFormController(UserRequest ureq,
                            WindowControl wControl,
                            ModuleConfiguration modConfig)
Creates this controller.

Parameters:
ureq -
wControl -
modConfig -
Method Detail

setDisplayOnly

public void setDisplayOnly(boolean displayOnly)
Sets this form to be write-protected.

Parameters:
displayOnly -

updateModuleConfiguration

public void updateModuleConfiguration(ModuleConfiguration moduleConfiguration)
Parameters:
moduleConfiguration -

isConfigValid

public static boolean isConfigValid(ModuleConfiguration config)
Parameters:
config - the module configuration
Returns:
true if valid, false otherwhise