Package org.araneaframework.core

Examples of org.araneaframework.core.ProxyEventListener


  /*
   * Protected methods
   */
 
  protected void init() throws Exception {
    addGlobalEventListener(new ProxyEventListener(this));
  }
View Full Code Here


  private FormListWidget formList;
 
  public void init() throws Exception {
    super.init();
   
    addGlobalEventListener(new ProxyEventListener(this));
    setViewSelector("person/editableList");
   
    list = new EditableBeanListWidget(PersonMO.class);
    list.addBeanColumn("id", "#Id", false);
    list.addBeanColumn("name", "#First name", true, new SimpleColumnFilter.Like(), new TextControl());
View Full Code Here

  }

  protected void init() throws Exception {
    log.debug("TemplateContractCompanyWidget init called");
    setViewSelector("contract/contractCompanyEdit");
    addEventListener("chooseCompany", new ProxyEventListener(this));
  }
View Full Code Here

 
  protected void init() throws Exception {
    super.init();
    setViewSelector("contract/contractList");
    log.debug("TemplateContractListWidget init called");   
    addGlobalEventListener(new ProxyEventListener(this));
   
    this.list = initList();
    addWidget("contractList", this.list);
   
    putViewData("allowAdd", new Boolean(editMode));   
View Full Code Here

  protected void init() throws Exception {
    super.init();
    setViewSelector("person/personList");
   
    log.debug("TemplatePersonListWidget init called");   
    addGlobalEventListener(new ProxyEventListener(this));
   
    this.list = initList();
    addWidget("personList", this.list);
   
    putViewData("allowAdd", new Boolean(this.editMode));   
View Full Code Here

 
  protected void init() throws Exception {
    super.init();
    setViewSelector("contract/contractNotesEdit");
    log.debug("TemplateContractNotesEditWidget init called");
    addGlobalEventListener(new ProxyEventListener(this));   
   
    form = new FormWidget();
    form.addElement("notes", "#Notes", new TextControl(), new StringData(), true);
    addWidget("form", form);
  }
View Full Code Here

  protected void init() throws Exception {
    super.init();
    log.debug("TemplateContractViewWidget init called");
    setViewSelector("contract/contractView");
    addGlobalEventListener(new ProxyEventListener(this));

    contract = (ContractMO) getGeneralDAO().getById(ContractMO.class, id);
    putViewData("contract", contract);
  }
View Full Code Here

  }

  protected void init() throws Exception {
    log.debug("TemplateContractPersonWidget init called");
    setViewSelector("contract/contractPersonEdit");
    addGlobalEventListener(new ProxyEventListener(this));
  }
View Full Code Here

     * ".jsp" */
    setViewSelector("login");
   
    /* Register a global proxying eventlistener - it receives all widget events and upon
     * receiving event named "someEvent" proxies it to "handleEventSomeEvent" method */
    addGlobalEventListener(new ProxyEventListener(this));

    /* Create a new FormWidget with two self-described input fields. */
    form = new FormWidget();
    // Add the input fields. Arguments taken by addElement() : 
    // String elementName, String labelId, Control control, Data data, boolean mandatory
View Full Code Here

 
  protected void init() throws Exception {
    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);
View Full Code Here

TOP

Related Classes of org.araneaframework.core.ProxyEventListener

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.