org.olat.course.nodes.co
Class COEditController

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.control.generic.tabbable.TabbableDefaultController
              extended by org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController
                  extended by org.olat.course.nodes.co.COEditController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable, Activateable, TabbableController

public class COEditController
extends ActivateableTabbableDefaultController
implements ControllerEventListener

Description:
Edit controller for the contact form course building block Initial Date: Oct 13, 2004

Author:
Felix Jost

Field Summary
static java.lang.String CONFIG_KEY_EMAILTOADRESSES
          config key: to email address
static java.lang.String CONFIG_KEY_EMAILTOAREAS
          config key: to email addresses to be extracted from specified learn areas
static java.lang.String CONFIG_KEY_EMAILTOCOACHES
          config key: email goes to coaches
static java.lang.String CONFIG_KEY_EMAILTOGROUPS
          config key: to email addresses to be extracted from specified groups
static java.lang.String CONFIG_KEY_EMAILTOPARTICIPANTS
          config key: email goes to partipiciants
static java.lang.String CONFIG_KEY_MBODY_DEFAULT
          config key: default body text
static java.lang.String CONFIG_KEY_MSUBJECT_DEFAULT
          config key: default subject text
static java.lang.String PANE_TAB_COCONFIG
           
 
Constructor Summary
COEditController(ModuleConfiguration config, UserRequest ureq, WindowControl wControl, COCourseNode coCourseNode, ICourse course, UserCourseEnvironment euce)
          Constructor for a contact form edit controller
 
Method Summary
 void addTabs(TabbedPane tabbedPane)
          Add tabs to the given tabbed pane
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 void event(UserRequest urequest, Controller source, Event event)
          the only method of the interface controllereventlistener.
 java.lang.String[] getPaneKeys()
           
 TabbedPane getTabbedPane()
           
 
Methods inherited from class org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController
activate
 
Methods inherited from class org.olat.core.gui.control.generic.tabbable.TabbableDefaultController
getInitialComponent
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.control.ControllerEventListener
dispatchEvent
 
Methods inherited from interface org.olat.core.gui.control.Controller
addControllerListener, dispatchEvent, dispose, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed
 

Field Detail

PANE_TAB_COCONFIG

public static final java.lang.String PANE_TAB_COCONFIG
See Also:
Constant Field Values

CONFIG_KEY_EMAILTOGROUPS

public static final java.lang.String CONFIG_KEY_EMAILTOGROUPS
config key: to email addresses to be extracted from specified groups

See Also:
Constant Field Values

CONFIG_KEY_EMAILTOAREAS

public static final java.lang.String CONFIG_KEY_EMAILTOAREAS
config key: to email addresses to be extracted from specified learn areas

See Also:
Constant Field Values

CONFIG_KEY_EMAILTOPARTICIPANTS

public static final java.lang.String CONFIG_KEY_EMAILTOPARTICIPANTS
config key: email goes to partipiciants

See Also:
Constant Field Values

CONFIG_KEY_EMAILTOCOACHES

public static final java.lang.String CONFIG_KEY_EMAILTOCOACHES
config key: email goes to coaches

See Also:
Constant Field Values

CONFIG_KEY_EMAILTOADRESSES

public static final java.lang.String CONFIG_KEY_EMAILTOADRESSES
config key: to email address

See Also:
Constant Field Values

CONFIG_KEY_MSUBJECT_DEFAULT

public static final java.lang.String CONFIG_KEY_MSUBJECT_DEFAULT
config key: default subject text

See Also:
Constant Field Values

CONFIG_KEY_MBODY_DEFAULT

public static final java.lang.String CONFIG_KEY_MBODY_DEFAULT
config key: default body text

See Also:
Constant Field Values
Constructor Detail

COEditController

public COEditController(ModuleConfiguration config,
                        UserRequest ureq,
                        WindowControl wControl,
                        COCourseNode coCourseNode,
                        ICourse course,
                        UserCourseEnvironment euce)
Constructor for a contact form edit controller

Parameters:
config -
ureq -
coCourseNode -
course -
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)

event

public void event(UserRequest urequest,
                  Controller source,
                  Event event)
Description copied from class: DefaultController
the only method of the interface controllereventlistener. always gets called when a controller we 'subscribed' to fires an event. we provide a default implementation here since there are many controllers which are standalone and need no subcontrollers

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

addTabs

public void addTabs(TabbedPane tabbedPane)
Description copied from interface: TabbableController
Add tabs to the given tabbed pane

Specified by:
addTabs in interface TabbableController
Parameters:
tabbedPane - The tabbed pane
See Also:
org.olat.core.gui.control.generic.tabbable.TabbableDefaultController#addTabs(org.olat.core.gui.components.TabbedPane)

getPaneKeys

public java.lang.String[] getPaneKeys()
Specified by:
getPaneKeys in class ActivateableTabbableDefaultController
Returns:
translation keys for the panes

getTabbedPane

public TabbedPane getTabbedPane()
Specified by:
getTabbedPane in class ActivateableTabbableDefaultController
Returns:
tabbed pane