use of org.jaffa.presentation.portlet.widgets.model.DateTimeModel in project jaffa-framework by jaffa-projects.
the class DateTimeForm method setFieldLinkedToCCAndCachedWV.
public void setFieldLinkedToCCAndCachedWV(String value) {
DateTimeModel m = (DateTimeModel) getFieldLinkedToCCAndCachedWM();
DateTimeController.updateModel(value, m);
}
use of org.jaffa.presentation.portlet.widgets.model.DateTimeModel in project jaffa-framework by jaffa-projects.
the class DateTimeForm method setFieldWithValidationWV.
public void setFieldWithValidationWV(String value) {
DateTimeModel m = (DateTimeModel) getFieldWithValidationWM();
DateTimeController.updateModel(value, m);
}
use of org.jaffa.presentation.portlet.widgets.model.DateTimeModel in project jaffa-framework by jaffa-projects.
the class DateTimeForm method setFieldLinkedToCCWV.
public void setFieldLinkedToCCWV(String value) {
DateTimeModel m = (DateTimeModel) getFieldLinkedToCCWM();
DateTimeController.updateModel(value, m);
}
use of org.jaffa.presentation.portlet.widgets.model.DateTimeModel in project jaffa-framework by jaffa-projects.
the class GridForm method createNewTreeModel.
private GridModel createNewTreeModel() {
GridModel model = new GridModel();
GridModelRow row;
// Root Node 1
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
// Root Node 2
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(1));
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("field6", new DropDownModel("Value1"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(2));
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("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(2));
row.addElement("field1", new EditBoxModel("Field23Value"));
row.addElement("field2", new EditBoxModel("Field24Value"));
row.addElement("field3", new DateTimeModel(new DateTime()));
row.addElement("field4", new CheckBoxModel(false));
row.addElement("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(3));
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("field6", new DropDownModel("Value3"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(2));
row.addElement("field1", new EditBoxModel("Field43Value"));
row.addElement("field2", new EditBoxModel("Field44Value"));
row.addElement("field3", new DateTimeModel(new DateTime()));
row.addElement("field4", new CheckBoxModel(false));
row.addElement("field6", new DropDownModel("Value2"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(3));
row.addElement("field1", new EditBoxModel("Field51Value"));
row.addElement("field2", new EditBoxModel("Field52Value"));
row.addElement("field3", new DateTimeModel(DateTime.addMonth(new DateTime(), 1)));
row.addElement("field4", new CheckBoxModel(true));
row.addElement("field6", new DropDownModel("Value3"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(4));
row.addElement("field1", new EditBoxModel("Field61Value"));
row.addElement("field2", new EditBoxModel("Field62Value"));
row.addElement("field3", new DateTimeModel(DateTime.addMonth(new DateTime(), 1)));
row.addElement("field4", new CheckBoxModel(true));
row.addElement("field6", new DropDownModel("Value3"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("level", new Integer(5));
row.addElement("field1", new EditBoxModel("Field71Value"));
row.addElement("field2", new EditBoxModel("Field72Value"));
row.addElement("field3", new DateTimeModel(DateTime.addMonth(new DateTime(), 1)));
row.addElement("field4", new CheckBoxModel(true));
row.addElement("field6", new DropDownModel("Value3"));
row = model.newRow();
row.addElement("isExpanded", new Boolean(false));
row.addElement("isTarget", new Boolean(false));
row.addElement("isParent", new Boolean(true));
row.addElement("level", new Integer(3));
row.addElement("field1", new EditBoxModel("Field81Value"));
row.addElement("field2", new EditBoxModel("Field82Value"));
row.addElement("field3", new DateTimeModel(DateTime.addMonth(new DateTime(), 1)));
row.addElement("field4", new CheckBoxModel(true));
row.addElement("field6", new DropDownModel("Value3"));
return model;
}
Aggregations