use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel in project jaffa-framework by jaffa-projects.
the class EditBoxForm method setFieldWithKeyBoardWV.
public void setFieldWithKeyBoardWV(String value) {
EditBoxModel m = (EditBoxModel) getFieldWithKeyBoardWM();
EditBoxController.updateModel(value, m);
}
use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel in project jaffa-framework by jaffa-projects.
the class EditBoxForm method getDataTypeDecimalWM.
public WidgetModel getDataTypeDecimalWM() {
if (w_dataTypeDecimal == null) {
w_dataTypeDecimal = new EditBoxModel(new DecimalFieldMetaData("DecimalVal", "DecimalVal", Boolean.FALSE, null, new Double("0"), new Double("20.50"), new Integer("4"), new Integer("2")));
w_dataTypeDecimal.setValue(getDataTypeDecimal());
}
return w_dataTypeDecimal;
}
use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel in project jaffa-framework by jaffa-projects.
the class EditBoxForm method getDataTypeStringWM.
public WidgetModel getDataTypeStringWM() {
if (w_dataTypeString == null) {
w_dataTypeString = new EditBoxModel(new StringFieldMetaData("StringVal", "StringVal", Boolean.TRUE, "[0-9]+", new Integer("8"), FieldMetaData.UPPER_CASE, new Integer("4")));
w_dataTypeString.setValue(getDataTypeString());
}
return w_dataTypeString;
}
use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel in project jaffa-framework by jaffa-projects.
the class EditBoxForm method getDataTypeDateTimeWM.
public WidgetModel getDataTypeDateTimeWM() {
if (w_dataTypeDateTime == null) {
w_dataTypeDateTime = new EditBoxModel(new DateTimeFieldMetaData());
w_dataTypeDateTime.setValue(getDataTypeDateTime());
}
return w_dataTypeDateTime;
}
use of org.jaffa.presentation.portlet.widgets.model.EditBoxModel in project jaffa-framework by jaffa-projects.
the class GridComponent method getGridChildren.
public void getGridChildren(String rowNo, String field, GridForm myForm) {
GridModel w_model1 = (GridModel) myForm.getWidgetCache().getModel(field);
GridModelRow row;
System.out.println("The row number is " + rowNo);
row = w_model1.getRowById(new Integer(rowNo).intValue());
if ((row.getElement("isExpanded") != null) && (Boolean.TRUE.equals((Boolean) row.getElement("isExpanded")))) {
return;
}
row.addElement("isExpanded", new Boolean(true));
row.addElement("isDisplayed", new Boolean(true));
w_model1.setTarget(row);
row = w_model1.newRow(new Integer(rowNo).intValue() + 1);
row.addElement("isDisplayed", new Boolean(true));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(false));
row.addElement("level", new Integer(4));
row.addElement("field1", new EditBoxModel("Field91Value"));
row.addElement("field2", new EditBoxModel("Field92Value"));
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"));
}
Aggregations