de.bps.course.nodes.den
Class DENDatesForm

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 de.bps.course.nodes.den.DENDatesForm
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class DENDatesForm
extends FormBasicController

Form for creation or edit of dates in the date enrollment

Author:
skoeber

Field Summary
static int CREATE_DATES_LAYOUT
           
static int EDIT_MULTIPLE_DATES_LAYOUT
           
static int EDIT_SINGLE_DATE_LAYOUT
           
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Constructor Summary
DENDatesForm(UserRequest ureq, WindowControl wControl, Translator translator, int layout)
          Constructor
 
Method Summary
 java.util.Date getBeginDate()
           
 java.lang.String getComment()
           
 java.lang.String getDuration()
           
 java.lang.String getLocation()
           
 java.lang.String getMovementGap()
           
 int getNumParts()
           
 java.lang.String getPause()
           
 int getRetakes()
           
 java.lang.String getSubject()
           
 void setComment(java.lang.String value)
          set the comment
 void setDuration(java.lang.String value)
          set duration (format hh:mm)
 void setFormDate(java.util.Date date)
          set date
 void setLocation(java.lang.String value)
          set the location
 void setNumParts(int value)
          set number of participants
 void setSubject(java.lang.String value)
          set the subject
 
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
 

Field Detail

CREATE_DATES_LAYOUT

public static final int CREATE_DATES_LAYOUT
See Also:
Constant Field Values

EDIT_SINGLE_DATE_LAYOUT

public static final int EDIT_SINGLE_DATE_LAYOUT
See Also:
Constant Field Values

EDIT_MULTIPLE_DATES_LAYOUT

public static final int EDIT_MULTIPLE_DATES_LAYOUT
See Also:
Constant Field Values
Constructor Detail

DENDatesForm

public DENDatesForm(UserRequest ureq,
                    WindowControl wControl,
                    Translator translator,
                    int layout)
Constructor

Parameters:
ureq -
wControl -
translator -
layout - (CREATE_DATES_LAYOUT, EDIT_SINGLE_DATE_LAYOUT, EDIT_MULTIPLE_DATES_LAYOUT)
Method Detail

getSubject

public java.lang.String getSubject()
Returns:
String with subject of this date

getBeginDate

public java.util.Date getBeginDate()
Returns:
Date with begin

getDuration

public java.lang.String getDuration()
Returns:
String with duration in like "hh:mm"

getPause

public java.lang.String getPause()
Returns:
String with pause in format "hh:mm"

getRetakes

public int getRetakes()
Returns:
int number of retakes

getNumParts

public int getNumParts()
Returns:
int number of maximal participants for this date, 0 if empty

getLocation

public java.lang.String getLocation()
Returns:
String location

getComment

public java.lang.String getComment()
Returns:
String comment

getMovementGap

public java.lang.String getMovementGap()
Returns:
String gap for movement

setSubject

public void setSubject(java.lang.String value)
set the subject

Parameters:
value -

setComment

public void setComment(java.lang.String value)
set the comment

Parameters:
value -

setLocation

public void setLocation(java.lang.String value)
set the location

Parameters:
value -

setNumParts

public void setNumParts(int value)
set number of participants

Parameters:
value -

setDuration

public void setDuration(java.lang.String value)
set duration (format hh:mm)

Parameters:
value -

setFormDate

public void setFormDate(java.util.Date date)
set date

Parameters:
date -