Search in sources :

Example 16 with SimpleWidgetModel

use of org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getOftenMinutesWM.

/**
 * Getter for property oftenMinutes. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property oftenMinutes.
 */
public SimpleWidgetModel getOftenMinutesWM() {
    SimpleWidgetModel w_oftenMinutes = (SimpleWidgetModel) getWidgetCache().getModel("oftenMinutes");
    if (w_oftenMinutes == null) {
        w_oftenMinutes = new SimpleWidgetModel(getOftenMinutes());
        for (int i = 0; i <= 59; i++) {
            String value = Integer.toString(i);
            w_oftenMinutes.addOption(value, value);
        }
        getWidgetCache().addModel("oftenMinutes", w_oftenMinutes);
    }
    return w_oftenMinutes;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 17 with SimpleWidgetModel

use of org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getWeeklyDayWM.

/**
 * Getter for property weeklyDay. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property weeklyDay.
 */
public SimpleWidgetModel getWeeklyDayWM() {
    SimpleWidgetModel w_weeklyDay = (SimpleWidgetModel) getWidgetCache().getModel("weeklyDay");
    if (w_weeklyDay == null) {
        w_weeklyDay = new SimpleWidgetModel(getWeeklyDay());
        addWeekDayOptions(w_weeklyDay);
        getWidgetCache().addModel("weeklyDay", w_weeklyDay);
    }
    return w_weeklyDay;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 18 with SimpleWidgetModel

use of org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getOftenSecondsWM.

/**
 * Getter for property oftenSeconds. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property oftenSeconds.
 */
public SimpleWidgetModel getOftenSecondsWM() {
    SimpleWidgetModel w_oftenSeconds = (SimpleWidgetModel) getWidgetCache().getModel("oftenSeconds");
    if (w_oftenSeconds == null) {
        w_oftenSeconds = new SimpleWidgetModel(getOftenSeconds());
        for (int i = 0; i <= 59; i++) {
            String value = Integer.toString(i);
            w_oftenSeconds.addOption(value, value);
        }
        getWidgetCache().addModel("oftenSeconds", w_oftenSeconds);
    }
    return w_oftenSeconds;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 19 with SimpleWidgetModel

use of org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getScheduledTaskIdWM.

/**
 * Getter for property scheduledTaskId. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property scheduledTaskId.
 */
public SimpleWidgetModel getScheduledTaskIdWM() {
    SimpleWidgetModel w_scheduledTaskId = (SimpleWidgetModel) getWidgetCache().getModel("scheduledTaskId");
    if (w_scheduledTaskId == null) {
        w_scheduledTaskId = new SimpleWidgetModel(getScheduledTaskId());
        getWidgetCache().addModel("scheduledTaskId", w_scheduledTaskId);
    }
    return w_scheduledTaskId;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 20 with SimpleWidgetModel

use of org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getLastChangedByWM.

/**
 * Getter for property lastChangedBy. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property lastChangedBy.
 */
public SimpleWidgetModel getLastChangedByWM() {
    SimpleWidgetModel w_lastChangedBy = (SimpleWidgetModel) getWidgetCache().getModel("lastChangedBy");
    if (w_lastChangedBy == null) {
        w_lastChangedBy = new SimpleWidgetModel(getLastChangedBy());
        getWidgetCache().addModel("lastChangedBy", w_lastChangedBy);
    }
    return w_lastChangedBy;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Aggregations

SimpleWidgetModel (org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)40 GridModelRow (org.jaffa.presentation.portlet.widgets.model.GridModelRow)5 JspWriteRuntimeException (org.jaffa.presentation.portlet.widgets.taglib.exceptions.JspWriteRuntimeException)5 IOException (java.io.IOException)4 JspException (javax.servlet.jsp.JspException)4 JspWriter (javax.servlet.jsp.JspWriter)4 MissingParametersRuntimeException (org.jaffa.presentation.portlet.widgets.taglib.exceptions.MissingParametersRuntimeException)4 OuterFormTagMissingRuntimeException (org.jaffa.presentation.portlet.widgets.taglib.exceptions.OuterFormTagMissingRuntimeException)4 IPropertyRuleIntrospector (org.jaffa.rules.IPropertyRuleIntrospector)4 Iterator (java.util.Iterator)2 IntegerFieldMetaData (org.jaffa.metadata.IntegerFieldMetaData)2 Recurrence (org.jaffa.modules.scheduler.services.Recurrence)2 FormBase (org.jaffa.presentation.portlet.FormBase)2 File (java.io.File)1 TreeSet (java.util.TreeSet)1 FrameworkException (org.jaffa.exceptions.FrameworkException)1 TaskMaintenanceDto (org.jaffa.modules.scheduler.components.taskmaintenance.dto.TaskMaintenanceDto)1 GridModel (org.jaffa.presentation.portlet.widgets.model.GridModel)1 WidgetModelAccessMethodNotFoundRuntimeException (org.jaffa.presentation.portlet.widgets.taglib.exceptions.WidgetModelAccessMethodNotFoundRuntimeException)1