Search in sources :

Example 1 with DateChooserForm

use of org.olat.course.statistic.DateChooserForm in project OpenOLAT by OpenOLAT.

the class WeeklyStatisticDisplayController method createInitialComponent.

@Override
protected Component createInitialComponent(UserRequest ureq) {
    setVelocityRoot(Util.getPackageVelocityRoot(getClass()));
    weeklyStatisticVc_ = createVelocityContainer("weeklystatisticparent");
    weeklyStatisticFormVc_ = createVelocityContainer("weeklystatisticform");
    form_ = new DateChooserForm(ureq, getWindowControl(), 8 * 7);
    listenTo(form_);
    weeklyStatisticFormVc_.put("statisticForm", form_.getInitialComponent());
    weeklyStatisticFormVc_.contextPut("statsSince", getStatsSinceStr());
    weeklyStatisticVc_.put("weeklystatisticform", weeklyStatisticFormVc_);
    Component parentInitialComponent = super.createInitialComponent(ureq);
    weeklyStatisticVc_.put("statistic", parentInitialComponent);
    return weeklyStatisticVc_;
}
Also used : DateChooserForm(org.olat.course.statistic.DateChooserForm) Component(org.olat.core.gui.components.Component)

Example 2 with DateChooserForm

use of org.olat.course.statistic.DateChooserForm in project OpenOLAT by OpenOLAT.

the class DailyStatisticDisplayController method createInitialComponent.

@Override
protected Component createInitialComponent(UserRequest ureq) {
    setVelocityRoot(Util.getPackageVelocityRoot(getClass()));
    dailyStatisticVc_ = this.createVelocityContainer("dailystatisticparent");
    dailyStatisticFormVc_ = this.createVelocityContainer("dailystatisticform");
    form_ = new DateChooserForm(ureq, getWindowControl(), 7);
    listenTo(form_);
    dailyStatisticFormVc_.put("statisticForm", form_.getInitialComponent());
    dailyStatisticFormVc_.contextPut("statsSince", getStatsSinceStr());
    dailyStatisticVc_.put("dailystatisticform", dailyStatisticFormVc_);
    Component parentInitialComponent = super.createInitialComponent(ureq);
    dailyStatisticVc_.put("statistic", parentInitialComponent);
    return dailyStatisticVc_;
}
Also used : DateChooserForm(org.olat.course.statistic.DateChooserForm) Component(org.olat.core.gui.components.Component)

Example 3 with DateChooserForm

use of org.olat.course.statistic.DateChooserForm in project openolat by klemens.

the class DailyStatisticDisplayController method createInitialComponent.

@Override
protected Component createInitialComponent(UserRequest ureq) {
    setVelocityRoot(Util.getPackageVelocityRoot(getClass()));
    dailyStatisticVc_ = this.createVelocityContainer("dailystatisticparent");
    dailyStatisticFormVc_ = this.createVelocityContainer("dailystatisticform");
    form_ = new DateChooserForm(ureq, getWindowControl(), 7);
    listenTo(form_);
    dailyStatisticFormVc_.put("statisticForm", form_.getInitialComponent());
    dailyStatisticFormVc_.contextPut("statsSince", getStatsSinceStr());
    dailyStatisticVc_.put("dailystatisticform", dailyStatisticFormVc_);
    Component parentInitialComponent = super.createInitialComponent(ureq);
    dailyStatisticVc_.put("statistic", parentInitialComponent);
    return dailyStatisticVc_;
}
Also used : DateChooserForm(org.olat.course.statistic.DateChooserForm) Component(org.olat.core.gui.components.Component)

Example 4 with DateChooserForm

use of org.olat.course.statistic.DateChooserForm in project openolat by klemens.

the class WeeklyStatisticDisplayController method createInitialComponent.

@Override
protected Component createInitialComponent(UserRequest ureq) {
    setVelocityRoot(Util.getPackageVelocityRoot(getClass()));
    weeklyStatisticVc_ = createVelocityContainer("weeklystatisticparent");
    weeklyStatisticFormVc_ = createVelocityContainer("weeklystatisticform");
    form_ = new DateChooserForm(ureq, getWindowControl(), 8 * 7);
    listenTo(form_);
    weeklyStatisticFormVc_.put("statisticForm", form_.getInitialComponent());
    weeklyStatisticFormVc_.contextPut("statsSince", getStatsSinceStr());
    weeklyStatisticVc_.put("weeklystatisticform", weeklyStatisticFormVc_);
    Component parentInitialComponent = super.createInitialComponent(ureq);
    weeklyStatisticVc_.put("statistic", parentInitialComponent);
    return weeklyStatisticVc_;
}
Also used : DateChooserForm(org.olat.course.statistic.DateChooserForm) Component(org.olat.core.gui.components.Component)

Aggregations

Component (org.olat.core.gui.components.Component)4 DateChooserForm (org.olat.course.statistic.DateChooserForm)4