Search in sources :

Example 26 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getMisfireRecoveryWM.

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

Example 27 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getMonthlyTypeWM.

/**
 * Getter for property monthlyType. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property monthlyType.
 */
public SimpleWidgetModel getMonthlyTypeWM() {
    SimpleWidgetModel w_monthlyType = (SimpleWidgetModel) getWidgetCache().getModel("monthlyType");
    if (w_monthlyType == null) {
        w_monthlyType = new SimpleWidgetModel(getMonthlyType());
        w_monthlyType.addOption("[label.Jaffa.Scheduler.ScheduledTask.Recurrence.MONTHLY.Type.DAY]", MonthlyType.DAY.toString());
        w_monthlyType.addOption("[label.Jaffa.Scheduler.ScheduledTask.Recurrence.MONTHLY.Type.WEEK]", MonthlyType.WEEK.toString());
        getWidgetCache().addModel("monthlyType", w_monthlyType);
    }
    return w_monthlyType;
}
Also used : SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 28 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getLastChangedOnWM.

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

Example 29 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getDailyWeekDaysOnlyWM.

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

Example 30 with SimpleWidgetModel

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

the class TaskMaintenanceForm method getWeeklyFrequencyWM.

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