org.olat.course.nodes.sp
Class SPEditController

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.sp.SPEditController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable, Activateable, TabbableController

public class SPEditController
extends ActivateableTabbableDefaultController
implements ControllerEventListener

Description:
Edit controller for single page course nodes

Initial Date: Oct 12, 2004

Author:
Felix Jost, BPS (BPS Bildungsportal Sachsen GmbH)

Field Summary
static java.lang.String CONFIG_IFRAME
          Configuration key: display content in iframe: Values: true, false
static java.lang.String CONFIG_KEY_ALLOW_RELATIVE_LINKS
          configuration key: should relative links like ../otherfolder/my.css be allowed?
static java.lang.String CONFIG_KEY_FILE
          configuration key for the filename
static java.lang.String CONFIG_KEY_HOMELINK
          Configuration key: if the configured singlepage is in fact the startpage of a whole website it must be possible to navigate back to the start page, the name of this navigation element can be specified.
static java.lang.String CONFIG_KEY_STATEFUL
          Configuration key: Values (true,false) if the "SinglePage" is an entrance to a whole website, one can choose if a click in the menutree always shows the configured URL or if the last activated content is displayed.
static java.lang.String KEY_TRUE_WITHOUT_HOMELINK
           
static java.lang.String PANE_TAB_SPCONFIG
           
 
Constructor Summary
SPEditController(ModuleConfiguration config, UserRequest ureq, WindowControl wControl, SPCourseNode spCourseNode, ICourse course, UserCourseEnvironment euce)
          Constructor for single page editor 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_SPCONFIG

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

CONFIG_KEY_FILE

public static final java.lang.String CONFIG_KEY_FILE
configuration key for the filename

See Also:
Constant Field Values

CONFIG_KEY_ALLOW_RELATIVE_LINKS

public static final java.lang.String CONFIG_KEY_ALLOW_RELATIVE_LINKS
configuration key: should relative links like ../otherfolder/my.css be allowed?

See Also:
Constant Field Values

CONFIG_IFRAME

public static final java.lang.String CONFIG_IFRAME
Configuration key: display content in iframe: Values: true, false

See Also:
Constant Field Values

CONFIG_KEY_STATEFUL

public static final java.lang.String CONFIG_KEY_STATEFUL
Configuration key: Values (true,false) if the "SinglePage" is an entrance to a whole website, one can choose if a click in the menutree always shows the configured URL or if the last activated content is displayed.

See Also:
Constant Field Values

CONFIG_KEY_HOMELINK

public static final java.lang.String CONFIG_KEY_HOMELINK
Configuration key: if the configured singlepage is in fact the startpage of a whole website it must be possible to navigate back to the start page, the name of this navigation element can be specified. Important for legacy content.

See Also:
Constant Field Values

KEY_TRUE_WITHOUT_HOMELINK

public static final java.lang.String KEY_TRUE_WITHOUT_HOMELINK
See Also:
Constant Field Values
Constructor Detail

SPEditController

public SPEditController(ModuleConfiguration config,
                        UserRequest ureq,
                        WindowControl wControl,
                        SPCourseNode spCourseNode,
                        ICourse course,
                        UserCourseEnvironment euce)
Constructor for single page editor controller

Parameters:
config - The node module configuration
ureq - The user request
wControl - The window controller
spCourseNode - The current single page course node
course -
euce -
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.TabbableController#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