org.olat.course.editor
Class NodeEditController

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

public class NodeEditController
extends ActivateableTabbableDefaultController
implements ControllerEventListener

Description:
is the controller for

Author:
Felix Jost

Field Summary
static java.lang.String CONFIG_COMPONENT_MENU
          Configuration key: integrate component menu into course menu.
static java.lang.String CONFIG_INTEGRATION
          Configuration key: how to integrate the course node content into the course
static java.lang.String CONFIG_STARTPAGE
          Configuration key: use spash-scree start page when accessing a course node.
static Event NODECONFIG_CHANGED_EVENT
          Event that signals that the node configuration has been changed *
 
Constructor Summary
NodeEditController(UserRequest ureq, WindowControl wControl, CourseEditorTreeModel editorModel, ICourse course, CourseNode luNode, CourseGroupManager groupMgr, UserCourseEnvironment euce, TabbableController childTabsController)
           
 
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.
 Component getDescriptionEditComponent()
          Returns the component that is used to configurate the nodes description and metadata
 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

CONFIG_STARTPAGE

public static final java.lang.String CONFIG_STARTPAGE
Configuration key: use spash-scree start page when accessing a course node. Values: true, false

See Also:
Constant Field Values

CONFIG_COMPONENT_MENU

public static final java.lang.String CONFIG_COMPONENT_MENU
Configuration key: integrate component menu into course menu. Values: true, false

See Also:
Constant Field Values

CONFIG_INTEGRATION

public static final java.lang.String CONFIG_INTEGRATION
Configuration key: how to integrate the course node content into the course

See Also:
Constant Field Values

NODECONFIG_CHANGED_EVENT

public static final Event NODECONFIG_CHANGED_EVENT
Event that signals that the node configuration has been changed *

Constructor Detail

NodeEditController

public NodeEditController(UserRequest ureq,
                          WindowControl wControl,
                          CourseEditorTreeModel editorModel,
                          ICourse course,
                          CourseNode luNode,
                          CourseGroupManager groupMgr,
                          UserCourseEnvironment euce,
                          TabbableController childTabsController)
Parameters:
ureq -
editorModel -
course -
luNode -
groupMgr -
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)

getDescriptionEditComponent

public Component getDescriptionEditComponent()
Returns the component that is used to configurate the nodes description and metadata

Returns:
The description and metadata edit component

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

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