Search in sources :

Example 26 with EditBoxModel

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

the class EditBoxForm method setDataTypeIntegerWV.

public void setDataTypeIntegerWV(String value) {
    EditBoxModel m = (EditBoxModel) getDataTypeIntegerWM();
    EditBoxController.updateModel(value, m);
}
Also used : EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Example 27 with EditBoxModel

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

the class EditBoxForm method getFieldLinkedToCCWM.

public WidgetModel getFieldLinkedToCCWM() {
    if (w_fieldLinkedToCC == null) {
        FieldMetaData meta = new StringFieldMetaData("SomeName2", "SomeToken2", Boolean.FALSE, null, null, FieldMetaData.UPPER_CASE);
        w_fieldLinkedToCC = new EditBoxModel(meta);
        w_fieldLinkedToCC.setValue(getFieldLinkedToCC());
    }
    return w_fieldLinkedToCC;
}
Also used : FieldMetaData(org.jaffa.metadata.FieldMetaData) StringFieldMetaData(org.jaffa.metadata.StringFieldMetaData) IntegerFieldMetaData(org.jaffa.metadata.IntegerFieldMetaData) DateOnlyFieldMetaData(org.jaffa.metadata.DateOnlyFieldMetaData) DateTimeFieldMetaData(org.jaffa.metadata.DateTimeFieldMetaData) DecimalFieldMetaData(org.jaffa.metadata.DecimalFieldMetaData) StringFieldMetaData(org.jaffa.metadata.StringFieldMetaData) EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Example 28 with EditBoxModel

use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel 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 29 with EditBoxModel

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

the class EditBoxForm method setFieldWithCachedModelWV.

public void setFieldWithCachedModelWV(String value) {
    EditBoxModel m = (EditBoxModel) getFieldWithCachedModelWM();
    EditBoxController.updateModel(value, m);
}
Also used : EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Example 30 with EditBoxModel

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

the class EditBoxForm method getFieldWithCachedModelWM.

public WidgetModel getFieldWithCachedModelWM() {
    if (w_fieldWithCachedModel == null) {
        w_fieldWithCachedModel = (EditBoxModel) getWidgetCache().getModel("fieldWithCachedModel");
        if (w_fieldWithCachedModel == null) {
            w_fieldWithCachedModel = new EditBoxModel();
            w_fieldWithCachedModel.setMandatory(true);
            getWidgetCache().addModel("fieldWithCachedModel", w_fieldWithCachedModel);
            w_fieldWithCachedModel.setValue(getFieldWithCachedModel());
        }
    }
    return w_fieldWithCachedModel;
}
Also used : EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Aggregations

EditBoxModel (org.jaffa.presentation.portlet.widgets.model.EditBoxModel)34 GridModelRow (org.jaffa.presentation.portlet.widgets.model.GridModelRow)8 CheckBoxModel (org.jaffa.presentation.portlet.widgets.model.CheckBoxModel)7 GridModel (org.jaffa.presentation.portlet.widgets.model.GridModel)6 FormSelectionMaintenanceOutRowDto (org.jaffa.modules.printing.components.formselectionmaintenance.dto.FormSelectionMaintenanceOutRowDto)4 Iterator (java.util.Iterator)3 DateTime (org.jaffa.datatypes.DateTime)3 ApplicationExceptions (org.jaffa.exceptions.ApplicationExceptions)3 DateOnlyFieldMetaData (org.jaffa.metadata.DateOnlyFieldMetaData)3 DateTimeFieldMetaData (org.jaffa.metadata.DateTimeFieldMetaData)3 DecimalFieldMetaData (org.jaffa.metadata.DecimalFieldMetaData)3 IntegerFieldMetaData (org.jaffa.metadata.IntegerFieldMetaData)3 StringFieldMetaData (org.jaffa.metadata.StringFieldMetaData)3 FormSelectionException (org.jaffa.modules.printing.components.formselectionmaintenance.FormSelectionException)3 DateTimeModel (org.jaffa.presentation.portlet.widgets.model.DateTimeModel)3 DropDownModel (org.jaffa.presentation.portlet.widgets.model.DropDownModel)3 IOException (java.io.IOException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 org.jaffa.components.maint (org.jaffa.components.maint)2 ApplicationException (org.jaffa.exceptions.ApplicationException)2