Search in sources :

Example 6 with TextArea

use of com.vaadin.ui.TextArea 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 7 with TextArea

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

the class FileAttachmentEditorComponent method initDescription.

protected void initDescription() {
    TextArea descriptionField = new TextArea(i18nManager.getMessage(Messages.RELATED_CONTENT_DESCRIPTION));
    descriptionField.setWidth(100, UNITS_PERCENTAGE);
    descriptionField.setHeight(50, UNITS_PIXELS);
    form.addField("description", descriptionField);
}
Also used : TextArea(com.vaadin.ui.TextArea)

Aggregations

TextArea (com.vaadin.ui.TextArea)7 Label (com.vaadin.ui.Label)3 TextField (com.vaadin.ui.TextField)3 LayoutClickEvent (com.vaadin.event.LayoutEvents.LayoutClickEvent)2 LayoutClickListener (com.vaadin.event.LayoutEvents.LayoutClickListener)2 Button (com.vaadin.ui.Button)2 ClickEvent (com.vaadin.ui.Button.ClickEvent)2 ClickListener (com.vaadin.ui.Button.ClickListener)2 Form (com.vaadin.ui.Form)2 CssLayout (com.vaadin.ui.CssLayout)1 DateField (com.vaadin.ui.DateField)1 GridLayout (com.vaadin.ui.GridLayout)1 VerticalLayout (com.vaadin.ui.VerticalLayout)1 PrettyTimeLabel (org.activiti.explorer.ui.custom.PrettyTimeLabel)1 ClaimTaskClickListener (org.activiti.explorer.ui.task.listener.ClaimTaskClickListener)1