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();
}
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);
}
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);
}
Aggregations