Package org.araneaframework.uilib.form.control

Examples of org.araneaframework.uilib.form.control.ButtonControl$ViewModel


   * @param rowForm row form.
   * @param key row key.
   * @throws Exception
   */
  public static void addSaveButtonToRowForm(String labelId, FormListWidget editableRows, FormWidget rowForm, Object key) throws Exception {
    ButtonControl saveButton = new ButtonControl();
    saveButton.addOnClickEventListener(new ButtonSaveOnClickEventListener(key, editableRows));
    rowForm.addElement("save", labelId, saveButton, null, false);
  }
View Full Code Here


   * @param rowForm row form.
   * @param key row key.
   * @throws Exception
   */
  public static void addDeleteButtonToRowForm(String labelId, FormListWidget editableRows, FormWidget rowForm, Object key) throws Exception {
    ButtonControl deleteButton = new ButtonControl();
    deleteButton.addOnClickEventListener(new ButtonDeleteOnClickEventListener(key, editableRows));
    rowForm.addElement("delete", labelId, deleteButton, null, false);
 
View Full Code Here

   * @param rowForm row form.
   * @param key row key.
   * @throws Exception
   */
  public static void addOpenCloseButtonToRowForm(String labelId, FormListWidget editableRows, FormWidget rowForm, Object key) throws Exception {
    ButtonControl openCloseButton = new ButtonControl();
    openCloseButton.addOnClickEventListener(new ButtonOpenCloseOnClickEventListener(key, editableRows));
    rowForm.addElement("openClose", labelId, openCloseButton, null, false);
 
View Full Code Here

   * @param rowForm row form.
   * @param key row key.
   * @throws Exception
   */
  public static void addEditSaveButtonToRowForm(String labelId, FormListWidget editableRows, FormWidget rowForm, Object key) throws Exception {
    ButtonControl editSaveButton = new ButtonControl();
    editSaveButton.addOnClickEventListener(new ButtonEditSaveOnClickEventListener(key, editableRows));
    rowForm.addElement("editSave", labelId, editSaveButton, null, false);
  }   
View Full Code Here

   * @param editableRows editable rows widget.
   * @param addForm add form.
   * @throws Exception
   */
  public static void addAddButtonToAddForm(String labelId, FormListWidget editableRows, FormWidget addForm) throws Exception {
    ButtonControl addButton = new ButtonControl();
    addButton.addOnClickEventListener(new ButtonAddOnClickEventListener(editableRows, addForm));
    addForm.addElement("add", labelId, addButton, null, false);
  }   
View Full Code Here

    addEventListener("order", new OrderEventHandler());
   
    if (this.filterForm != null) {
      FormElement filterButton = this.filterForm.addElement("filter",
          UiLibMessages.LIST_FILTER_BUTTON_LABEL,
          new ButtonControl(), null, false);
      ((ButtonControl) (filterButton.getControl()))
      .addOnClickEventListener(new FilterEventHandler());

      this.filterForm.markBaseState();
    }
View Full Code Here

   
    FormElement el = simpleForm.createElement("#Textbox", new TextControl(), new StringData(), false);
   
    simpleForm.addElement("checkbox1", "#Checkbox", new CheckboxControl(), new BooleanData(), false);
    simpleForm.addElement("textbox1", el);
    simpleForm.addElement("button1", "#Button", new ButtonControl(), null, false);
    addWidget("simpleForm", simpleForm);
   
    addGlobalEventListener(new ProxyEventListener(this));
  }
View Full Code Here

   
    searchForm.addElement("clientAddressTown", "#Town", new TextControl(), new StringData(), false);
    searchForm.addElement("clientAddressStreet", "#Street", new TextControl(), new StringData(), false);
    searchForm.addElement("clientAddressHouse", "#House", new TextControl(), new StringData(), false);      
   
    searchForm.addElement("search", "#Search", new ButtonControl(), null, false);

    //
    //Complex constraint
    //
   
View Full Code Here

   
    //Adding elements to form
    testForm.addElement("myCheckBox", "my checkbox", new CheckboxControl(), new BooleanData(), true);
    testForm.addElement("myLongText", "my long text", new TextControl(), new LongData(), true);
    testForm.addElement("myDateTime", "my date and time", new DateTimeControl(), new DateData(), false);
    testForm.addElement("myButton", "my button", new ButtonControl(), null, false);

    //Adding a composite element
    FormWidget hierarchyTest = testForm.addSubForm("hierarchyTest");
    hierarchyTest.addElement("myTextarea", "my text area", new TextareaControl(), new StringData(), true);
View Full Code Here

   
    //Adding elements to form
    testForm.addElement("myCheckBox", "my checkbox", new CheckboxControl(), new BooleanData(), true);
    testForm.addElement("myLongText", "my long text", new TextControl(), new LongData(), false);
    testForm.addElement("myDateTime", "my date and time", new DateTimeControl(), new DateData(), false);
    testForm.addElement("myButton", "my button", new ButtonControl(), null, false);

    return testForm;
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.control.ButtonControl$ViewModel

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.