org.olat.group.ui.context
Class BGContextFormController

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.components.form.flexible.impl.FormBasicController
              extended by org.olat.group.ui.context.BGContextFormController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class BGContextFormController
extends FormBasicController

Provides a FlexiForm-based dialog for entering group administration info.

Author:
twuersch

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Constructor Summary
BGContextFormController(UserRequest ureq, WindowControl wControl, java.lang.String groupType, boolean showIsDefaultOption)
          Creates this controller.
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 boolean isDefaultContext()
           
 void setValues(BGContext context)
          Set the name and description of the context in this form
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
dispose, event
 
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
 

Constructor Detail

BGContextFormController

public BGContextFormController(UserRequest ureq,
                               WindowControl wControl,
                               java.lang.String groupType,
                               boolean showIsDefaultOption)
Creates this controller.

Parameters:
ureq - The user request.
wControl - The window control.
groupType - This group's type.
showIsDefaultOption - Decides whether the "only visible within course" checkbox is shown.
Method Detail

setValues

public void setValues(BGContext context)
Set the name and description of the context in this form

Parameters:
context -

isDefaultContext

public boolean isDefaultContext()
Returns:
boolean true if this is now a default context

getDescription

public java.lang.String getDescription()
Returns:
the context description as string

getName

public java.lang.String getName()
Returns:
String context name

getType

public java.lang.String getType()
Returns:
String the group context type