Examples of FormWidget


Examples of org.araneaframework.uilib.form.FormWidget

      .addOnClickEventListener(new FilterEventHandler());

      this.filterForm.markBaseState();
    }
    else {
      this.filterForm = new FormWidget();
    }               
   
    //Configuration
   
    Long defaultListSize = (Long) getConfiguration().getEntry(ConfigurationContext.DEFAULT_LIST_ITEMS_ON_PAGE);
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

    }
   
    public void initFormRow(FormRow editableRow, Object row) throws Exception {
      editableRow.close();
     
      FormWidget rowForm = editableRow.getRowForm();
     
      addCommonFormFields(rowForm);
     
      FormListUtil.addEditSaveButtonToRowForm("#", formList, rowForm, getRowKey(row));
      FormListUtil.addDeleteButtonToRowForm("#", formList, rowForm, getRowKey(row));
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

    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

Examples of org.araneaframework.uilib.form.FormWidget

    /* 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
    form.addElement("username", "#User", new TextControl(), new StringData(), false);
    form.addElement("password", "#Password", new TextControl(), new StringData(), false);

View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

      inMemoryHelper.add(rowData);
    }

    public void initFormRow(FormRow editableRow, Object row)
                         throws Exception {
      FormWidget rowForm = editableRow.getRowForm();

      addCommonFormFields(rowForm);

      FormListUtil.addSaveButtonToRowForm("#", formList, rowForm, editableRow.getRowKey());
      FormListUtil.addDeleteButtonToRowForm("#", formList, rowForm, editableRow.getRowKey());
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

    public void initFormRow(FormRow editableRow, Object row)
                         throws Exception {
      editableRow.close();

      FormWidget rowForm = editableRow.getRowForm();

      addCommonFormFields(rowForm);

      FormListUtil.addEditSaveButtonToRowForm("#", editableRows, rowForm, getRowKey(row));
      FormListUtil.addDeleteButtonToRowForm("#", editableRows, rowForm, getRowKey(row));
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

      data.put(lastId, rowData);
    }

    public void initFormRow(FormRow editableRow, Object row)
                         throws Exception {
      FormWidget rowForm = editableRow.getRowForm();

      addCommonFormFields(rowForm);

      FormListUtil.addSaveButtonToRowForm("#", formList, rowForm, getRowKey(row));
      FormListUtil.addDeleteButtonToRowForm("#", formList, rowForm, getRowKey(row));
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

    super.init();
   
    addGlobalEventListener(new ProxyEventListener(this));
    setViewSelector("demo/DemoDisplayForm/main");
   
    displayForm = new FormWidget();

    displayForm.addElement("condDisplay", "#Condition", new DisplayControl(), new BooleanData(), false);
    displayForm.addElement("textDisplay", "#Text", new DisplayControl(), new StringData(), false);
    displayForm.addElement("valueDisplay", "#Value", new DisplayControl(), new LongData(), false);
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

  protected void init() throws Exception {
  super.init();
 
  setViewSelector("sample/simpleForm/component");

    simpleForm = new FormWidget();
   
    FormElement el = simpleForm.createElement("#Textbox", new TextControl(), new StringData(), false);
   
    simpleForm.addElement("checkbox1", "#Checkbox", new CheckboxControl(), new BooleanData(), false);
    simpleForm.addElement("textbox1", el);
View Full Code Here

Examples of org.araneaframework.uilib.form.FormWidget

  protected void init() throws Exception {
    super.init();
 
    addGlobalEventListener(new ProxyEventListener(this));
 
    searchForm = new FormWidget();

    //Adding form controls
    searchForm.addElement("clientFirstName", "#Client first name", new TextControl(), new StringData(), false);
    searchForm.addElement("clientLastName", "#Client last name", new TextControl(), new StringData(), false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.