Package org.araneaframework.uilib.form.control

Examples of org.araneaframework.uilib.form.control.DateControl


    list = new EditableBeanListWidget(PersonMO.class);
    list.addBeanColumn("id", "#Id", false);
    list.addBeanColumn("name", "#First name", true, new SimpleColumnFilter.Like(), new TextControl());
    list.addBeanColumn("surname", "#Last name", true, new SimpleColumnFilter.Like(), new TextControl());
    list.addBeanColumn("phone", "#Phone no", true, new SimpleColumnFilter.Like(), new TextControl());
    list.addBeanColumn("birthdate", "#Birthdate", true, new SimpleColumnFilter.Equals(), new DateControl());
   
    list.setListDataProvider(buildListDataProvider());
    list.setFormRowHandler(buildFormRowHandler());

    this.formList = list.getFormList();   
View Full Code Here


   
    private void addCommonFormFields(FormWidget form) throws Exception {
      form.addElement("name", "#First name", new TextControl(), new StringData(), true);
      form.addElement("surname", "#Last name", new TextControl(), new StringData(), true);
      form.addElement("phone", "#Phone no", new TextControl(), new StringData(), false);
      form.addElement("birthdate", "#Birthdate", new DateControl(), new DateData(), false);
    }
View Full Code Here

    temp.setListDataProvider(new TemplatePersonListDataProvider());
    temp.addBeanColumn("id", "#Id", false);
    temp.addBeanColumn("name", "#First name", true, new SimpleColumnFilter.Like(), new TextControl());
    temp.addBeanColumn("surname", "#Last name", true, new SimpleColumnFilter.Like(), new TextControl());
    temp.addBeanColumn("phone", "#Phone no", true, new SimpleColumnFilter.Like(), new TextControl());
    temp.addBeanColumn("birthdate", "#Birthdate", true, new SimpleColumnFilter.Equals(), new DateControl());
    return temp;
  }
View Full Code Here

   
    form = new BeanFormWidget(PersonMO.class);
    form.addBeanElement("name", "#First name", new TextControl(), true);
    form.addBeanElement("surname", "#Last name", new TextControl(), false);
    form.addBeanElement("phone", "#Phone no", new TextControl(), true);
    form.addBeanElement("birthdate", "#Birthdate", new DateControl(), false);

    if (id != null) {
      PersonMO person = (PersonMO) getGeneralDAO().getById(PersonMO.class, id);
      form.writeBean(person);
    }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.control.DateControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.