org.olat.core.gui.control.controller
Class MainLayoutBasicController

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
All Implemented Interfaces:
CustomCSSProvider, Controller, ControllerEventListener, Disposable, MainLayoutController
Direct Known Subclasses:
ArchiverMainController, AssessmentMainController, BGContextManagementController, BGMainController, BGManagementController, BusinessGroupMainRunController, CourseGroupManagementMainController, CPEditMainController, EditorMainController, EfficiencyStatementController, GenericMainController, GuestHomeMainController, HomeMainController, LayoutMain3ColsBackController, LayoutMain3ColsController, LayoutMain3ColsPreviewController, LoginAuthprovidersController, OLATResourceableListeningWrapperController, PreviewConfigController, PreviewRunController, QTIEditorMainController, RepositoryMainController, RunMainController, ScormAPIandDisplayController, SystemAdminMainController, TranslationDevMainController, UserAdminMainController, UserInfoMainController

public abstract class MainLayoutBasicController
extends BasicController
implements MainLayoutController

Description:
The man layout basic controller implements the MainLayout interface and offers all convenient methods form the basic controller.

Initial Date: 09.10.2007

Author:
Felix Jost, http://www.goodsolutions.ch

Constructor Summary
MainLayoutBasicController(UserRequest ureq, WindowControl wControl)
           
MainLayoutBasicController(UserRequest ureq, WindowControl wControl, Translator fallbackTranslator)
          Constructor with fallback translator
 
Method Summary
 void dispose()
          Controller should override the method doDispose() instead of this one.
 CustomCSS getCustomCSS()
          Get the custom css object or NULL if no custom CSS is available
 void setCustomCSS(CustomCSS newCustomCSS)
          Set the custom CSS for this main layout
 
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

MainLayoutBasicController

public MainLayoutBasicController(UserRequest ureq,
                                 WindowControl wControl)
Parameters:
ureq -
wControl -

MainLayoutBasicController

public MainLayoutBasicController(UserRequest ureq,
                                 WindowControl wControl,
                                 Translator fallbackTranslator)
Constructor with fallback translator

Parameters:
ureq -
wControl -
fallbackTranslator -
Method Detail

getCustomCSS

public CustomCSS getCustomCSS()
Description copied from interface: CustomCSSProvider
Get the custom css object or NULL if no custom CSS is available

Specified by:
getCustomCSS in interface CustomCSSProvider
Returns:
See Also:
CustomCSSProvider.getCustomCSS()

setCustomCSS

public void setCustomCSS(CustomCSS newCustomCSS)
Description copied from interface: MainLayoutController
Set the custom CSS for this main layout

Specified by:
setCustomCSS in interface MainLayoutController
Parameters:
newCustomCSS - the custom CSS or NULL if no CSS should be used
See Also:
org.olat.core.gui.components.htmlheader.jscss.CustomCSSProvider#setCustomCSS(org.olat.core.gui.components.htmlheader.jscss.CustomCSS)

dispose

public void dispose()
Description copied from class: DefaultController
Controller should override the method doDispose() instead of this one. makes sure that doDispose is only called once.

Specified by:
dispose in interface Controller
Specified by:
dispose in interface Disposable
Overrides:
dispose in class DefaultController
See Also:
DefaultController.dispose()