com.vaadin.ui.Button.setImmediate() - java examples

Here are the examples of the java api com.vaadin.ui.Button.setImmediate() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

63 Examples 7

19 View Complete Implementation : SPUITagButtonStyle.java
Copyright Eclipse Public License 1.0
Author : eclipse
@Override
public Button decorate(final Button button, final String style, final boolean setStyle, final Resource icon) {
    button.setImmediate(true);
    button.addStyleName("generatedColumnPadding button-no-border" + " " + ValoTheme.BUTTON_BORDERLESS + " " + "button-tag-no-border");
    // Set Style
    if (null != style) {
        if (setStyle) {
            button.setStyleName(style);
        } else {
            button.addStyleName(style);
        }
    }
    // Set icon
    if (null != icon) {
        button.setIcon(icon);
    }
    return button;
}

18 View Complete Implementation : SearchableGrid.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private Button createClearButton() {
    final Button clear = new Button("X");
    clear.setImmediate(true);
    clear.addClickListener(new ClickEventLogged.ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void clicked(ClickEvent event) {
            searchField.setValue("");
            clearAdvancedFilters();
            triggerFilter();
        }
    });
    return clear;
}

18 View Complete Implementation : ActionButtonColumnGenerator.java
Copyright Apache License 2.0
Author : trivago
@Override
public Object generateCell(final Table source, final Object itemId, final Object columnId) {
    HorizontalLayout hl = new HorizontalLayout();
    Button deleteButton = new Button();
    deleteButton.setImmediate(true);
    deleteButton.setIcon(new ThemeResource("../runo/icons/16/trash.png"));
    deleteButton.setDescription("Delete sender");
    deleteButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(Button.ClickEvent event) {
            Transaction tx = ConnectionFactory.getDatabase().beginTx();
            try {
                Sender s = new Sender((Long) itemId);
                ConnectionFactory.getSenderIndex().remove(s.getDataNode());
                for (Relationship r : s.getDataNode().getRelationships()) {
                    r.delete();
                }
                s.getDataNode().delete();
                source.removeItem(itemId);
                source.getWindow().showNotification("Successfully deleted.");
                tx.success();
            } catch (Exception e) {
                source.getWindow().showNotification("Error while deleting entry: " + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE);
                log.error(e);
                tx.failure();
            } finally {
                tx.finish();
            }
        }
    });
    hl.addComponent(deleteButton);
    return hl;
}

18 View Complete Implementation : ActionButtonColumnGenerator.java
Copyright Apache License 2.0
Author : trivago
@Override
public Object generateCell(final Table source, final Object itemId, final Object columnId) {
    HorizontalLayout hl = new HorizontalLayout();
    Button deleteButton = new Button();
    deleteButton.setImmediate(true);
    deleteButton.setIcon(new ThemeResource("../runo/icons/16/trash.png"));
    deleteButton.setDescription("Delete template");
    deleteButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(Button.ClickEvent event) {
            Transaction tx = ConnectionFactory.getDatabase().beginTx();
            try {
                MailTemplate mt = new MailTemplate((Long) itemId);
                ConnectionFactory.getNewsletterIndex().remove(mt.getDataNode());
                for (Relationship r : mt.getDataNode().getRelationships()) {
                    r.delete();
                }
                mt.getDataNode().delete();
                source.removeItem(itemId);
                source.getWindow().showNotification("Successfully deleted.");
                tx.success();
            } catch (Exception e) {
                source.getWindow().showNotification("Error while deleting entry: " + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE);
                log.error(e);
                tx.failure();
            } finally {
                tx.finish();
            }
        }
    });
    Button editButton = new Button();
    editButton.setImmediate(true);
    editButton.setIcon(new ThemeResource("../runo/icons/16/doreplacedent-txt.png"));
    editButton.setDescription("Edit template");
    editButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(Button.ClickEvent event) {
            Window modalNewWindow = new ModalAddTemplate((TemplateList) source.getParent().getParent().getParent(), (Long) itemId);
            event.getButton().getWindow().addWindow(modalNewWindow);
            modalNewWindow.setVisible(true);
        }
    });
    hl.addComponent(editButton);
    hl.addComponent(deleteButton);
    return hl;
}

18 View Complete Implementation : ActionButtonColumnGenerator.java
Copyright Apache License 2.0
Author : trivago
@Override
public Object generateCell(final Table source, final Object itemId, final Object columnId) {
    HorizontalLayout hl = new HorizontalLayout();
    Button deleteButton = new Button();
    deleteButton.setImmediate(true);
    deleteButton.setIcon(new ThemeResource("../runo/icons/16/trash.png"));
    deleteButton.setDescription("Delete recipient");
    deleteButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(Button.ClickEvent event) {
            Transaction tx = ConnectionFactory.getDatabase().beginTx();
            try {
                Recipient s = new Recipient((Long) itemId);
                ConnectionFactory.getUserIndex().remove(s.getDataNode());
                for (Relationship r : s.getDataNode().getRelationships()) {
                    r.delete();
                }
                s.getDataNode().delete();
                source.removeItem(itemId);
                source.getWindow().showNotification("Successfully deleted.");
                tx.success();
            } catch (Exception e) {
                log.error("Error while deleting entry", e);
                source.getWindow().showNotification("Error while deleting entry: " + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE);
                tx.failure();
            } finally {
                tx.finish();
            }
        }
    });
    hl.addComponent(deleteButton);
    return hl;
}

18 View Complete Implementation : SearchableSelectableEntityTable.java
Copyright GNU General Public License v3.0
Author : rlsutton1
/**
 * Filtering
 *
 * @return
 */
private Button createClearButton() {
    Button clear = new Button("X");
    // clear.setStyleName(ValoTheme.BUTTON_SMALL);
    clear.setImmediate(true);
    clear.addClickListener(new ClickEventLogged.ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void clicked(ClickEvent event) {
            searchField.setValue("");
            clearAdvancedFilters();
            completeInit();
        }
    });
    return clear;
}

17 View Complete Implementation : GitPushWindow.java
Copyright Apache License 2.0
Author : apache
protected Object generateUncommittedEntry(final GitEntry entry) {
    Button commit = new Button("Commit");
    commit.setImmediate(true);
    commit.addClickListener(new ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
        }
    });
    return commit;
}

17 View Complete Implementation : GitPushWindow.java
Copyright Apache License 2.0
Author : apache
protected Object generateUntrackedEntry(final GitEntry entry) {
    Button add = new Button("Add");
    add.setImmediate(true);
    add.addClickListener(new ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
            try {
                DirCache cache = self.git.add().addFilepattern(entry.getName()).call();
                DirCacheEntry cacheEntry = cache.getEntry(entry.getName());
                replacedert cacheEntry != null;
                if (cacheEntry == null) {
                    return;
                }
                if (cacheEntry.isMerged()) {
                    self.refreshStatus();
                }
            } catch (GitAPIException e) {
                String error = "Failed to add: " + e.getLocalizedMessage();
                logger.error(error);
                AdminNotification.error(error);
            }
        }
    });
    return add;
}

17 View Complete Implementation : GitPushWindow.java
Copyright MIT License
Author : att
protected Object generateUntrackedEntry(final GitEntry entry) {
    Button add = new Button("Add");
    add.setImmediate(true);
    add.addClickListener(new ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
            try {
                DirCache cache = self.git.add().addFilepattern(entry.getName()).call();
                DirCacheEntry cacheEntry = cache.getEntry(entry.getName());
                replacedert (cacheEntry != null);
                if (cacheEntry == null) {
                    return;
                }
                if (cacheEntry.isMerged()) {
                    self.refreshStatus();
                }
            } catch (GitAPIException e) {
                String error = "Failed to add: " + e.getLocalizedMessage();
                logger.error(error);
                AdminNotification.error(error);
            }
        }
    });
    return add;
}

17 View Complete Implementation : SearchableSelectableEntityTable.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private AbstractLayout buildAdvancedSearch() {
    advancedSearchLayout = getAdvancedSearchLayout();
    if (advancedSearchLayout != null) {
        advancedSearchCheckbox = new Button("Advanced");
        advancedSearchOn = false;
        advancedSearchCheckbox.setImmediate(true);
        advancedSearchCheckbox.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 7777043506655571664L;

            @Override
            public void buttonClick(ClickEvent event) {
                clearAdvancedFilters();
                advancedSearchOn = !advancedSearchOn;
                advancedSearchLayout.setVisible(advancedSearchOn);
                if (!advancedSearchOn) {
                    completeInit();
                }
                if (!advancedSearchOn) {
                    advancedSearchCheckbox.removeStyleName(ValoTheme.BUTTON_FRIENDLY);
                } else {
                    advancedSearchCheckbox.setStyleName(ValoTheme.BUTTON_FRIENDLY);
                }
            }
        });
        searchBar.addComponent(advancedSearchLayout);
        advancedSearchLayout.setVisible(false);
    }
    return advancedSearchLayout;
}

17 View Complete Implementation : ActionButtonColumnGenerator.java
Copyright Apache License 2.0
Author : trivago
@Override
public Object generateCell(final Table source, final Object itemId, final Object columnId) {
    HorizontalLayout hl = new HorizontalLayout();
    final Button showMembersButton = new Button();
    showMembersButton.setIcon(new ThemeResource("../runo/icons/16/users.png"));
    showMembersButton.setDescription("Show recipients in this group");
    showMembersButton.setImmediate(true);
    final Button deleteButton = new Button();
    deleteButton.setIcon(new ThemeResource("../runo/icons/16/trash.png"));
    deleteButton.setDescription("Delete group and all users in it.");
    deleteButton.setImmediate(true);
    final Button csvImportButton = new Button();
    csvImportButton.setIcon(new ThemeResource("../runo/icons/16/folder.png"));
    csvImportButton.setDescription("Import CSV file of users into this group");
    csvImportButton.setImmediate(true);
    final Button refreshButton = new Button();
    refreshButton.setIcon(new ThemeResource("../runo/icons/16/reload.png"));
    refreshButton.setDescription("Refresh the recipient count in this group (e.g. after an import)");
    refreshButton.setImmediate(true);
    showMembersButton.setData(itemId);
    deleteButton.setData(itemId);
    csvImportButton.setData(itemId);
    refreshButton.setData(itemId);
    csvImportButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            ModalRecipientImportCsv modalNewWindow = new ModalRecipientImportCsv((Long) event.getButton().getData());
            event.getButton().getWindow().addWindow(modalNewWindow);
            modalNewWindow.setVisible(true);
        }
    });
    refreshButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            source.removeGeneratedColumn("memberNumber");
            source.addGeneratedColumn("memberNumber", new GroupColumnGenerator());
            source.removeGeneratedColumn("Actions");
            source.addGeneratedColumn("Actions", new ActionButtonColumnGenerator());
        }
    });
    showMembersButton.addListener(new Button.ClickListener() {

        public void buttonClick(ClickEvent event) {
            long itemId = (Long) event.getButton().getData();
            ModalRecipientList rlist = new ModalRecipientList(itemId);
            source.getWindow().addWindow(rlist);
            rlist.setVisible(true);
        }
    });
    deleteButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(Button.ClickEvent event) {
            Transaction tx = ConnectionFactory.getDatabase().beginTx();
            try {
                RecipientGroup r = new RecipientGroup((Long) itemId);
                ConnectionFactory.getGroupIndex().remove(r.getDataNode());
                for (Relationship rs : r.getDataNode().getRelationships()) {
                    rs.delete();
                }
                r.getDataNode().delete();
                source.removeItem(itemId);
                source.getWindow().showNotification("Successfully deleted.");
                tx.success();
            } catch (Exception e) {
                source.getWindow().showNotification("Error while deleting entry: " + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE);
                log.error(e);
                tx.failure();
            } finally {
                tx.finish();
            }
        }
    });
    hl.addComponent(showMembersButton);
    hl.addComponent(csvImportButton);
    hl.addComponent(refreshButton);
    hl.addComponent(deleteButton);
    hl.setSpacing(true);
    return hl;
}

17 View Complete Implementation : GitPushWindow.java
Copyright Apache License 2.0
Author : apache
protected Object generateConflictingEntry(final GitEntry entry) {
    Button resolve = new Button("Resolve");
    resolve.setImmediate(true);
    resolve.addClickListener(new ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
        }
    });
    return resolve;
}

14 View Complete Implementation : UserManagement.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
    // common part: create layout
    horizontalLayoutToolbar = new HorizontalLayout();
    horizontalLayoutToolbar.setImmediate(false);
    horizontalLayoutToolbar.setWidth("-1px");
    horizontalLayoutToolbar.setHeight("-1px");
    horizontalLayoutToolbar.setMargin(true);
    horizontalLayoutToolbar.setSpacing(true);
    // buttonAdd
    buttonAdd = new Button();
    buttonAdd.setCaption("Add User");
    buttonAdd.setImmediate(false);
    buttonAdd.setWidth("-1px");
    buttonAdd.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonAdd);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove User");
    buttonRemove.setImmediate(false);
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonRemove);
    return horizontalLayoutToolbar;
}

14 View Complete Implementation : OaExpressionsEditorComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);
    // buttonadd
    buttonadd = new Button();
    buttonadd.setCaption("Add");
    buttonadd.setImmediate(true);
    buttonadd.setWidth("-1px");
    buttonadd.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonadd);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove");
    buttonRemove.setImmediate(true);
    buttonRemove.setDescription("Remove selected expression(s).");
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonRemove);
    return horizontalLayout_1;
}

13 View Complete Implementation : SearchableGrid.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private AbstractLayout buildAdvancedSearch() {
    advancedSearchLayout = getAdvancedSearchLayout();
    if (advancedSearchLayout != null) {
        advancedSearchButton = new Button(getAdvancedCaption());
        advancedSearchButton.addStyleName(ValoTheme.BUTTON_FRIENDLY);
        advancedSearchButton.setWidth("85");
        advancedSearchOn = false;
        advancedSearchButton.setImmediate(true);
        advancedSearchButton.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 7777043506655571664L;

            @Override
            public void buttonClick(ClickEvent event) {
                clearAdvancedFilters();
                advancedSearchOn = !advancedSearchOn;
                advancedSearchLayout.setVisible(advancedSearchOn);
                if (!advancedSearchOn) {
                    triggerFilter();
                }
                if (!advancedSearchOn) {
                    advancedSearchButton.setCaption(getAdvancedCaption());
                } else {
                    advancedSearchButton.setCaption(getBasicCaption());
                }
                AdvancedSearchListener advancedSearchListener = getAdvancedSearchListener();
                if (advancedSearchListener != null) {
                    advancedSearchListener.advancedSearchIsOpen(advancedSearchOn);
                }
            }
        });
        searchBar.addComponent(advancedSearchLayout);
        advancedSearchLayout.setVisible(false);
    }
    return advancedSearchLayout;
}

12 View Complete Implementation : ExpressionSelectionWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // optionGroupExpression
    optionGroupExpression = new OptionGroup();
    optionGroupExpression.setCaption("Select One Of The Following Types of Expressions");
    optionGroupExpression.setImmediate(false);
    optionGroupExpression.setWidth("-1px");
    optionGroupExpression.setHeight("-1px");
    mainLayout.addComponent(optionGroupExpression);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Select");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(24));
    return mainLayout;
}

12 View Complete Implementation : GitSynchronizeWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textAreaResults
    textAreaResults = new TextArea();
    textAreaResults.setCaption("Synch Results");
    textAreaResults.setImmediate(false);
    textAreaResults.setWidth("462px");
    textAreaResults.setHeight("222px");
    mainLayout.addComponent(textAreaResults);
    // buttonSynchronize
    buttonSynchronize = new Button();
    buttonSynchronize.setCaption("Synchronize");
    buttonSynchronize.setImmediate(true);
    buttonSynchronize.setWidth("-1px");
    buttonSynchronize.setHeight("-1px");
    mainLayout.addComponent(buttonSynchronize);
    mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24));
    return mainLayout;
}

12 View Complete Implementation : SelectPDPGroupWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // listSelectPDPGroup
    listSelectPDPGroup = new ListSelect();
    listSelectPDPGroup.setImmediate(false);
    listSelectPDPGroup.setWidth("-1px");
    listSelectPDPGroup.setHeight("-1px");
    listSelectPDPGroup.setInvalidAllowed(false);
    listSelectPDPGroup.setRequired(true);
    mainLayout.addComponent(listSelectPDPGroup);
    mainLayout.setExpandRatio(listSelectPDPGroup, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

11 View Complete Implementation : PIPParameterComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);
    // buttonAdd
    buttonAdd = new Button();
    buttonAdd.setCaption("Add");
    buttonAdd.setImmediate(false);
    buttonAdd.setWidth("-1px");
    buttonAdd.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonAdd);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove");
    buttonRemove.setImmediate(false);
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonRemove);
    // buttonClone
    buttonClone = new Button();
    buttonClone.setCaption("Clone");
    buttonClone.setImmediate(false);
    buttonClone.setWidth("-1px");
    buttonClone.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonClone);
    // buttonClear
    buttonClear = new Button();
    buttonClear.setCaption("Clear All");
    buttonClear.setImmediate(false);
    buttonClear.setWidth("-1px");
    buttonClear.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonClear);
    return horizontalLayout_1;
}

11 View Complete Implementation : ObligationAdviceEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);
    // buttonAdd
    buttonAdd = new Button();
    buttonAdd.setCaption("Add Expression");
    buttonAdd.setImmediate(false);
    buttonAdd.setWidth("-1px");
    buttonAdd.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonAdd);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove Expression");
    buttonRemove.setImmediate(false);
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonRemove);
    // buttonClear
    buttonClear = new Button();
    buttonClear.setCaption("Clear Expressions");
    buttonClear.setImmediate(false);
    buttonClear.setWidth("-1px");
    buttonClear.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonClear);
    return horizontalLayout_1;
}

11 View Complete Implementation : RenamePolicyFileWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldFilename
    textFieldFilename = new TextField();
    textFieldFilename.setCaption("Policy File Name");
    textFieldFilename.setImmediate(false);
    textFieldFilename.setWidth("-1px");
    textFieldFilename.setHeight("-1px");
    mainLayout.addComponent(textFieldFilename);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(24));
    return mainLayout;
}

11 View Complete Implementation : SelectPIPConfigurationWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // table
    table = new Table();
    table.setCaption("PIP Configurations");
    table.setImmediate(false);
    table.setWidth("-1px");
    table.setHeight("-1px");
    mainLayout.addComponent(table);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

11 View Complete Implementation : XacmlErrorHandler.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("100.0%");
    setHeight("-1px");
    // labelError
    labelError = new Label();
    labelError.setImmediate(false);
    labelError.setWidth("100.0%");
    labelError.setHeight("80px");
    labelError.setValue("This holds error messages.");
    mainLayout.addComponent(labelError);
    // buttonGo
    buttonGo = new Button();
    buttonGo.setCaption("Ok");
    buttonGo.setImmediate(true);
    buttonGo.setWidth("-1px");
    buttonGo.setHeight("-1px");
    mainLayout.addComponent(buttonGo);
    mainLayout.setComponentAlignment(buttonGo, new Alignment(48));
    return mainLayout;
}

11 View Complete Implementation : MainUI.java
Copyright Apache License 2.0
Author : opensecuritycontroller
private void buildHeader() {
    this.header.addStyleName("branding");
    this.header.addStyleName("header");
    // product name and information
    Label product = new Label(this.server.getProductName() + "<br> <span clreplaced='product-version'> Version: " + this.server.getVersionStr() + "</span>", ContentMode.HTML);
    product.addStyleName("product-label");
    product.setSizeUndefined();
    HorizontalLayout brandingLayout = new HorizontalLayout();
    brandingLayout.addStyleName("header-content");
    brandingLayout.addComponent(new Image(null, new ThemeResource("img/logo.png")));
    brandingLayout.addComponent(product);
    // creating home help button
    Button mainHelpButton = new Button();
    mainHelpButton.setImmediate(true);
    mainHelpButton.setStyleName(Reindeer.BUTTON_LINK);
    mainHelpButton.setDescription("Help");
    mainHelpButton.setIcon(new ThemeResource("img/headerHelp.png"));
    mainHelpButton.addClickListener(new ClickListener() {

        private String guid = "";

        @Override
        public void buttonClick(ClickEvent event) {
            ViewUtil.showHelpBrowserWindow(this.guid);
        }
    });
    HorizontalLayout helpLayout = new HorizontalLayout();
    helpLayout.addComponent(mainHelpButton);
    helpLayout.addStyleName("homeHelpButton");
    // Adding current user to header
    Label user = new Label("User: " + getCurrent().getSession().getAttribute("user").toString());
    // header banner
    HorizontalLayout userlayout = new HorizontalLayout();
    userlayout.addStyleName("user");
    userlayout.addComponent(user);
    // create Logout button next to user
    userlayout.addComponent(buildLogout());
    // Adding help button to the user layout next to logout button
    userlayout.addComponent(helpLayout);
    this.header.setWidth("100%");
    this.header.setHeight("65px");
    this.header.addComponent(brandingLayout);
    this.header.addComponent(userlayout);
    this.header.setExpandRatio(brandingLayout, 1);
    this.root.addComponent(this.header);
}

10 View Complete Implementation : OpenSnapshotFileDialog.java
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("-1px");
    verticalLayout_1.setHeight("-1px");
    verticalLayout_1.setMargin(true);
    verticalLayout_1.setSpacing(true);
    // textField_2
    tabNameLabel = new TextField();
    tabNameLabel.setCaption("Name");
    tabNameLabel.setImmediate(false);
    tabNameLabel.setWidth("-1px");
    tabNameLabel.setHeight("-1px");
    tabNameLabel.setRequired(true);
    verticalLayout_1.addComponent(tabNameLabel);
    // textField_1
    snapshotFileLabel = new TextField();
    snapshotFileLabel.setCaption("Snapshot file to open");
    snapshotFileLabel.setImmediate(false);
    snapshotFileLabel.setWidth("540px");
    snapshotFileLabel.setHeight("-1px");
    snapshotFileLabel.setRequired(true);
    verticalLayout_1.addComponent(snapshotFileLabel);
    // button_1
    openButton = new Button();
    openButton.setCaption("Open");
    openButton.setImmediate(true);
    openButton.setWidth("-1px");
    openButton.setHeight("-1px");
    verticalLayout_1.addComponent(openButton);
    return verticalLayout_1;
}

10 View Complete Implementation : PIPManagement.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
    // common part: create layout
    horizontalLayoutToolbar = new HorizontalLayout();
    horizontalLayoutToolbar.setImmediate(false);
    horizontalLayoutToolbar.setWidth("-1px");
    horizontalLayoutToolbar.setHeight("-1px");
    horizontalLayoutToolbar.setMargin(false);
    horizontalLayoutToolbar.setSpacing(true);
    // buttonAdd
    buttonAdd = new Button();
    buttonAdd.setCaption("Add Configuration");
    buttonAdd.setImmediate(true);
    buttonAdd.setWidth("-1px");
    buttonAdd.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonAdd);
    // buttonClone
    buttonClone = new Button();
    buttonClone.setCaption("Clone Configuration");
    buttonClone.setImmediate(true);
    buttonClone.setWidth("-1px");
    buttonClone.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonClone);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove Configuration");
    buttonRemove.setImmediate(true);
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonRemove);
    // buttonImport
    buttonImport = new Button();
    buttonImport.setCaption("Import Configuration");
    buttonImport.setImmediate(false);
    buttonImport.setDescription("Imports a configuration from a properties file.");
    buttonImport.setWidth("-1px");
    buttonImport.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonImport);
    return horizontalLayoutToolbar;
}

9 View Complete Implementation : PDPManagement.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
    // common part: create layout
    horizontalLayoutToolbar = new HorizontalLayout();
    horizontalLayoutToolbar.setImmediate(false);
    horizontalLayoutToolbar.setWidth("-1px");
    horizontalLayoutToolbar.setHeight("-1px");
    horizontalLayoutToolbar.setMargin(true);
    horizontalLayoutToolbar.setSpacing(true);
    // buttonCreate
    buttonCreate = new Button();
    buttonCreate.setCaption("Create Group");
    buttonCreate.setImmediate(false);
    buttonCreate.setWidth("-1px");
    buttonCreate.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonCreate);
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove Group");
    buttonRemove.setImmediate(false);
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonRemove);
    return horizontalLayoutToolbar;
}

9 View Complete Implementation : EnumerationEditorComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);
    // buttonAdd
    buttonAdd = new Button();
    buttonAdd.setCaption("Add");
    buttonAdd.setImmediate(true);
    buttonAdd.setDescription("Add a new enumeration value.");
    buttonAdd.setWidth("-1px");
    buttonAdd.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonAdd);
    horizontalLayout_1.setComponentAlignment(buttonAdd, new Alignment(9));
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove");
    buttonRemove.setImmediate(true);
    buttonRemove.setDescription("Remove the selected enumeration value.");
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonRemove);
    horizontalLayout_1.setComponentAlignment(buttonRemove, new Alignment(10));
    // buttonClearAll
    buttonClearAll = new Button();
    buttonClearAll.setCaption("Clear All");
    buttonClearAll.setImmediate(false);
    buttonClearAll.setDescription("Clears all the values out.");
    buttonClearAll.setWidth("-1px");
    buttonClearAll.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonClearAll);
    return horizontalLayout_1;
}

9 View Complete Implementation : PIPParamEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldName
    textFieldName = new TextField();
    textFieldName.setCaption("Parameter Name");
    textFieldName.setImmediate(false);
    textFieldName.setWidth("-1px");
    textFieldName.setHeight("-1px");
    textFieldName.setInvalidAllowed(false);
    textFieldName.setRequired(true);
    mainLayout.addComponent(textFieldName);
    // textFieldValue
    textFieldValue = new TextField();
    textFieldValue.setCaption("Parameter Value");
    textFieldValue.setImmediate(false);
    textFieldValue.setWidth("-1px");
    textFieldValue.setHeight("-1px");
    textFieldValue.setInvalidAllowed(false);
    textFieldValue.setRequired(true);
    mainLayout.addComponent(textFieldValue);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

9 View Complete Implementation : VariableDefinitionEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldID
    textFieldID = new TextField();
    textFieldID.setCaption("Variable ID");
    textFieldID.setImmediate(false);
    textFieldID.setWidth("-1px");
    textFieldID.setHeight("-1px");
    textFieldID.setInvalidAllowed(false);
    textFieldID.setRequired(true);
    textFieldID.setNullRepresentation("");
    mainLayout.addComponent(textFieldID);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save and Continue");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

8 View Complete Implementation : PDPStatusWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100.0%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // table
    table = new Table();
    table.setCaption("Status");
    table.setImmediate(false);
    table.setWidth("100.0%");
    table.setHeight("-1px");
    mainLayout.addComponent(table);
    // buttonOK
    buttonOK = new Button();
    buttonOK.setCaption("Ok");
    buttonOK.setImmediate(true);
    buttonOK.setWidth("-1px");
    buttonOK.setHeight("-1px");
    mainLayout.addComponent(buttonOK);
    mainLayout.setComponentAlignment(buttonOK, new Alignment(48));
    return mainLayout;
}

8 View Complete Implementation : SelectWorkspacePoliciesWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // treeWorkspace
    treeWorkspace = new TreeTable();
    treeWorkspace.setCaption("Select Policy(s) for PDP Group");
    treeWorkspace.setImmediate(true);
    treeWorkspace.setWidth("100.0%");
    treeWorkspace.setHeight("-1px");
    mainLayout.addComponent(treeWorkspace);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

8 View Complete Implementation : DistributionTable.java
Copyright Eclipse Public License 1.0
Author : eclipse
private Button createPinBtn(final Object itemId) {
    final Item item = getContainerDataSource().gereplacedem(itemId);
    final String name = (String) item.gereplacedemProperty(SPUILabelDefinitions.VAR_NAME).getValue();
    final String version = (String) item.gereplacedemProperty(SPUILabelDefinitions.VAR_VERSION).getValue();
    final DistributionSetIdName distributionSetIdName = new DistributionSetIdName((Long) itemId, name, version);
    final Button pinBtn = new Button();
    pinBtn.setIcon(FontAwesome.THUMB_TACK);
    pinBtn.setHeightUndefined();
    pinBtn.addStyleName(getPinStyle());
    pinBtn.setData(distributionSetIdName);
    pinBtn.setId(getPinButtonId(name, version));
    pinBtn.setImmediate(true);
    pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_DISTRIBUTION_SET_PIN));
    return pinBtn;
}

8 View Complete Implementation : ColumnSelectionWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldColumn
    textFieldColumn = new TextField();
    textFieldColumn.setCaption("Column");
    textFieldColumn.setImmediate(false);
    textFieldColumn.setDescription("0-based index into CSV line");
    textFieldColumn.setWidth("-1px");
    textFieldColumn.setHeight("-1px");
    textFieldColumn.setRequired(true);
    textFieldColumn.setInputPrompt("Eg. ‘0'");
    mainLayout.addComponent(textFieldColumn);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

7 View Complete Implementation : OpenTransactionLogFileDialog.java
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("-1px");
    verticalLayout_1.setHeight("-1px");
    verticalLayout_1.setMargin(true);
    verticalLayout_1.setSpacing(true);
    // nameLabel
    nameLabel = new TextField();
    nameLabel.setCaption("Name");
    nameLabel.setImmediate(false);
    nameLabel.setWidth("-1px");
    nameLabel.setHeight("-1px");
    nameLabel.setRequired(true);
    verticalLayout_1.addComponent(nameLabel);
    // transactionLogFileLabel
    transactionLogFileLabel = new TextField();
    transactionLogFileLabel.setCaption("Transaction log file or directory containing transaction log files to open");
    transactionLogFileLabel.setImmediate(false);
    transactionLogFileLabel.setWidth("540px");
    transactionLogFileLabel.setHeight("-1px");
    transactionLogFileLabel.setRequired(true);
    verticalLayout_1.addComponent(transactionLogFileLabel);
    // snapshotDirectoryLabel
    snapshotDirectoryLabel = new TextField();
    snapshotDirectoryLabel.setCaption("Directory containing snapshot files");
    snapshotDirectoryLabel.setImmediate(false);
    snapshotDirectoryLabel.setWidth("540px");
    snapshotDirectoryLabel.setHeight("-1px");
    verticalLayout_1.addComponent(snapshotDirectoryLabel);
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    verticalLayout_1.addComponent(horizontalLayout_1);
    // button_1
    openButton = new Button();
    openButton.setCaption("Open");
    openButton.setImmediate(true);
    openButton.setWidth("-1px");
    openButton.setHeight("-1px");
    verticalLayout_1.addComponent(openButton);
    return verticalLayout_1;
}

7 View Complete Implementation : AttributeDictionary.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
    // common part: create layout
    horizontalLayoutToolbar = new HorizontalLayout();
    horizontalLayoutToolbar.setImmediate(false);
    horizontalLayoutToolbar.setWidth("-1px");
    horizontalLayoutToolbar.setHeight("-1px");
    horizontalLayoutToolbar.setMargin(false);
    horizontalLayoutToolbar.setSpacing(true);
    // buttonNew
    buttonNew = new Button();
    buttonNew.setCaption("New");
    buttonNew.setImmediate(true);
    buttonNew.setDescription("Create a new attribute");
    buttonNew.setWidth("70px");
    buttonNew.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonNew);
    horizontalLayoutToolbar.setComponentAlignment(buttonNew, new Alignment(9));
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove");
    buttonRemove.setImmediate(true);
    buttonRemove.setDescription("Remove the selected attribute(s)");
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonRemove);
    horizontalLayoutToolbar.setComponentAlignment(buttonRemove, new Alignment(9));
    // buttonClone
    buttonClone = new Button();
    buttonClone.setCaption("Clone");
    buttonClone.setImmediate(true);
    buttonClone.setDescription("Clone an attribute.");
    buttonClone.setWidth("-1px");
    buttonClone.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonClone);
    horizontalLayoutToolbar.setComponentAlignment(buttonClone, new Alignment(9));
    // comboBoxFilterCategory
    comboBoxFilterCategory = new ComboBox();
    comboBoxFilterCategory.setCaption("Filter By Category");
    comboBoxFilterCategory.setImmediate(false);
    comboBoxFilterCategory.setWidth("-1px");
    comboBoxFilterCategory.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(comboBoxFilterCategory);
    // comboBoxFilterDatatype
    comboBoxFilterDatatype = new ComboBox();
    comboBoxFilterDatatype.setCaption("Filter By Data Type");
    comboBoxFilterDatatype.setImmediate(false);
    comboBoxFilterDatatype.setWidth("-1px");
    comboBoxFilterDatatype.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(comboBoxFilterDatatype);
    return horizontalLayoutToolbar;
}

7 View Complete Implementation : ObadviceDictionary.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
    // common part: create layout
    horizontalLayoutToolbar = new HorizontalLayout();
    horizontalLayoutToolbar.setImmediate(false);
    horizontalLayoutToolbar.setWidth("-1px");
    horizontalLayoutToolbar.setHeight("-1px");
    horizontalLayoutToolbar.setMargin(false);
    horizontalLayoutToolbar.setSpacing(true);
    // buttonNew
    buttonNew = new Button();
    buttonNew.setCaption("New");
    buttonNew.setImmediate(true);
    buttonNew.setDescription("Add a new advice or obligation to the dictionary.");
    buttonNew.setWidth("-1px");
    buttonNew.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonNew);
    horizontalLayoutToolbar.setComponentAlignment(buttonNew, new Alignment(24));
    // buttonRemove
    buttonRemove = new Button();
    buttonRemove.setCaption("Remove");
    buttonRemove.setImmediate(true);
    buttonRemove.setDescription("Remove the selected advice or obligation from the dictionary.");
    buttonRemove.setWidth("-1px");
    buttonRemove.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonRemove);
    horizontalLayoutToolbar.setComponentAlignment(buttonRemove, new Alignment(24));
    // buttonClone
    buttonClone = new Button();
    buttonClone.setCaption("Clone");
    buttonClone.setImmediate(true);
    buttonClone.setDescription("Clone the selected obligation/advice.");
    buttonClone.setWidth("-1px");
    buttonClone.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(buttonClone);
    horizontalLayoutToolbar.setComponentAlignment(buttonClone, new Alignment(24));
    // comboBoxFilter
    comboBoxFilter = new ComboBox();
    comboBoxFilter.setCaption("Filter By Type");
    comboBoxFilter.setImmediate(false);
    comboBoxFilter.setWidth("-1px");
    comboBoxFilter.setHeight("-1px");
    horizontalLayoutToolbar.addComponent(comboBoxFilter);
    return horizontalLayoutToolbar;
}

7 View Complete Implementation : RegexpEditorComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
    // common part: create layout
    verticalLayout_2 = new VerticalLayout();
    verticalLayout_2.setImmediate(false);
    verticalLayout_2.setWidth("100.0%");
    verticalLayout_2.setHeight("100.0%");
    verticalLayout_2.setMargin(false);
    // textFieldTestValue
    textFieldTestValue = new TextField();
    textFieldTestValue.setCaption("Test Value");
    textFieldTestValue.setImmediate(true);
    textFieldTestValue.setDescription("Enter a value to match against the regular expression.");
    textFieldTestValue.setWidth("-1px");
    textFieldTestValue.setHeight("-1px");
    textFieldTestValue.setInputPrompt("eg. example");
    verticalLayout_2.addComponent(textFieldTestValue);
    // buttonTest
    buttonTest = new Button();
    buttonTest.setCaption("Test");
    buttonTest.setImmediate(true);
    buttonTest.setWidth("-1px");
    buttonTest.setHeight("-1px");
    verticalLayout_2.addComponent(buttonTest);
    verticalLayout_2.setComponentAlignment(buttonTest, new Alignment(48));
    return verticalLayout_2;
}

7 View Complete Implementation : AttributeSelectionWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    // horizontalLayoutAttribute
    horizontalLayoutAttribute = new HorizontalLayout();
    horizontalLayoutAttribute.setImmediate(false);
    horizontalLayoutAttribute.setWidth("-1px");
    horizontalLayoutAttribute.setHeight("-1px");
    horizontalLayoutAttribute.setMargin(false);
    mainLayout.addComponent(horizontalLayoutAttribute);
    mainLayout.setExpandRatio(horizontalLayoutAttribute, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Select");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

7 View Complete Implementation : ObligationAdviceEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    // tableExpressions
    tableExpressions = new TreeTable();
    tableExpressions.setCaption("Expressions");
    tableExpressions.setImmediate(false);
    tableExpressions.setWidth("100%");
    tableExpressions.setHeight("-1px");
    mainLayout.addComponent(tableExpressions);
    mainLayout.setExpandRatio(tableExpressions, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(false);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

6 View Complete Implementation : TransactionLogView.java
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("100.0%");
    verticalLayout_1.setHeight("100.0%");
    verticalLayout_1.setMargin(true);
    verticalLayout_1.setSpacing(true);
    // reconstructDataTreeButton
    reconstructDataTreeButton = new Button();
    reconstructDataTreeButton.setCaption("Reconstruct Data Tree");
    reconstructDataTreeButton.setImmediate(true);
    reconstructDataTreeButton.setWidth("-1px");
    reconstructDataTreeButton.setHeight("-1px");
    verticalLayout_1.addComponent(reconstructDataTreeButton);
    verticalLayout_1.setComponentAlignment(reconstructDataTreeButton, new Alignment(6));
    // descriptionLabel
    descriptionLabel = new Label();
    descriptionLabel.setImmediate(false);
    descriptionLabel.setWidth("-1px");
    descriptionLabel.setHeight("-1px");
    descriptionLabel.setValue("Select Transaction");
    verticalLayout_1.addComponent(descriptionLabel);
    verticalLayout_1.setExpandRatio(descriptionLabel, 1.0f);
    return verticalLayout_1;
}

6 View Complete Implementation : AttributeDictionarySelectorComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_2() {
    // common part: create layout
    horizontalLayout_2 = new HorizontalLayout();
    horizontalLayout_2.setImmediate(false);
    horizontalLayout_2.setWidth("-1px");
    horizontalLayout_2.setHeight("-1px");
    horizontalLayout_2.setMargin(false);
    horizontalLayout_2.setSpacing(true);
    // comboBoxCategoryFilter
    comboBoxCategoryFilter = new ComboBox();
    comboBoxCategoryFilter.setCaption("Filter Category");
    comboBoxCategoryFilter.setImmediate(false);
    comboBoxCategoryFilter.setWidth("-1px");
    comboBoxCategoryFilter.setHeight("-1px");
    horizontalLayout_2.addComponent(comboBoxCategoryFilter);
    horizontalLayout_2.setExpandRatio(comboBoxCategoryFilter, 1.0f);
    // buttonNewAttribute
    buttonNewAttribute = new Button();
    buttonNewAttribute.setCaption("New Attribute");
    buttonNewAttribute.setImmediate(true);
    buttonNewAttribute.setDescription("Click to create a new attribute in the dictionary.");
    buttonNewAttribute.setWidth("-1px");
    buttonNewAttribute.setHeight("-1px");
    horizontalLayout_2.addComponent(buttonNewAttribute);
    horizontalLayout_2.setComponentAlignment(buttonNewAttribute, new Alignment(10));
    return horizontalLayout_2;
}

6 View Complete Implementation : ExpressionBuilderComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
    // treeExpressions
    treeExpressions = new TreeTable();
    treeExpressions.setImmediate(false);
    treeExpressions.setWidth("100.0%");
    treeExpressions.setHeight("-1px");
    mainLayout.addComponent(treeExpressions);
    mainLayout.setExpandRatio(treeExpressions, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

6 View Complete Implementation : ViewUtil.java
Copyright Apache License 2.0
Author : opensecuritycontroller
/**
 * @param caption
 *            Caption Text Representing Header
 * @param guid
 *            Help GUID for caller view
 * @return
 *         Horizontal Layout containing Caption text and Help button
 */
public static HorizontalLayout createSubHeader(String caption, String guid) {
    HorizontalLayout subHeader = new HorizontalLayout();
    subHeader.setWidth("100%");
    subHeader.setHeight("35px");
    subHeader.setSpacing(true);
    subHeader.addStyleName("toolbar");
    final Label replacedle = new Label(caption);
    replacedle.setSizeUndefined();
    subHeader.addComponent(replacedle);
    subHeader.setComponentAlignment(replacedle, Alignment.MIDDLE_LEFT);
    subHeader.setExpandRatio(replacedle, 1);
    // create help button if we have some GUID else do not add this button
    if (guid != null) {
        Button helpButton = new Button();
        helpButton.setImmediate(true);
        helpButton.setStyleName(Reindeer.BUTTON_LINK);
        helpButton.setDescription("Help");
        helpButton.setIcon(new ThemeResource("img/Help.png"));
        subHeader.addComponent(helpButton);
        helpButton.addClickListener(new HelpButtonListener(guid));
    }
    return subHeader;
}

4 View Complete Implementation : RangeEditorComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
    // common part: create layout
    verticalLayout_2 = new VerticalLayout();
    verticalLayout_2.setImmediate(false);
    verticalLayout_2.setWidth("100.0%");
    verticalLayout_2.setHeight("100.0%");
    verticalLayout_2.setMargin(false);
    verticalLayout_2.setSpacing(true);
    // textFieldTestInput
    textFieldTestInput = new TextField();
    textFieldTestInput.setCaption("Value");
    textFieldTestInput.setImmediate(true);
    textFieldTestInput.setDescription("Enter a value to test against.");
    textFieldTestInput.setWidth("-1px");
    textFieldTestInput.setHeight("-1px");
    textFieldTestInput.setInputPrompt("eg. 50");
    verticalLayout_2.addComponent(textFieldTestInput);
    // buttonValidate
    buttonValidate = new Button();
    buttonValidate.setCaption("Test");
    buttonValidate.setImmediate(true);
    buttonValidate.setDescription("Click to test if value is within the range.");
    buttonValidate.setWidth("-1px");
    buttonValidate.setHeight("-1px");
    verticalLayout_2.addComponent(buttonValidate);
    verticalLayout_2.setComponentAlignment(buttonValidate, new Alignment(48));
    return verticalLayout_2;
}

4 View Complete Implementation : ExpressionBuilderComponent.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);
    // buttonAddExpression
    buttonAddExpression = new Button();
    buttonAddExpression.setCaption("Add Expression");
    buttonAddExpression.setImmediate(true);
    buttonAddExpression.setWidth("-1px");
    buttonAddExpression.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonAddExpression);
    // buttonDeleteExpression
    buttonDeleteExpression = new Button();
    buttonDeleteExpression.setCaption("Delete Expression");
    buttonDeleteExpression.setImmediate(true);
    buttonDeleteExpression.setWidth("-1px");
    buttonDeleteExpression.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonDeleteExpression);
    // buttonClearAll
    buttonClearAll = new Button();
    buttonClearAll.setCaption("Clear All");
    buttonClearAll.setImmediate(true);
    buttonClearAll.setDescription("Clears all the expressions.");
    buttonClearAll.setWidth("-1px");
    buttonClearAll.setHeight("-1px");
    horizontalLayout_1.addComponent(buttonClearAll);
    // checkBoxShortName
    checkBoxShortName = new CheckBox();
    checkBoxShortName.setCaption("Display Short XACML ID's");
    checkBoxShortName.setImmediate(false);
    checkBoxShortName.setDescription("If checked, the right-most string of the function and datatype URI's will only be displayed.");
    checkBoxShortName.setWidth("-1px");
    checkBoxShortName.setHeight("-1px");
    horizontalLayout_1.addComponent(checkBoxShortName);
    return horizontalLayout_1;
}

4 View Complete Implementation : FunctionSelectionWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldFilter
    textFieldFilter = new TextField();
    textFieldFilter.setCaption("Filter");
    textFieldFilter.setImmediate(false);
    textFieldFilter.setWidth("-1px");
    textFieldFilter.setHeight("-1px");
    mainLayout.addComponent(textFieldFilter);
    // tableFunctions
    tableFunctions = new Table();
    tableFunctions.setImmediate(false);
    tableFunctions.setDescription("Functions To Select From");
    tableFunctions.setWidth("100.0%");
    tableFunctions.setHeight("-1px");
    mainLayout.addComponent(tableFunctions);
    mainLayout.setExpandRatio(tableFunctions, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

4 View Complete Implementation : MatchEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // tableFunctions
    tableFunctions = new Table();
    tableFunctions.setCaption("Function");
    tableFunctions.setImmediate(true);
    tableFunctions.setDescription("Select a function for matching the attribute.");
    tableFunctions.setWidth("100.0%");
    tableFunctions.setHeight("-1px");
    tableFunctions.setInvalidAllowed(false);
    tableFunctions.setRequired(true);
    mainLayout.addComponent(tableFunctions);
    mainLayout.setExpandRatio(tableFunctions, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

4 View Complete Implementation : SubDomainEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private FormLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new FormLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldSubdomain
    textFieldSubdomain = new TextField();
    textFieldSubdomain.setCaption("Enter Sub Domain");
    textFieldSubdomain.setImmediate(false);
    textFieldSubdomain.setDescription("You can enter sub domain name - do not use spaces or wildcard characters.");
    textFieldSubdomain.setWidth("-1px");
    textFieldSubdomain.setHeight("-1px");
    textFieldSubdomain.setInvalidAllowed(false);
    textFieldSubdomain.setInputPrompt("Examples: sales hr business marketing.");
    mainLayout.addComponent(textFieldSubdomain);
    mainLayout.setExpandRatio(textFieldSubdomain, 1.0f);
    // buttonSave
    buttonSave = new Button();
    buttonSave.setCaption("Save");
    buttonSave.setImmediate(true);
    buttonSave.setWidth("-1px");
    buttonSave.setHeight("-1px");
    mainLayout.addComponent(buttonSave);
    mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
    return mainLayout;
}

3 View Complete Implementation : ApplyEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    // tableFunction
    tableFunction = new Table();
    tableFunction.setCaption("Select A Function");
    tableFunction.setImmediate(false);
    tableFunction.setWidth("100.0%");
    tableFunction.setHeight("-1px");
    tableFunction.setInvalidAllowed(false);
    tableFunction.setRequired(true);
    mainLayout.addComponent(tableFunction);
    mainLayout.setExpandRatio(tableFunction, 1.0f);
    // buttonSelect
    buttonSelect = new Button();
    buttonSelect.setCaption("Select and Continue");
    buttonSelect.setImmediate(true);
    buttonSelect.setWidth("-1px");
    buttonSelect.setHeight("-1px");
    mainLayout.addComponent(buttonSelect);
    mainLayout.setComponentAlignment(buttonSelect, new Alignment(48));
    return mainLayout;
}