org.olat.modules.fo
Class ForumUIFactory

java.lang.Object
  extended by org.olat.modules.fo.ForumUIFactory

public class ForumUIFactory
extends java.lang.Object

Description:
Factory for a Titled ForumController, either in a popup or not.

Initial Date: 25.06.2007

Author:
Lavinia Dumitrescu

Constructor Summary
ForumUIFactory()
           
 
Method Summary
static PopupBrowserWindow getPopupableForumController(UserRequest ureq, WindowControl wControl, Forum forum, ForumCallback forumCallback, TitleInfo titleInfo)
          Provides a popable ForumController wrapped in a titled controller.
static ForumController getStandardForumController(UserRequest ureq, WindowControl wControl, Forum forum, ForumCallback forumCallback)
          Provides a standard forum controller without a title element
static Controller getTitledForumController(UserRequest ureq, WindowControl wControl, Forum forum, ForumCallback forumCallback, TitleInfo titleInfo)
          Provides a ForumController wrapped in a titled controller.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumUIFactory

public ForumUIFactory()
Method Detail

getPopupableForumController

public static PopupBrowserWindow getPopupableForumController(UserRequest ureq,
                                                             WindowControl wControl,
                                                             Forum forum,
                                                             ForumCallback forumCallback,
                                                             TitleInfo titleInfo)
Provides a popable ForumController wrapped in a titled controller.

Parameters:
ureq -
forum -
forumCallback -
title -
Returns:
a ChiefController

getTitledForumController

public static Controller getTitledForumController(UserRequest ureq,
                                                  WindowControl wControl,
                                                  Forum forum,
                                                  ForumCallback forumCallback,
                                                  TitleInfo titleInfo)
Provides a ForumController wrapped in a titled controller.

Parameters:
ureq -
forum -
forumCallback -
title -
Returns:
a TitledWrapperController

getStandardForumController

public static ForumController getStandardForumController(UserRequest ureq,
                                                         WindowControl wControl,
                                                         Forum forum,
                                                         ForumCallback forumCallback)
Provides a standard forum controller without a title element

Parameters:
ureq -
wControl -
forum -
forumCallback -
Returns: