org.olat.core.gui.control.generic.layout
Class GenericMainController

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.controller.MainLayoutBasicController
              extended by org.olat.core.gui.control.generic.layout.GenericMainController
All Implemented Interfaces:
CustomCSSProvider, Controller, ControllerEventListener, Disposable, MainLayoutController
Direct Known Subclasses:
GUIDemoMainController, StatisticMainController

public abstract class GenericMainController
extends MainLayoutBasicController

Description:
This generic Controller gets menu-items configured for a site If any other than configured (spring: olat_extensions.xml) items need to be in menu, use addChildNodeToAppend/Prepend() before init(). init() needs to be called to put content to panel.

Initial Date: 02.07.2008

Author:
Roman Haag, frentix GmbH, roman.haag@frentix.com, patrickb, www.uzh.ch, slightly changed to allow specialised forms of GenericActionExtension

Constructor Summary
GenericMainController(UserRequest ureq, WindowControl wControl)
           
 
Method Summary
 void addChildNodeToAppend(GenericTreeNode nodeToAppend)
          build a node before with sth.
 void addChildNodeToPrepend(GenericTreeNode nodeToPrepend)
          build a node before with sth.
 void init(UserRequest ureq)
          use after optional addChildNodeToAppend() or addChildNodeToPrepend() calls to initialize MainController and set Panel
 
Methods inherited from class org.olat.core.gui.control.controller.MainLayoutBasicController
dispose, getCustomCSS, setCustomCSS
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, 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.Controller
addControllerListener, dispatchEvent, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed
 

Constructor Detail

GenericMainController

public GenericMainController(UserRequest ureq,
                             WindowControl wControl)
Method Detail

init

public void init(UserRequest ureq)
use after optional addChildNodeToAppend() or addChildNodeToPrepend() calls to initialize MainController and set Panel

Parameters:
ureq -

addChildNodeToAppend

public void addChildNodeToAppend(GenericTreeNode nodeToAppend)
build a node before with sth. like: GenericTreeNode gtnA = new GenericTreeNode(); gtnA.setTitle("appended"); //or with translate gtnA.setAltText("alternative text"); gtnA.setUserObject("identifier or object to use"); then add it with this method

Parameters:
nodeToAppend - node to add, besides the configured ones

addChildNodeToPrepend

public void addChildNodeToPrepend(GenericTreeNode nodeToPrepend)
build a node before with sth. like: GenericTreeNode gtnA = new GenericTreeNode(); gtnA.setTitle("appended"); //or with translate gtnA.setAltText("alternative text"); gtnA.setUserObject("identifier or object to use"); then add it with this method

Parameters:
nodeToPrepend - node to add, besides the configured ones