Search in sources :

Example 1 with IntegerFieldMetaData

use of org.jaffa.metadata.IntegerFieldMetaData in project jaffa-framework by jaffa-projects.

the class EditBoxForm method getDataTypeIntegerWM.

public WidgetModel getDataTypeIntegerWM() {
    if (w_dataTypeInteger == null) {
        w_dataTypeInteger = new EditBoxModel(new IntegerFieldMetaData("IntegerVal", "IntegerVal", Boolean.FALSE, "", new Long(100), new Long(200), new Integer("8")));
        w_dataTypeInteger.setValue(getDataTypeInteger());
    }
    return w_dataTypeInteger;
}
Also used : IntegerFieldMetaData(org.jaffa.metadata.IntegerFieldMetaData) EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Example 2 with IntegerFieldMetaData

use of org.jaffa.metadata.IntegerFieldMetaData in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getYearlyFrequencyWM.

/**
 * Getter for property yearlyFrequency. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property yearlyFrequency.
 */
public SimpleWidgetModel getYearlyFrequencyWM() {
    SimpleWidgetModel w_yearlyFrequency = (SimpleWidgetModel) getWidgetCache().getModel("yearlyFrequency");
    if (w_yearlyFrequency == null) {
        // Allow positive integers only
        IntegerFieldMetaData fieldMetaData = new IntegerFieldMetaData("YearlyFrequency", "[label.Jaffa.Scheduler.ScheduledTask.Recurrence.YEARLY.Frequency]", Boolean.FALSE, null, new Long(0), null, null);
        w_yearlyFrequency = new SimpleWidgetModel(getYearlyFrequency(), fieldMetaData);
        getWidgetCache().addModel("yearlyFrequency", w_yearlyFrequency);
    }
    return w_yearlyFrequency;
}
Also used : IntegerFieldMetaData(org.jaffa.metadata.IntegerFieldMetaData) SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Example 3 with IntegerFieldMetaData

use of org.jaffa.metadata.IntegerFieldMetaData in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceForm method getOftenHoursWM.

/**
 * Getter for property oftenHours. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
 * @return Value of property oftenHours.
 */
public SimpleWidgetModel getOftenHoursWM() {
    SimpleWidgetModel w_oftenHours = (SimpleWidgetModel) getWidgetCache().getModel("oftenHours");
    if (w_oftenHours == null) {
        // Allow positive integers only
        IntegerFieldMetaData fieldMetaData = new IntegerFieldMetaData("OftenHours", "[label.Jaffa.Scheduler.ScheduledTask.Recurrence.OFTEN.Hours]", Boolean.FALSE, null, new Long(0), null, null);
        w_oftenHours = new SimpleWidgetModel(getOftenHours(), fieldMetaData);
        getWidgetCache().addModel("oftenHours", w_oftenHours);
    }
    return w_oftenHours;
}
Also used : IntegerFieldMetaData(org.jaffa.metadata.IntegerFieldMetaData) SimpleWidgetModel(org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)

Aggregations

IntegerFieldMetaData (org.jaffa.metadata.IntegerFieldMetaData)3 SimpleWidgetModel (org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)2 EditBoxModel (org.jaffa.presentation.portlet.widgets.model.EditBoxModel)1