Package com.vaadin.ui

Examples of com.vaadin.ui.Form


    initCreateTaskButton();
    initEnterKeyListener();
  }
 
  protected void initForm() {
    form = new Form();
    form.setValidationVisibleOnCommit(true);
    form.setImmediate(true);
    addComponent(form);
   
    // name
View Full Code Here


    this.processInstanceId = processInstanceId;
   
    this.i18nManager = ExplorerApp.get().getI18nManager();
    taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
   
    form = new Form();
    form.setDescription(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_FILE_HELP));
    setSizeFull();
    addComponent(form);
    initSuccessIndicator();
    initFileUpload();
View Full Code Here

      }
    });
  }
 
  protected void initForm() {
    form = new Form();
    form.setValidationVisibleOnCommit(true);
    form.setImmediate(true);
    addComponent(form);
   
    initInputFields();
View Full Code Here

            while (it.hasNext()) {
                errors = validateComponentRelativeSizes(it.next(), errors,
                        parent);
            }
        } else if (component instanceof Form) {
            Form form = (Form) component;
            if (form.getLayout() != null) {
                errors = validateComponentRelativeSizes(form.getLayout(),
                        errors, parent);
            }
            if (form.getFooter() != null) {
                errors = validateComponentRelativeSizes(form.getFooter(),
                        errors, parent);
            }
        }

        return errors;
View Full Code Here

  private void notifyFormOfValidityChange() {
    Component parentOfSpinnerTextField = getParent();
    boolean formFound = false;
    while (parentOfSpinnerTextField != null || formFound) {
      if (parentOfSpinnerTextField instanceof Form) {
        Form f = (Form) parentOfSpinnerTextField;
        Collection<?> visibleItemProperties = f.getItemPropertyIds();
        for (Object fieldId : visibleItemProperties) {
          Field field = f.getField(fieldId);
          if (field == this) {
            /*
             * this SpinnerTextField is logically in a form. Do the
             * same thing as form does in its value change listener
             * that it registers to all fields.
             */
            f.requestRepaint();
            formFound = true;
            break;
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Form

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.