Search in sources :

Example 11 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getCreatedByWM.

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

Example 12 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getMonthlyDayWM.

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

Example 13 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getCustomPatternWM.

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

Example 14 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getEndOnWM.

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

Example 15 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getYearlyOnWM.

/**
 * Getter for property yearlyOn. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property yearlyOn.
 */
public SimpleWidgetModel getYearlyOnWM() {
    SimpleWidgetModel w_yearlyOn = (SimpleWidgetModel) getWidgetCache().getModel("yearlyOn");
    if (w_yearlyOn == null) {
        w_yearlyOn = new SimpleWidgetModel(getYearlyOn());
        addMonthOptions(w_yearlyOn);
        getWidgetCache().addModel("yearlyOn", w_yearlyOn);
    }
    return w_yearlyOn;
}
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