org.olat.course.nodes.feed
Class FeedNodeEditController

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.feed.FeedNodeEditController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable, Activateable, TabbableController
Direct Known Subclasses:
BlogNodeEditController, PodcastNodeEditController

public abstract class FeedNodeEditController
extends ActivateableTabbableDefaultController
implements ControllerEventListener

The abstract feed course node edit controller.

Initial Date: Mar 31, 2009

Author:
gwassmann

Field Summary
static java.lang.String PANE_TAB_FEED
           
 
Constructor Summary
FeedNodeEditController(AbstractFeedCourseNode courseNode, ICourse course, UserCourseEnvironment uce, FeedUIFactory uiFactory, java.lang.String resourceTypeName, UserRequest ureq, WindowControl control)
          Constructor.
 
Method Summary
 void addTabs(TabbedPane tabbedPane)
          Add tabs to the given tabbed pane
 void event(UserRequest urequest, Controller source, Event event)
          the only method of the interface controllereventlistener.
 java.lang.String[] getPaneKeys()
           
 TabbedPane getTabbedPane()
           
static void removeReference(ModuleConfiguration moduleConfig)
          remove ref to repo entry from the config
static void setReference(RepositoryEntry re, ModuleConfiguration moduleConfiguration)
          set an repository reference to the feed course node
 
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_FEED

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

FeedNodeEditController

public FeedNodeEditController(AbstractFeedCourseNode courseNode,
                              ICourse course,
                              UserCourseEnvironment uce,
                              FeedUIFactory uiFactory,
                              java.lang.String resourceTypeName,
                              UserRequest ureq,
                              WindowControl control)
Constructor. The uiFactory is needed for preview controller and the resourceTypeName for the repository search.

Parameters:
courseNode -
course -
uce -
uiFactory -
resourceTypeName -
ureq -
control -
Method Detail

getPaneKeys

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

getTabbedPane

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

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:
TabbableController.addTabs(org.olat.core.gui.components.tabbedpane.TabbedPane)

removeReference

public static void removeReference(ModuleConfiguration moduleConfig)
remove ref to repo entry from the config

Parameters:
moduleConfig -

setReference

public static void setReference(RepositoryEntry re,
                                ModuleConfiguration moduleConfiguration)
set an repository reference to the feed course node

Parameters:
re -
moduleConfiguration -