org.olat.core.gui.control.generic.layout
Class GenericMainController
java.lang.Object
org.olat.core.gui.control.DefaultController
org.olat.core.gui.control.controller.BasicController
org.olat.core.gui.control.controller.MainLayoutBasicController
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GenericMainController
public GenericMainController(UserRequest ureq,
WindowControl wControl)
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