Package org.araneaframework.uilib.form

Examples of org.araneaframework.uilib.form.BeanFormWidget


  private Class beanClass;
 
  public BeanListWidget(Class beanClass) {
    super();
    this.beanClass = beanClass;
    this.filterForm = new BeanFormWidget(beanClass);
 
View Full Code Here


  private static void addBeanElement(BeanFormWidget form, String fullId, String label, Control control, boolean mandatory) throws Exception {
    if (fullId.indexOf(".") != -1) {
      String subFormId = fullId.substring(0, fullId.indexOf("."));
      String nextFullId =  fullId.substring(subFormId.length() + 1);
     
      BeanFormWidget subForm = null;
     
      if (form.getElement(subFormId) != null) {
        subForm = (BeanFormWidget) form.getElement(subFormId);         
      } else {
        subForm = form.addBeanSubForm(subFormId);         
View Full Code Here

    super.init();
    setViewSelector(id != null ? "company/companyEdit" : "company/companyAdd");
    log.debug("TemplateCompanyEditWidget init called");
    addGlobalEventListener(new ProxyEventListener(this));   
   
    form = new BeanFormWidget(CompanyMO.class);
    form.addBeanElement("name", "#Name", new TextControl(), true);
    form.addBeanElement("address", "#Address", new TextControl(), true);

    if (id != null) {
      CompanyMO company = (CompanyMO) getGeneralDAO().getById(CompanyMO.class, id);  
View Full Code Here

    super.init();

    addGlobalEventListener(new ProxyEventListener(this));
    setViewSelector(id != null ? "person/personEdit" : "person/personAdd");
   
    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);
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.BeanFormWidget

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.