Search in sources :

Example 6 with GridLayout

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

the class HistoricTaskDetailPanel method initSubTaskGrid.

protected void initSubTaskGrid() {
    subTaskGrid = new GridLayout();
    subTaskGrid.setColumns(2);
    subTasksLayout.addComponent(subTaskGrid);
}
Also used : GridLayout(com.vaadin.ui.GridLayout)

Example 7 with GridLayout

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

the class NewModelPopupWindow method addFields.

protected void addFields() {
    formLayout = new GridLayout(2, 3);
    formLayout.setSpacing(true);
    formLayout.addComponent(new Label(i18nManager.getMessage(Messages.TASK_NAME)));
    nameTextField = new TextField();
    nameTextField.setWidth(25, Sizeable.UNITS_EM);
    nameTextField.focus();
    formLayout.addComponent(nameTextField);
    formLayout.addComponent(new Label(i18nManager.getMessage(Messages.TASK_DESCRIPTION)));
    descriptionTextArea = new TextArea();
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(25, Sizeable.UNITS_EM);
    descriptionTextArea.addStyleName(ExplorerLayout.STYLE_TEXTAREA_NO_RESIZE);
    formLayout.addComponent(descriptionTextArea);
    Label editorLabel = new Label(i18nManager.getMessage(Messages.PROCESS_EDITOR_CHOICE));
    formLayout.addComponent(editorLabel);
    formLayout.setComponentAlignment(editorLabel, Alignment.MIDDLE_LEFT);
    selectEditorComponent = new SelectEditorComponent();
    formLayout.addComponent(selectEditorComponent);
    addComponent(formLayout);
    // Some empty space
    Label emptySpace = new Label(" ", Label.CONTENT_XHTML);
    addComponent(emptySpace);
}
Also used : GridLayout(com.vaadin.ui.GridLayout) TextArea(com.vaadin.ui.TextArea) Label(com.vaadin.ui.Label) TextField(com.vaadin.ui.TextField)

Example 8 with GridLayout

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

the class TabbedSelectionWindow method initComponentLayout.

protected void initComponentLayout() {
    selectedComponentLayout = new GridLayout(1, 2);
    selectedComponentLayout.setSizeFull();
    selectedComponentLayout.setMargin(true);
    selectedComponentLayout.setSpacing(true);
    selectedComponentLayout.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_CREATE_DETAIL);
    windowLayout.addComponent(selectedComponentLayout);
    windowLayout.setExpandRatio(selectedComponentLayout, 1.0f);
    selectedComponentLayout.setRowExpandRatio(0, 1.0f);
    selectedComponentLayout.setColumnExpandRatio(0, 1.0f);
}
Also used : GridLayout(com.vaadin.ui.GridLayout)

Example 9 with GridLayout

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

the class GroupDetailPanel method initGroupProperties.

protected void initGroupProperties() {
    detailsGrid = new GridLayout(2, 3);
    detailsGrid.setSpacing(true);
    detailLayout.setMargin(true, true, true, false);
    detailLayout.addComponent(detailsGrid);
    // id
    Label idLabel = new Label(i18nManager.getMessage(Messages.GROUP_ID) + ": ");
    idLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD);
    detailsGrid.addComponent(idLabel);
    Label idValueLabel = new Label(group.getId());
    detailsGrid.addComponent(idValueLabel);
    // name
    Label nameLabel = new Label(i18nManager.getMessage(Messages.GROUP_NAME) + ": ");
    nameLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD);
    detailsGrid.addComponent(nameLabel);
    if (!editingDetails) {
        Label nameValueLabel = new Label(group.getName());
        detailsGrid.addComponent(nameValueLabel);
    } else {
        nameTextField = new TextField(null, group.getName());
        detailsGrid.addComponent(nameTextField);
    }
    // Type
    Label typeLabel = new Label(i18nManager.getMessage(Messages.GROUP_TYPE) + ": ");
    typeLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD);
    detailsGrid.addComponent(typeLabel);
    if (!editingDetails) {
        Label typeValueLabel = new Label(group.getType());
        detailsGrid.addComponent(typeValueLabel);
    } else {
        typeCombobox = new ComboBox(null, Arrays.asList("assignment", "security-role"));
        typeCombobox.setNullSelectionAllowed(false);
        typeCombobox.setInvalidAllowed(false);
        typeCombobox.select(group.getType());
        detailsGrid.addComponent(typeCombobox);
    }
}
Also used : GridLayout(com.vaadin.ui.GridLayout) ComboBox(com.vaadin.ui.ComboBox) Label(com.vaadin.ui.Label) TextField(com.vaadin.ui.TextField)

Example 10 with GridLayout

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

the class UserDetailPanel method loadUserDetails.

protected void loadUserDetails() {
    // Grid of details
    GridLayout detailGrid = new GridLayout();
    detailGrid.setColumns(2);
    detailGrid.setSpacing(true);
    detailGrid.setMargin(true, true, false, true);
    userDetailsLayout.addComponent(detailGrid);
    // Details
    // details are non-editable
    addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_ID), new Label(user.getId()));
    if (!editingDetails) {
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_FIRSTNAME), new Label(user.getFirstName()));
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_LASTNAME), new Label(user.getLastName()));
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_EMAIL), new Label(user.getEmail()));
    } else {
        firstNameField = new TextField(null, user.getFirstName() != null ? user.getFirstName() : "");
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_FIRSTNAME), firstNameField);
        firstNameField.focus();
        lastNameField = new TextField(null, user.getLastName() != null ? user.getLastName() : "");
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_LASTNAME), lastNameField);
        emailField = new TextField(null, user.getEmail() != null ? user.getEmail() : "");
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_EMAIL), emailField);
        passwordField = new PasswordField();
        Label cautionLabel = new Label(i18nManager.getMessage(Messages.USER_RESET_PASSWORD));
        cautionLabel.addStyleName(Reindeer.LABEL_SMALL);
        HorizontalLayout passwordLayout = new HorizontalLayout();
        passwordLayout.setSpacing(true);
        passwordLayout.addComponent(passwordField);
        passwordLayout.addComponent(cautionLabel);
        passwordLayout.setComponentAlignment(cautionLabel, Alignment.MIDDLE_LEFT);
        addUserDetail(detailGrid, i18nManager.getMessage(Messages.USER_PASSWORD), passwordLayout);
    }
}
Also used : GridLayout(com.vaadin.ui.GridLayout) Label(com.vaadin.ui.Label) TextField(com.vaadin.ui.TextField) PasswordField(com.vaadin.ui.PasswordField) HorizontalLayout(com.vaadin.ui.HorizontalLayout)

Aggregations

GridLayout (com.vaadin.ui.GridLayout)36 Label (com.vaadin.ui.Label)21 Embedded (com.vaadin.ui.Embedded)9 HorizontalLayout (com.vaadin.ui.HorizontalLayout)9 TextField (com.vaadin.ui.TextField)7 PrettyTimeLabel (org.activiti.explorer.ui.custom.PrettyTimeLabel)6 Panel (com.vaadin.ui.Panel)4 Button (com.vaadin.ui.Button)3 PasswordField (com.vaadin.ui.PasswordField)3 VerticalLayout (com.vaadin.ui.VerticalLayout)3 ComboBox (com.vaadin.ui.ComboBox)2 Component (com.vaadin.ui.Component)2 DateField (com.vaadin.ui.DateField)2 Link (com.vaadin.ui.Link)2 TextArea (com.vaadin.ui.TextArea)2 Window (com.vaadin.ui.Window)2 Test (org.junit.Test)2 DefaultPmoBasedSectionFactory (org.linkki.core.ui.section.DefaultPmoBasedSectionFactory)2 CorpusBrowserPanel (annis.gui.CorpusBrowserPanel)1 MetaDataPanel (annis.gui.MetaDataPanel)1