org.olat.registration
Class DisclaimerController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.registration.DisclaimerController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class DisclaimerController
extends BasicController

Initial Date: 10.08.2004

Author:
Mike Stock Comment: Presents a disclaimer form with two text paragraphs and a checkbox. The text can be changed using the i18n tool.

The controller tries to read the following keys from the i18n files to add some optional features:


Constructor Summary
DisclaimerController(UserRequest ureq, WindowControl wControl)
          Display a disclaimer which can be accepted or denied.
DisclaimerController(UserRequest ureq, WindowControl wControl, boolean readOnly)
          Display a disclaimer which can be accepted or denied or in a read only manner
 
Method Summary
 void changeLocale(java.util.Locale locale)
          Change the locale of this controller.
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisclaimerController

public DisclaimerController(UserRequest ureq,
                            WindowControl wControl)
Display a disclaimer which can be accepted or denied.

Parameters:
ureq -
wControl -

DisclaimerController

public DisclaimerController(UserRequest ureq,
                            WindowControl wControl,
                            boolean readOnly)
Display a disclaimer which can be accepted or denied or in a read only manner

Parameters:
ureq -
wControl -
readOnly - true: show only read only; false: allow user to accept
Method Detail

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)

changeLocale

public void changeLocale(java.util.Locale locale)
Change the locale of this controller.

Parameters:
locale -