Search in sources :

Example 21 with EditBoxModel

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

the class UserGridForm method createNewModel.

private GridModel createNewModel() {
    GridModel model = new GridModel();
    GridModelRow row;
    row = model.newRow();
    row.addElement("field1", new EditBoxModel("Field11Value"));
    row.addElement("field2", new EditBoxModel("Field12Value"));
    row.addElement("field3", new DateTimeModel());
    row.addElement("field4", new CheckBoxModel(true));
    row.addElement("field5", new ImageModel(ImageComponent.getImageBytes("C:\\Sandbox\\Jaffa\\source\\httpunittest\\html\\widgets\\tests\\testimage1_up.gif")));
    row.addElement("field6", new DropDownModel("Value1"));
    row = model.newRow();
    row.addElement("field1", new EditBoxModel("Field21Value"));
    row.addElement("field2", new EditBoxModel("Field22Value"));
    row.addElement("field3", new DateTimeModel(new DateTime()));
    row.addElement("field4", new CheckBoxModel(false));
    row.addElement("field5", new ImageModel(ImageComponent.getImageBytes("C:\\Sandbox\\Jaffa\\source\\httpunittest\\html\\widgets\\tests\\testimage1_down.gif")));
    row.addElement("field6", new DropDownModel("Value2"));
    row = model.newRow();
    row.addElement("field1", new EditBoxModel("Field31Value"));
    row.addElement("field2", new EditBoxModel("Field32Value"));
    row.addElement("field3", new DateTimeModel(DateTime.addMonth(new DateTime(), 1)));
    row.addElement("field4", new CheckBoxModel(true));
    row.addElement("field5", new ImageModel(ImageComponent.getImageBytes("C:\\Sandbox\\Jaffa\\source\\httpunittest\\html\\widgets\\tests\\testimage1_up.gif")));
    row.addElement("field6", new DropDownModel("Value3"));
    return model;
}
Also used : GridModel(org.jaffa.presentation.portlet.widgets.model.GridModel) DateTimeModel(org.jaffa.presentation.portlet.widgets.model.DateTimeModel) DropDownModel(org.jaffa.presentation.portlet.widgets.model.DropDownModel) EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel) GridModelRow(org.jaffa.presentation.portlet.widgets.model.GridModelRow) ImageModel(org.jaffa.presentation.portlet.widgets.model.ImageModel) DateTime(org.jaffa.datatypes.DateTime) CheckBoxModel(org.jaffa.presentation.portlet.widgets.model.CheckBoxModel)

Example 22 with EditBoxModel

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

the class Page1Form method setField2WV.

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

Example 23 with EditBoxModel

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

the class Page1Form method setField1WV.

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

Example 24 with EditBoxModel

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

the class EditBoxForm method getFieldWithValidationWM.

public WidgetModel getFieldWithValidationWM() {
    if (w_fieldWithValidation == null) {
        w_fieldWithValidation = new EditBoxModel();
        w_fieldWithValidation.setValue(getFieldWithValidation());
    }
    return w_fieldWithValidation;
}
Also used : EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel)

Example 25 with EditBoxModel

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

the class EditBoxForm method setFieldWithValidationWV.

public void setFieldWithValidationWV(String value) {
    EditBoxModel m = (EditBoxModel) getFieldWithValidationWM();
    EditBoxController.updateModel(value, m);
}
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