use of com.vaadin.ui.TextField in project Activiti by Activiti.
the class NewCasePopupWindow method initForm.
protected void initForm() {
form = new Form();
form.setValidationVisibleOnCommit(true);
form.setImmediate(true);
addComponent(form);
// name
nameField = new TextField(i18nManager.getMessage(Messages.TASK_NAME));
nameField.focus();
nameField.setRequired(true);
nameField.setRequiredError(i18nManager.getMessage(Messages.TASK_NAME_REQUIRED));
form.addField("name", nameField);
// description
descriptionArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
descriptionArea.setColumns(25);
form.addField("description", descriptionArea);
// duedate
dueDateField = new DateField(i18nManager.getMessage(Messages.TASK_DUEDATE));
dueDateField.setResolution(DateField.RESOLUTION_DAY);
form.addField("duedate", dueDateField);
// priority
priorityComboBox = new PriorityComboBox(i18nManager);
form.addField("priority", priorityComboBox);
}
use of com.vaadin.ui.TextField in project Activiti by Activiti.
the class SubTaskComponent method initAddButton.
protected void initAddButton() {
addSubTaskButton = new Button();
addSubTaskButton.addStyleName(ExplorerLayout.STYLE_ADD);
addSubTaskPanel.addComponent(addSubTaskButton);
addSubTaskButton.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
// Remove button
addSubTaskPanel.removeAllComponents();
// And add textfield
Label createSubTaskLabel = new Label("Create new subtask:");
createSubTaskLabel.addStyleName(Reindeer.LABEL_SMALL);
addSubTaskPanel.addComponent(createSubTaskLabel);
newTaskTextField = new TextField();
newTaskTextField.focus();
addSubTaskPanel.addComponent(newTaskTextField);
}
});
}
use of com.vaadin.ui.TextField in project Activiti by Activiti.
the class SimpleTableEditor method initNameField.
protected void initNameField(GridLayout layout) {
nameField = new TextField();
nameField.setWriteThrough(true);
nameField.setImmediate(true);
layout.addComponent(new Label(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_NAME)));
layout.addComponent(nameField);
if (workflowName != null) {
nameField.setValue(workflowName);
workflowName = null;
}
}
use of com.vaadin.ui.TextField in project Activiti by Activiti.
the class SimpleTableEditor method initDescriptionField.
protected void initDescriptionField(GridLayout layout) {
descriptionField = new TextField();
descriptionField.setRows(4);
descriptionField.setColumns(35);
descriptionField.addStyleName(ExplorerLayout.STYLE_TEXTAREA_NO_RESIZE);
layout.addComponent(new Label(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_DESCRIPTION)));
layout.addComponent(descriptionField);
if (description != null) {
descriptionField.setValue(description);
description = null;
}
}
use of com.vaadin.ui.TextField in project Activiti by Activiti.
the class SaveReportPopupWindow method createNameTextField.
protected void createNameTextField(I18nManager i18nManager, VerticalLayout layout) {
HorizontalLayout fieldLayout = new HorizontalLayout();
fieldLayout.setWidth(100, UNITS_PERCENTAGE);
layout.addComponent(fieldLayout);
fieldLayout.addComponent(new Label(i18nManager.getMessage(Messages.REPORTING_SAVE_POPUP_NAME)));
nameField = new TextField();
nameField.setWidth(250, UNITS_PIXELS);
nameField.focus();
fieldLayout.addComponent(nameField);
}
Aggregations