Search in sources :

Example 6 with Form

use of com.vaadin.ui.Form in project Activiti by Activiti.

the class NewUserPopupWindow method initForm.

protected void initForm() {
    form = new Form();
    form.setValidationVisibleOnCommit(true);
    form.setImmediate(true);
    addComponent(form);
    initInputFields();
    initCreateButton();
}
Also used : Form(com.vaadin.ui.Form)

Example 7 with Form

use of com.vaadin.ui.Form in project Activiti by Activiti.

the class CopyModelPopupWindow method addFields.

protected void addFields() {
    form = new Form();
    form.setCaption(i18nManager.getMessage(Messages.PROCESS_COPY_POPUP_CAPTION));
    form.getLayout().setMargin(true);
    nameTextField = new TextField(i18nManager.getMessage(Messages.TASK_NAME));
    nameTextField.setWidth(20, Sizeable.UNITS_EM);
    nameTextField.setRequired(true);
    nameTextField.setValue(modelData.getName());
    form.getLayout().addComponent(nameTextField);
    nameTextField.focus();
    descriptionTextArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(20, Sizeable.UNITS_EM);
    form.getLayout().addComponent(descriptionTextArea);
    addComponent(form);
    // Some empty space
    Label emptySpace = new Label(" ", Label.CONTENT_XHTML);
    addComponent(emptySpace);
}
Also used : Form(com.vaadin.ui.Form) TextArea(com.vaadin.ui.TextArea) Label(com.vaadin.ui.Label) TextField(com.vaadin.ui.TextField)

Example 8 with Form

use of com.vaadin.ui.Form in project Activiti by Activiti.

the class FormPropertiesComponent method initForm.

protected void initForm() {
    form = new Form();
    form.setSizeFull();
    addComponent(form);
    setComponentAlignment(form, Alignment.TOP_CENTER);
}
Also used : Form(com.vaadin.ui.Form)

Aggregations

Form (com.vaadin.ui.Form)8 TextField (com.vaadin.ui.TextField)4 ClickEvent (com.vaadin.ui.Button.ClickEvent)3 ClickListener (com.vaadin.ui.Button.ClickListener)3 PasswordField (com.vaadin.ui.PasswordField)2 TextArea (com.vaadin.ui.TextArea)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 SubmitEvent (org.activiti.explorer.ui.event.SubmitEvent)2 Item (com.vaadin.data.Item)1 ValueChangeEvent (com.vaadin.data.Property.ValueChangeEvent)1 ValueChangeListener (com.vaadin.data.Property.ValueChangeListener)1 Validator (com.vaadin.data.Validator)1 PropertysetItem (com.vaadin.data.util.PropertysetItem)1 Button (com.vaadin.ui.Button)1 CheckBox (com.vaadin.ui.CheckBox)1 ComboBox (com.vaadin.ui.ComboBox)1 Component (com.vaadin.ui.Component)1 DateField (com.vaadin.ui.DateField)1 FormFieldFactory (com.vaadin.ui.FormFieldFactory)1