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

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

41 Examples 7

16 View Complete Implementation : FormHelper.java
Copyright GNU General Public License v3.0
Author : rlsutton1
public TextField bindTextField(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel, String fieldName) {
    TextField field = new SplitTextField(fieldLabel);
    field.setWidth("100%");
    field.setImmediate(true);
    field.setNullRepresentation("");
    field.setNullSettingAllowed(false);
    field.setId(fieldLabel.replace(" ", ""));
    addValueChangeListeners(field);
    doBinding(group, fieldName, field);
    form.addComponent(field);
    return field;
}

16 View Complete Implementation : MainApplicationUI.java
Copyright The Unlicense
Author : rolandkrueger
/**
 * Creates the form layout that contains the two textfields to edit the
 * session and UI-scoped variables.
 */
private FormLayout createFormLayout() {
    FormLayout formLayout = new FormLayout();
    formLayout.setCaption("Edit session/UI scoped variables:");
    uiScopedValueTF = new TextField("UI-scoped value:", MainApplicationUI.getCurrentUIScopedVariable());
    sessionScopedValueTF = new TextField("Session-scoped value:", getSessionScopedVariable());
    uiScopedValueTF.setImmediate(true);
    sessionScopedValueTF.setImmediate(true);
    formLayout.addComponent(uiScopedValueTF);
    formLayout.addComponent(sessionScopedValueTF);
    return formLayout;
}

11 View Complete Implementation : FormHelper.java
Copyright GNU General Public License v3.0
Author : rlsutton1
public TextField bindTextFieldWithButton(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel, String fieldName, Button button) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSizeFull();
    TextField field = new SplitTextField(fieldLabel);
    field.setWidth("100%");
    field.setImmediate(true);
    field.setNullRepresentation("");
    field.setNullSettingAllowed(false);
    field.setId(fieldLabel.replace(" ", ""));
    addValueChangeListeners(field);
    doBinding(group, fieldName, field);
    layout.addComponent(field);
    layout.addComponent(button);
    layout.setExpandRatio(field, 2);
    form.addComponent(layout);
    return field;
}

9 View Complete Implementation : SignUpViewImpl.java
Copyright Apache License 2.0
Author : markoradinovic
private void buildForm() {
    username = new TextField("Username");
    username.setWidth("100%");
    username.setImmediate(true);
    username.setValidationVisible(false);
    username.setNullRepresentation("");
    username.setRequired(true);
    form.addComponent(username);
    preplacedword = new PreplacedwordField("Preplacedword");
    preplacedword.setWidth("100%");
    preplacedword.setImmediate(true);
    preplacedword.setValidationVisible(false);
    preplacedword.setNullRepresentation("");
    preplacedword.setRequired(true);
    form.addComponent(preplacedword);
    firstName = new TextField("First name");
    firstName.setWidth("100%");
    firstName.setValidationVisible(false);
    firstName.setNullRepresentation("");
    firstName.setImmediate(true);
    firstName.setRequired(true);
    form.addComponent(firstName);
    lastName = new TextField("Last name");
    lastName.setWidth("100%");
    lastName.setImmediate(true);
    lastName.setNullRepresentation("");
    lastName.setValidationVisible(false);
    lastName.setRequired(true);
    form.addComponent(lastName);
    binder.bind(username, "username");
    binder.bind(preplacedword, "preplacedword");
    binder.bind(firstName, "firstName");
    binder.bind(lastName, "lastName");
}

8 View Complete Implementation : TimePicker.java
Copyright GNU General Public License v3.0
Author : rlsutton1
protected void buildUI(String replacedle) {
    field = new TextField();
    field.setWidth("125");
    field.setImmediate(true);
    displayTime.setImmediate(true);
    displayTime.addValidator(timeValidator);
    field.addValidator(timeValidator);
    field.addValueChangeListener(new ValueChangeListener() {

        private static final long serialVersionUID = 1L;

        @SuppressWarnings("deprecation")
        @Override
        public void valueChange(com.vaadin.data.Property.ValueChangeEvent event) {
            try {
                final Date parsedDate = parseDate((String) event.getProperty().getValue());
                if (parsedDate != null) {
                    dateTime.set(Calendar.HOUR_OF_DAY, parsedDate.getHours());
                    dateTime.set(Calendar.MINUTE, parsedDate.getMinutes());
                    isSet = true;
                    setNewValue();
                }
                TimePicker.this.valueChange(event);
                field.setComponentError(null);
            } catch (final InvalidValueException e) {
                field.setComponentError(new ErrorMessage() {

                    private static final long serialVersionUID = 1L;

                    @Override
                    public String getFormattedHtmlMessage() {
                        return e.getMessage();
                    }

                    @Override
                    public ErrorLevel getErrorLevel() {
                        return ErrorLevel.ERROR;
                    }
                });
            }
        }
    });
    this.replacedle = replacedle;
    CssLayout hl = new CssLayout();
    hl.addStyleName("v-component-group");
    hl.setWidth("100%");
    hl.setHeight("35");
    pickerButton = new Button();
    pickerButton.setIcon(FontAwesome.CLOCK_O);
    hl.addComponent(pickerButton);
    hl.addComponent(field);
    pickerButton.addClickListener(new ClickListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
            showPopupTimePicker();
        }
    });
    addComponent(hl);
}

7 View Complete Implementation : CustomPIPConfigurationComponent.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(false);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldClreplacedname
    textFieldClreplacedname = new TextField();
    textFieldClreplacedname.setCaption("Java Clreplacedname");
    textFieldClreplacedname.setImmediate(false);
    textFieldClreplacedname.setDescription("Java clreplacedname of the code implementing the custom PIP.");
    textFieldClreplacedname.setWidth("-1px");
    textFieldClreplacedname.setHeight("-1px");
    textFieldClreplacedname.setInputPrompt("Eg. com.foo.MyPIP");
    mainLayout.addComponent(textFieldClreplacedname);
    mainLayout.setExpandRatio(textFieldClreplacedname, 1.0f);
    // pipParameterComponent
    pipParameterComponent = new PIPParameterComponent(this.enreplacedy.getEnreplacedy());
    pipParameterComponent.setImmediate(false);
    pipParameterComponent.setWidth("-1px");
    pipParameterComponent.setHeight("-1px");
    mainLayout.addComponent(pipParameterComponent);
    return mainLayout;
}

7 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;
}

6 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;
}

6 View Complete Implementation : HyperCSVPIPConfigurationComponent.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(false);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // textFieldSource
    textFieldSource = new TextField();
    textFieldSource.setCaption("CSV Source File");
    textFieldSource.setImmediate(false);
    textFieldSource.setDescription("Path to CSV file");
    textFieldSource.setWidth("-1px");
    textFieldSource.setHeight("-1px");
    textFieldSource.setInvalidAllowed(false);
    textFieldSource.setRequired(true);
    textFieldSource.setInputPrompt("Eg. /opt/app/data.csv");
    mainLayout.addComponent(textFieldSource);
    // textFieldTarget
    textFieldTarget = new TextField();
    textFieldTarget.setCaption("Table");
    textFieldTarget.setImmediate(false);
    textFieldTarget.setDescription("Name of database table to be created.");
    textFieldTarget.setWidth("-1px");
    textFieldTarget.setHeight("-1px");
    textFieldTarget.setInvalidAllowed(false);
    textFieldTarget.setRequired(true);
    mainLayout.addComponent(textFieldTarget);
    // textFieldDefinition
    textFieldDefinition = new TextField();
    textFieldDefinition.setCaption("Table Definition");
    textFieldDefinition.setImmediate(false);
    textFieldDefinition.setDescription("SQL Table Definition");
    textFieldDefinition.setWidth("-1px");
    textFieldDefinition.setHeight("-1px");
    textFieldDefinition.setInvalidAllowed(false);
    textFieldDefinition.setRequired(true);
    mainLayout.addComponent(textFieldDefinition);
    return mainLayout;
}

5 View Complete Implementation : RegexpEditorComponent.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");
    // textFieldExpression
    textFieldExpression = new TextField();
    textFieldExpression.setCaption("Regular Expression");
    textFieldExpression.setImmediate(true);
    textFieldExpression.setDescription("Create a regular expression used to constrain attribute values.");
    textFieldExpression.setWidth("-1px");
    textFieldExpression.setHeight("-1px");
    textFieldExpression.setInvalidAllowed(false);
    textFieldExpression.setInputPrompt("eg. [a-zA-Z0-9]");
    mainLayout.addComponent(textFieldExpression);
    mainLayout.setExpandRatio(textFieldExpression, 1.0f);
    // panelTester
    panelTester = buildPanelTester();
    mainLayout.addComponent(panelTester);
    mainLayout.setExpandRatio(panelTester, 1.0f);
    return mainLayout;
}

5 View Complete Implementation : AttributeSelectionWindow.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("-1px");
    verticalLayout_2.setHeight("-1px");
    verticalLayout_2.setMargin(true);
    verticalLayout_2.setSpacing(true);
    // textFieldIssuer
    textFieldIssuer = new TextField();
    textFieldIssuer.setCaption("Issuer");
    textFieldIssuer.setImmediate(false);
    textFieldIssuer.setWidth("-1px");
    textFieldIssuer.setHeight("-1px");
    verticalLayout_2.addComponent(textFieldIssuer);
    // checkBoxMustBePresent
    checkBoxMustBePresent = new CheckBox();
    checkBoxMustBePresent.setCaption("Attribute Must Be Present");
    checkBoxMustBePresent.setImmediate(false);
    checkBoxMustBePresent.setWidth("-1px");
    checkBoxMustBePresent.setHeight("-1px");
    verticalLayout_2.addComponent(checkBoxMustBePresent);
    return verticalLayout_2;
}

5 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;
}

5 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;
}

4 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;
}

4 View Complete Implementation : AttributeSimpleCreatorComponent.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");
    // textFieldAttributeId
    textFieldAttributeId = new TextField();
    textFieldAttributeId.setCaption("Attribute Id");
    textFieldAttributeId.setImmediate(false);
    textFieldAttributeId.setWidth("100.0%");
    textFieldAttributeId.setHeight("-1px");
    textFieldAttributeId.setInvalidAllowed(false);
    textFieldAttributeId.setRequired(true);
    mainLayout.addComponent(textFieldAttributeId);
    mainLayout.setExpandRatio(textFieldAttributeId, 1.0f);
    // textFieldContextPath
    textFieldContextPath = new TextField();
    textFieldContextPath.setCaption("Context Path");
    textFieldContextPath.setImmediate(false);
    textFieldContextPath.setDescription("The Selector's Context Path.");
    textFieldContextPath.setWidth("100.0%");
    textFieldContextPath.setHeight("-1px");
    textFieldContextPath.setInputPrompt("eg. md:record/md:patient/md:patient-number/text()");
    mainLayout.addComponent(textFieldContextPath);
    mainLayout.setExpandRatio(textFieldContextPath, 1.0f);
    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);
    mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
    return mainLayout;
}

4 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;
}

4 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;
}

3 View Complete Implementation : CSVPIPConfigurationComponent.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");
    // textFieldFile
    textFieldFile = new TextField();
    textFieldFile.setCaption("Path to CSV File");
    textFieldFile.setImmediate(false);
    textFieldFile.setDescription("This is the path to CSV file on the PDP node.");
    textFieldFile.setWidth("-1px");
    textFieldFile.setHeight("-1px");
    textFieldFile.setInvalidAllowed(false);
    textFieldFile.setRequired(true);
    textFieldFile.setInputPrompt("Eg. \"c:\\data.csv\" \"http://foo.com/data.csv\"");
    mainLayout.addComponent(textFieldFile);
    mainLayout.setExpandRatio(textFieldFile, 1.0f);
    // textFieldDelimiter
    textFieldDelimiter = new TextField();
    textFieldDelimiter.setCaption("Delimiter");
    textFieldDelimiter.setImmediate(false);
    textFieldDelimiter.setDescription("Enter a separator character or string that delineates columns in each row.");
    textFieldDelimiter.setWidth("-1px");
    textFieldDelimiter.setHeight("-1px");
    textFieldDelimiter.setInputPrompt("Eg. \",\" or \"|\"");
    textFieldDelimiter.setNullSettingAllowed(true);
    mainLayout.addComponent(textFieldDelimiter);
    mainLayout.setExpandRatio(textFieldDelimiter, 1.0f);
    // textFieldQuote
    textFieldQuote = new TextField();
    textFieldQuote.setCaption("Quote");
    textFieldQuote.setImmediate(false);
    textFieldQuote.setDescription("Enter character used for quoted elements.");
    textFieldQuote.setWidth("-1px");
    textFieldQuote.setHeight("-1px");
    textFieldQuote.setInputPrompt("Eg. \" or '");
    textFieldQuote.setNullSettingAllowed(true);
    mainLayout.addComponent(textFieldQuote);
    // textFieldSkip
    textFieldSkip = new TextField();
    textFieldSkip.setCaption("Skip Lines");
    textFieldSkip.setImmediate(false);
    textFieldSkip.setDescription("Skips the number of lines at the beginning of the file.");
    textFieldSkip.setWidth("-1px");
    textFieldSkip.setHeight("-1px");
    textFieldSkip.setInputPrompt("Eg. 1 or 2");
    mainLayout.addComponent(textFieldSkip);
    return mainLayout;
}

2 View Complete Implementation : RangeEditorComponent.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);
    // comboBoxMax
    comboBoxMax = new ComboBox();
    comboBoxMax.setCaption("Maximum Type");
    comboBoxMax.setImmediate(true);
    comboBoxMax.setDescription("Select the type for the maximum.");
    comboBoxMax.setWidth("-1px");
    comboBoxMax.setHeight("-1px");
    horizontalLayout_2.addComponent(comboBoxMax);
    // textFieldMax
    textFieldMax = new TextField();
    textFieldMax.setCaption("Maximum Value");
    textFieldMax.setImmediate(true);
    textFieldMax.setDescription("Enter a value for the maxmum.");
    textFieldMax.setWidth("-1px");
    textFieldMax.setHeight("-1px");
    textFieldMax.setInvalidAllowed(false);
    textFieldMax.setInputPrompt("eg. 100");
    horizontalLayout_2.addComponent(textFieldMax);
    return horizontalLayout_2;
}

2 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;
}

2 View Complete Implementation : SearchableGrid.java
Copyright GNU General Public License v3.0
Author : rlsutton1
protected AbstractLayout buildSearchBar() {
    final VerticalLayout layout = new VerticalLayout();
    layout.setWidth(100, Unit.PERCENTAGE);
    searchField.setWidth(100, Unit.PERCENTAGE);
    searchBar = layout;
    basicSearchLayout = new HorizontalLayout();
    basicSearchLayout.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(basicSearchLayout);
    final AbstractLayout advancedSearch = buildAdvancedSearch();
    if (advancedSearch != null) {
        basicSearchLayout.addComponent(advancedSearchButton);
    }
    searchField.setInputPrompt("Search");
    searchField.setId("searchField");
    searchField.setTextChangeEventMode(TextChangeEventMode.LAZY);
    searchField.setImmediate(true);
    searchField.addTextChangeListener(new TextChangeListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void textChange(final TextChangeEvent event) {
            filterString = event.getText().trim();
            triggerFilter(filterString);
        }
    });
    // clear button
    final Button clear = createClearButton();
    basicSearchLayout.addComponent(clear);
    basicSearchLayout.setComponentAlignment(clear, Alignment.MIDDLE_LEFT);
    basicSearchLayout.addComponent(searchField);
    basicSearchLayout.setExpandRatio(searchField, 1.0f);
    return layout;
}

1 View Complete Implementation : RangeEditorComponent.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);
    // comboBoxMin
    comboBoxMin = new ComboBox();
    comboBoxMin.setCaption("Minimum Type");
    comboBoxMin.setImmediate(true);
    comboBoxMin.setDescription("Select the type for the minimum.");
    comboBoxMin.setWidth("-1px");
    comboBoxMin.setHeight("-1px");
    horizontalLayout_1.addComponent(comboBoxMin);
    // textFieldMin
    textFieldMin = new TextField();
    textFieldMin.setCaption("Minimum Value");
    textFieldMin.setImmediate(true);
    textFieldMin.setDescription("Enter a value for the minimum.");
    textFieldMin.setWidth("-1px");
    textFieldMin.setHeight("-1px");
    textFieldMin.setInvalidAllowed(false);
    textFieldMin.setInputPrompt("eg. 1");
    horizontalLayout_1.addComponent(textFieldMin);
    horizontalLayout_1.setComponentAlignment(textFieldMin, new Alignment(9));
    return horizontalLayout_1;
}

1 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;
}

1 View Complete Implementation : SampleCrudView.java
Copyright The Unlicense
Author : vaadin
public HorizontalLayout createTopBar() {
    TextField filter = new TextField();
    filter.setStyleName("filter-textfield");
    filter.setInputPrompt("Filter");
    ResetButtonForTextField.extend(filter);
    filter.setImmediate(true);
    filter.addTextChangeListener(new FieldEvents.TextChangeListener() {

        @Override
        public void textChange(FieldEvents.TextChangeEvent event) {
            grid.setFilter(event.getText());
        }
    });
    newProduct = new Button("New product");
    newProduct.addStyleName(ValoTheme.BUTTON_PRIMARY);
    newProduct.setIcon(FontAwesome.PLUS_CIRCLE);
    newProduct.addClickListener(new ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            viewLogic.newProduct();
        }
    });
    HorizontalLayout topLayout = new HorizontalLayout();
    topLayout.setSpacing(true);
    topLayout.setWidth("100%");
    topLayout.addComponent(filter);
    topLayout.addComponent(newProduct);
    topLayout.setComponentAlignment(filter, Alignment.MIDDLE_LEFT);
    topLayout.setExpandRatio(filter, 1);
    topLayout.setStyleName("top-bar");
    return topLayout;
}

0 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;
}

0 View Complete Implementation : SearchableSelectableEntityTable.java
Copyright GNU General Public License v3.0
Author : rlsutton1
protected AbstractLayout buildSearchBar() {
    VerticalLayout layout = new VerticalLayout();
    layout.setWidth(100, Unit.PERCENTAGE);
    searchField.setWidth(100, Unit.PERCENTAGE);
    searchBar = layout;
    HorizontalLayout basicSearchLayout = new HorizontalLayout();
    basicSearchLayout.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(basicSearchLayout);
    AbstractLayout advancedSearch = buildAdvancedSearch();
    if (advancedSearch != null) {
        basicSearchLayout.addComponent(advancedSearchCheckbox);
    }
    searchField.setInputPrompt("Search");
    searchField.setId("searchField");
    searchField.setTextChangeEventMode(TextChangeEventMode.LAZY);
    searchField.setImmediate(true);
    searchField.addTextChangeListener(new TextChangeListener() {

        private static final long serialVersionUID = 1L;

        @Override
        public void textChange(final TextChangeEvent event) {
            filterString = event.getText().trim();
            triggerFilter(filterString);
        }
    });
    // clear button
    Button clear = createClearButton();
    basicSearchLayout.addComponent(clear);
    basicSearchLayout.setComponentAlignment(clear, Alignment.MIDDLE_CENTER);
    basicSearchLayout.addComponent(searchField);
    basicSearchLayout.setExpandRatio(searchField, 1.0f);
    searchField.focus();
    return layout;
}

0 View Complete Implementation : AttributeAssignmentExpressionEditorWindow.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");
    // textFieldAttributeID
    textFieldAttributeID = new TextField();
    textFieldAttributeID.setCaption("Attribute replacedignment ID");
    textFieldAttributeID.setImmediate(false);
    textFieldAttributeID.setWidth("-1px");
    textFieldAttributeID.setHeight("-1px");
    textFieldAttributeID.setInvalidAllowed(false);
    textFieldAttributeID.setRequired(true);
    mainLayout.addComponent(textFieldAttributeID);
    // textFieldIssuer
    textFieldIssuer = new TextField();
    textFieldIssuer.setCaption("Issuer (Optional)");
    textFieldIssuer.setImmediate(false);
    textFieldIssuer.setWidth("-1px");
    textFieldIssuer.setHeight("-1px");
    textFieldIssuer.setNullSettingAllowed(true);
    mainLayout.addComponent(textFieldIssuer);
    // tableCategories
    tableCategories = new Table();
    tableCategories.setCaption("Category (Optional)");
    tableCategories.setImmediate(false);
    tableCategories.setWidth("100.0%");
    tableCategories.setHeight("-1px");
    mainLayout.addComponent(tableCategories);
    // 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;
}

0 View Complete Implementation : AttributeValueEditorWindow.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");
    // comboBoxDatatype
    comboBoxDatatype = new ComboBox();
    comboBoxDatatype.setCaption("Select Datatype");
    comboBoxDatatype.setImmediate(false);
    comboBoxDatatype.setWidth("-1px");
    comboBoxDatatype.setHeight("-1px");
    comboBoxDatatype.setInvalidAllowed(false);
    comboBoxDatatype.setRequired(true);
    mainLayout.addComponent(comboBoxDatatype);
    // textFieldValue
    textFieldValue = new TextField();
    textFieldValue.setCaption("Attribute Value");
    textFieldValue.setImmediate(false);
    textFieldValue.setWidth("100.0%");
    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;
}

0 View Complete Implementation : SQLPIPConfigurationComponent.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(false);
    mainLayout.setSpacing(true);
    // top-level component properties
    setWidth("-1px");
    setHeight("-1px");
    // comboBoxConnectionType
    comboBoxConnectionType = new ComboBox();
    comboBoxConnectionType.setCaption("Type of SQL Connection");
    comboBoxConnectionType.setImmediate(false);
    comboBoxConnectionType.setWidth("-1px");
    comboBoxConnectionType.setHeight("-1px");
    mainLayout.addComponent(comboBoxConnectionType);
    // textFieldDataSource
    textFieldDataSource = new TextField();
    textFieldDataSource.setCaption("Data Source");
    textFieldDataSource.setImmediate(false);
    textFieldDataSource.setWidth("-1px");
    textFieldDataSource.setHeight("-1px");
    mainLayout.addComponent(textFieldDataSource);
    mainLayout.setExpandRatio(textFieldDataSource, 1.0f);
    // comboBoxSQLDriver
    comboBoxSQLDriver = new ComboBox();
    comboBoxSQLDriver.setCaption("JDBC Driver");
    comboBoxSQLDriver.setImmediate(false);
    comboBoxSQLDriver.setWidth("-1px");
    comboBoxSQLDriver.setHeight("-1px");
    mainLayout.addComponent(comboBoxSQLDriver);
    mainLayout.setExpandRatio(comboBoxSQLDriver, 1.0f);
    // textFieldConnectionURL
    textFieldConnectionURL = new TextField();
    textFieldConnectionURL.setCaption("Connection URL");
    textFieldConnectionURL.setImmediate(false);
    textFieldConnectionURL.setWidth("-1px");
    textFieldConnectionURL.setHeight("-1px");
    mainLayout.addComponent(textFieldConnectionURL);
    mainLayout.setExpandRatio(textFieldConnectionURL, 1.0f);
    // textFieldUser
    textFieldUser = new TextField();
    textFieldUser.setCaption("User");
    textFieldUser.setImmediate(false);
    textFieldUser.setWidth("-1px");
    textFieldUser.setHeight("-1px");
    mainLayout.addComponent(textFieldUser);
    mainLayout.setExpandRatio(textFieldUser, 1.0f);
    // textFieldPreplacedword
    textFieldPreplacedword = new PreplacedwordField();
    textFieldPreplacedword.setCaption("Preplacedword");
    textFieldPreplacedword.setImmediate(false);
    textFieldPreplacedword.setWidth("-1px");
    textFieldPreplacedword.setHeight("-1px");
    mainLayout.addComponent(textFieldPreplacedword);
    mainLayout.setExpandRatio(textFieldPreplacedword, 1.0f);
    // buttonTest
    buttonTest = new Button();
    buttonTest.setCaption("Test Connection");
    buttonTest.setImmediate(true);
    buttonTest.setWidth("-1px");
    buttonTest.setHeight("-1px");
    mainLayout.addComponent(buttonTest);
    mainLayout.setComponentAlignment(buttonTest, new Alignment(48));
    return mainLayout;
}

0 View Complete Implementation : ApplyEditorWindow.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);
    // textAreaDescription
    textAreaDescription = new TextArea();
    textAreaDescription.setCaption("Enter A Description");
    textAreaDescription.setImmediate(false);
    textAreaDescription.setWidth("50.0%");
    textAreaDescription.setHeight("-1px");
    horizontalLayout_1.addComponent(textAreaDescription);
    // textFieldFilter
    textFieldFilter = new TextField();
    textFieldFilter.setCaption("Filter Function By ID");
    textFieldFilter.setImmediate(false);
    textFieldFilter.setWidth("-1px");
    textFieldFilter.setHeight("-1px");
    horizontalLayout_1.addComponent(textFieldFilter);
    horizontalLayout_1.setComponentAlignment(textFieldFilter, new Alignment(9));
    // comboBoxDatatypeFilter
    comboBoxDatatypeFilter = new ComboBox();
    comboBoxDatatypeFilter.setCaption("Filter By Data Type");
    comboBoxDatatypeFilter.setImmediate(false);
    comboBoxDatatypeFilter.setWidth("-1px");
    comboBoxDatatypeFilter.setHeight("-1px");
    horizontalLayout_1.addComponent(comboBoxDatatypeFilter);
    horizontalLayout_1.setComponentAlignment(comboBoxDatatypeFilter, new Alignment(9));
    // checkBoxFilterIsBag
    checkBoxFilterIsBag = new CheckBox();
    checkBoxFilterIsBag.setCaption("Is Bag Filter");
    checkBoxFilterIsBag.setImmediate(false);
    checkBoxFilterIsBag.setWidth("-1px");
    checkBoxFilterIsBag.setHeight("-1px");
    horizontalLayout_1.addComponent(checkBoxFilterIsBag);
    horizontalLayout_1.setComponentAlignment(checkBoxFilterIsBag, new Alignment(9));
    return horizontalLayout_1;
}

0 View Complete Implementation : VariableReferenceEditorWindow.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");
    // listSelectVariables
    listSelectVariables = new ListSelect();
    listSelectVariables.setCaption("Defined Variables");
    listSelectVariables.setImmediate(false);
    listSelectVariables.setWidth("100.0%");
    listSelectVariables.setHeight("-1px");
    mainLayout.addComponent(listSelectVariables);
    mainLayout.setExpandRatio(listSelectVariables, 1.0f);
    // textFieldVariable
    textFieldVariable = new TextField();
    textFieldVariable.setCaption("Variable");
    textFieldVariable.setImmediate(false);
    textFieldVariable.setWidth("-1px");
    textFieldVariable.setHeight("-1px");
    textFieldVariable.setInvalidAllowed(false);
    textFieldVariable.setRequired(true);
    textFieldVariable.setInputPrompt("Eg. \"12345\" or \"myVariable1\"");
    mainLayout.addComponent(textFieldVariable);
    mainLayout.setExpandRatio(textFieldVariable, 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;
}

0 View Complete Implementation : LDAPPIPConfigurationComponent.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");
    // textFieldFactory
    textFieldFactory = new TextField();
    textFieldFactory.setCaption("Initial Context Factory");
    textFieldFactory.setImmediate(false);
    textFieldFactory.setWidth("-1px");
    textFieldFactory.setHeight("-1px");
    textFieldFactory.setInvalidAllowed(false);
    textFieldFactory.setRequired(true);
    textFieldFactory.setInputPrompt("com.sun.jndi.ldap.LdapCtxFactory");
    mainLayout.addComponent(textFieldFactory);
    mainLayout.setExpandRatio(textFieldFactory, 1.0f);
    // textFieldProviderURL
    textFieldProviderURL = new TextField();
    textFieldProviderURL.setCaption("Provider URL");
    textFieldProviderURL.setImmediate(false);
    textFieldProviderURL.setWidth("-1px");
    textFieldProviderURL.setHeight("-1px");
    textFieldProviderURL.setInvalidAllowed(false);
    textFieldProviderURL.setRequired(true);
    textFieldProviderURL.setInputPrompt("Eg. ldap://localhost:389/o=JNDITutorial");
    mainLayout.addComponent(textFieldProviderURL);
    mainLayout.setExpandRatio(textFieldProviderURL, 1.0f);
    // comboBoxAuthentication
    comboBoxAuthentication = new ComboBox();
    comboBoxAuthentication.setCaption("Authentication");
    comboBoxAuthentication.setImmediate(false);
    comboBoxAuthentication.setWidth("-1px");
    comboBoxAuthentication.setHeight("-1px");
    comboBoxAuthentication.setRequired(true);
    mainLayout.addComponent(comboBoxAuthentication);
    mainLayout.setExpandRatio(comboBoxAuthentication, 1.0f);
    // textFieldPrincipal
    textFieldPrincipal = new TextField();
    textFieldPrincipal.setCaption("Principal");
    textFieldPrincipal.setImmediate(false);
    textFieldPrincipal.setWidth("-1px");
    textFieldPrincipal.setHeight("-1px");
    textFieldPrincipal.setNullSettingAllowed(true);
    mainLayout.addComponent(textFieldPrincipal);
    mainLayout.setExpandRatio(textFieldPrincipal, 1.0f);
    // textFieldCredentials
    textFieldCredentials = new TextField();
    textFieldCredentials.setCaption("Credentials");
    textFieldCredentials.setImmediate(false);
    textFieldCredentials.setWidth("-1px");
    textFieldCredentials.setHeight("-1px");
    textFieldCredentials.setNullSettingAllowed(true);
    mainLayout.addComponent(textFieldCredentials);
    mainLayout.setExpandRatio(textFieldCredentials, 1.0f);
    // textFieldScope
    textFieldScope = new TextField();
    textFieldScope.setCaption("Scope");
    textFieldScope.setImmediate(false);
    textFieldScope.setWidth("-1px");
    textFieldScope.setHeight("-1px");
    textFieldScope.setInvalidAllowed(false);
    textFieldScope.setRequired(true);
    textFieldScope.setInputPrompt("Eg. subtree");
    mainLayout.addComponent(textFieldScope);
    // buttonTest
    buttonTest = new Button();
    buttonTest.setCaption("Test Connection");
    buttonTest.setImmediate(true);
    buttonTest.setWidth("-1px");
    buttonTest.setHeight("-1px");
    mainLayout.addComponent(buttonTest);
    mainLayout.setComponentAlignment(buttonTest, new Alignment(48));
    return mainLayout;
}

0 View Complete Implementation : AdviceEditorWindow.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");
    // textFieldAdviceID
    textFieldAdviceID = new TextField();
    textFieldAdviceID.setCaption("Advice ID");
    textFieldAdviceID.setImmediate(false);
    textFieldAdviceID.setWidth("-1px");
    textFieldAdviceID.setHeight("-1px");
    textFieldAdviceID.setInvalidAllowed(false);
    textFieldAdviceID.setRequired(true);
    textFieldAdviceID.setInputPrompt("Eg. urn:com:foo:advice:sample");
    mainLayout.addComponent(textFieldAdviceID);
    // optionGroupEffect
    optionGroupEffect = new OptionGroup();
    optionGroupEffect.setCaption("Applies To");
    optionGroupEffect.setImmediate(false);
    optionGroupEffect.setWidth("-1px");
    optionGroupEffect.setHeight("-1px");
    optionGroupEffect.setInvalidAllowed(false);
    optionGroupEffect.setRequired(true);
    mainLayout.addComponent(optionGroupEffect);
    // 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;
}

0 View Complete Implementation : EditPDPWindow.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");
    // textId
    textId = new TextField();
    textId.setCaption("PDP URL");
    textId.setImmediate(false);
    textId.setDescription("The URL is the ID of the PDP");
    textId.setWidth("-1px");
    textId.setHeight("-1px");
    textId.setRequired(true);
    textId.setInputPrompt("Eg. http://localhost:8080/pdp");
    mainLayout.addComponent(textId);
    // textName
    textName = new TextField();
    textName.setCaption("PDP Name");
    textName.setImmediate(false);
    textName.setWidth("-1px");
    textName.setHeight("-1px");
    mainLayout.addComponent(textName);
    // textDescription
    textDescription = new TextArea();
    textDescription.setCaption("PDP Description");
    textDescription.setImmediate(false);
    textDescription.setWidth("100.0%");
    textDescription.setHeight("-1px");
    textDescription.setNullSettingAllowed(true);
    mainLayout.addComponent(textDescription);
    mainLayout.setExpandRatio(textDescription, 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;
}

0 View Complete Implementation : ObligationEditorWindow.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");
    // textFieldObligationID
    textFieldObligationID = new TextField();
    textFieldObligationID.setCaption("Obligation ID");
    textFieldObligationID.setImmediate(false);
    textFieldObligationID.setWidth("-1px");
    textFieldObligationID.setHeight("-1px");
    textFieldObligationID.setInvalidAllowed(false);
    textFieldObligationID.setRequired(true);
    textFieldObligationID.setInputPrompt("Eg. urn:com:foo:obligation:sample");
    mainLayout.addComponent(textFieldObligationID);
    // optionGroupFullfillOn
    optionGroupFullfillOn = new OptionGroup();
    optionGroupFullfillOn.setCaption("Fulfill On");
    optionGroupFullfillOn.setImmediate(false);
    optionGroupFullfillOn.setWidth("-1px");
    optionGroupFullfillOn.setHeight("-1px");
    optionGroupFullfillOn.setInvalidAllowed(false);
    optionGroupFullfillOn.setRequired(true);
    mainLayout.addComponent(optionGroupFullfillOn);
    // 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;
}

0 View Complete Implementation : EditPDPGroupWindow.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");
    // textName
    textName = new TextField();
    textName.setCaption("Group Name");
    textName.setImmediate(false);
    textName.setWidth("-1px");
    textName.setHeight("-1px");
    textName.setRequired(true);
    mainLayout.addComponent(textName);
    // textDescription
    textDescription = new TextArea();
    textDescription.setCaption("Group Description");
    textDescription.setImmediate(false);
    textDescription.setWidth("100.0%");
    textDescription.setHeight("-1px");
    textDescription.setNullSettingAllowed(true);
    mainLayout.addComponent(textDescription);
    mainLayout.setExpandRatio(textDescription, 1.0f);
    // tablePolicies
    tablePolicies = new Table();
    tablePolicies.setCaption("Policies");
    tablePolicies.setImmediate(false);
    tablePolicies.setWidth("-1px");
    tablePolicies.setHeight("-1px");
    mainLayout.addComponent(tablePolicies);
    mainLayout.setExpandRatio(tablePolicies, 1.0f);
    // tablePIP
    tablePIP = new Table();
    tablePIP.setCaption("PIP Configurations");
    tablePIP.setImmediate(false);
    tablePIP.setWidth("-1px");
    tablePIP.setHeight("-1px");
    mainLayout.addComponent(tablePIP);
    mainLayout.setExpandRatio(tablePIP, 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;
}

0 View Complete Implementation : PIPSQLResolverEditorWindow.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");
    // textAreaSelect
    textAreaSelect = new TextArea();
    textAreaSelect.setCaption("SQL Select Statement");
    textAreaSelect.setImmediate(false);
    textAreaSelect.setWidth("100.0%");
    textAreaSelect.setHeight("-1px");
    textAreaSelect.setInvalidAllowed(false);
    textAreaSelect.setRequired(true);
    mainLayout.addComponent(textAreaSelect);
    mainLayout.setExpandRatio(textAreaSelect, 1.0f);
    // textFieldBase
    textFieldBase = new TextField();
    textFieldBase.setCaption("Base DN");
    textFieldBase.setImmediate(false);
    textFieldBase.setWidth("-1px");
    textFieldBase.setHeight("-1px");
    mainLayout.addComponent(textFieldBase);
    // textFieldFilter
    textFieldFilter = new TextField();
    textFieldFilter.setCaption("Filter");
    textFieldFilter.setImmediate(false);
    textFieldFilter.setWidth("-1px");
    textFieldFilter.setHeight("-1px");
    mainLayout.addComponent(textFieldFilter);
    // checkBoxShortIds
    checkBoxShortIds = new CheckBox();
    checkBoxShortIds.setCaption("Display short id’s.");
    checkBoxShortIds.setImmediate(false);
    checkBoxShortIds.setWidth("-1px");
    checkBoxShortIds.setHeight("-1px");
    mainLayout.addComponent(checkBoxShortIds);
    // tableRequiredAttributes
    tableRequiredAttributes = new Table();
    tableRequiredAttributes.setCaption("Attributes Returned");
    tableRequiredAttributes.setImmediate(false);
    tableRequiredAttributes.setWidth("-1px");
    tableRequiredAttributes.setHeight("-1px");
    mainLayout.addComponent(tableRequiredAttributes);
    // tableAttributes
    tableAttributes = new Table();
    tableAttributes.setCaption("Parameters - Attributes Needed (i.e. ?)");
    tableAttributes.setImmediate(false);
    tableAttributes.setWidth("-1px");
    tableAttributes.setHeight("-1px");
    tableAttributes.setInvalidAllowed(false);
    tableAttributes.setRequired(true);
    mainLayout.addComponent(tableAttributes);
    return mainLayout;
}

0 View Complete Implementation : SignInViewImpl.java
Copyright Apache License 2.0
Author : markoradinovic
@Override
public void postConstruct() {
    super.postConstruct();
    setSizeFull();
    layout = new VerticalLayout();
    layout.setSizeFull();
    layout.setSpacing(true);
    setCompositionRoot(layout);
    caption = new Label("Sign in to Vaadin4Spring Security Demo");
    caption.addStyleName(ValoTheme.LABEL_H2);
    caption.setSizeUndefined();
    layout.addComponent(caption);
    layout.setComponentAlignment(caption, Alignment.MIDDLE_CENTER);
    loginPanel = new VerticalLayout();
    loginPanel.setSizeUndefined();
    loginPanel.setSpacing(true);
    loginPanel.setMargin(true);
    layout.addComponent(loginPanel);
    layout.setComponentAlignment(loginPanel, Alignment.MIDDLE_CENTER);
    layout.setExpandRatio(loginPanel, 1);
    errorMessage = new Label();
    errorMessage.setWidth("300px");
    errorMessage.addStyleName(ValoTheme.LABEL_FAILURE);
    errorMessage.setVisible(false);
    loginPanel.addComponent(errorMessage);
    username = new TextField("Username");
    username.setImmediate(true);
    username.setWidth("300px");
    username.setNullRepresentation("");
    username.setInputPrompt("Enter your username");
    loginPanel.addComponent(username);
    preplacedword = new PreplacedwordField("Preplacedword");
    preplacedword.setImmediate(true);
    preplacedword.setWidth("300px");
    preplacedword.setNullRepresentation("");
    loginPanel.addComponent(preplacedword);
    rememberMe = new CheckBox("Remember me");
    rememberMe.setValue(false);
    rememberMe.addStyleName(ValoTheme.CHECKBOX_LARGE);
    loginPanel.addComponent(rememberMe);
    btnLogin = new Button("Signin", FontAwesome.UNLOCK);
    btnLogin.addStyleName(ValoTheme.BUTTON_PRIMARY);
    btnLogin.addClickListener(this);
    btnLogin.setWidth("100%");
    loginPanel.addComponent(btnLogin);
    final Label infoLabel = new Label(FontAwesome.INFO_CIRCLE.getHtml() + " You can sign in as: <br/>\"user\" with preplacedword \"user\" <br/>\"admin\" with preplacedword \"admin\".", ContentMode.HTML);
    infoLabel.setWidth("300px");
    loginPanel.addComponent(infoLabel);
}

0 View Complete Implementation : MainUI.java
Copyright Apache License 2.0
Author : opensecuritycontroller
private void buildLoginForm() {
    addStyleName("login");
    this.loginLayout = new VerticalLayout();
    this.loginLayout.setSizeFull();
    this.loginLayout.addStyleName("login-layout");
    this.root.addComponent(this.loginLayout);
    final CssLayout loginPanel = new CssLayout();
    loginPanel.addStyleName("login-panel");
    HorizontalLayout labels = new HorizontalLayout();
    labels.setWidth("100%");
    labels.setMargin(true);
    labels.addStyleName("labels");
    loginPanel.addComponent(labels);
    Label product = new Label(this.server.getProductName());
    product.addStyleName("product-label-login");
    labels.addComponent(new Image(null, new ThemeResource("img/logo.png")));
    labels.addComponent(product);
    labels.setComponentAlignment(product, Alignment.MIDDLE_LEFT);
    labels.setExpandRatio(product, 1);
    HorizontalLayout fields = new HorizontalLayout();
    fields.setSpacing(true);
    fields.setMargin(true);
    fields.addStyleName("fields");
    final TextField username = new TextField("Login ID");
    username.focus();
    username.setImmediate(true);
    username.setRequired(true);
    username.setRequiredError("Login ID or Preplacedword cannot be empty");
    fields.addComponent(username);
    final PreplacedwordField preplacedword = new PreplacedwordField("Preplacedword");
    preplacedword.setRequired(true);
    preplacedword.setImmediate(true);
    preplacedword.setRequiredError("Login ID or Preplacedword cannot be empty");
    fields.addComponent(preplacedword);
    final Button login = new Button("Log In");
    login.addStyleName("default");
    fields.addComponent(login);
    fields.setComponentAlignment(login, Alignment.BOTTOM_LEFT);
    final ShortcutListener enter = new ShortcutListener("Login", KeyCode.ENTER, null) {

        @Override
        public void handleAction(Object sender, Object target) {
            login.click();
        }
    };
    login.addClickListener(new ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            try {
                username.validate();
                preplacedword.validate();
                LoginRequest request = new LoginRequest();
                request.setLoginName(username.getValue().trim());
                request.setPreplacedword(preplacedword.getValue());
                LoginResponse response = MainUI.this.loginService.dispatch(request);
                if (response != null) {
                    login.removeShortcutListener(enter);
                    if (getSession() != null) {
                        getSession().setAttribute("user", username.getValue());
                    }
                    MainUI.this.root.removeComponent(MainUI.this.loginLayout);
                    buildMainView();
                }
            } catch (EmptyValueException e) {
                ViewUtil.iscNotification(e.getMessage() + ".", Notification.Type.ERROR_MESSAGE);
                username.focus();
            } catch (Exception e) {
                username.focus();
                ViewUtil.iscNotification(e.getMessage(), Notification.Type.ERROR_MESSAGE);
            }
        }
    });
    login.addShortcutListener(enter);
    loginPanel.addComponent(fields);
    this.loginLayout.addComponent(loginPanel);
    this.loginLayout.setComponentAlignment(loginPanel, Alignment.MIDDLE_CENTER);
}

0 View Complete Implementation : PolicyNameEditorWindow.java
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private FormLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new FormLayout();
    mainLayout.setImmediate(false);
    // textFieldPolicyName
    textFieldPolicyName = new TextField();
    textFieldPolicyName.setCaption("Policy File Name");
    textFieldPolicyName.setImmediate(true);
    textFieldPolicyName.setWidth("-1px");
    textFieldPolicyName.setHeight("-1px");
    textFieldPolicyName.setInputPrompt("Enter filename eg. foobar.xml");
    textFieldPolicyName.setRequired(true);
    mainLayout.addComponent(textFieldPolicyName);
    // textAreaDescription
    textAreaDescription = new TextArea();
    textAreaDescription.setCaption("Description");
    textAreaDescription.setImmediate(false);
    textAreaDescription.setWidth("100%");
    textAreaDescription.setHeight("-1px");
    textAreaDescription.setInputPrompt("Enter a description for the Policy/PolicySet.");
    textAreaDescription.setNullSettingAllowed(true);
    mainLayout.addComponent(textAreaDescription);
    // optionPolicySet
    optionPolicySet = new OptionGroup();
    optionPolicySet.setCaption("Policy or PolicySet?");
    optionPolicySet.setImmediate(true);
    optionPolicySet.setDescription("Is the root level a Policy or Policy Set.");
    optionPolicySet.setWidth("-1px");
    optionPolicySet.setHeight("-1px");
    optionPolicySet.setRequired(true);
    mainLayout.addComponent(optionPolicySet);
    // comboAlgorithms
    comboAlgorithms = new ComboBox();
    comboAlgorithms.setCaption("Combining Algorithm");
    comboAlgorithms.setImmediate(false);
    comboAlgorithms.setDescription("Select the combining algorithm.");
    comboAlgorithms.setWidth("-1px");
    comboAlgorithms.setHeight("-1px");
    comboAlgorithms.setRequired(true);
    mainLayout.addComponent(comboAlgorithms);
    // 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;
}

0 View Complete Implementation : PolicyEditorWindow.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");
    // labelID
    labelID = new Label();
    labelID.setCaption("Policy Set ID");
    labelID.setImmediate(false);
    labelID.setWidth("100.0%");
    labelID.setHeight("-1px");
    labelID.setValue("Label");
    mainLayout.addComponent(labelID);
    // textFieldVersion
    textFieldVersion = new TextField();
    textFieldVersion.setCaption("Version");
    textFieldVersion.setImmediate(false);
    textFieldVersion.setDescription("The format is numbers only separated by decimal point.");
    textFieldVersion.setWidth("-1px");
    textFieldVersion.setHeight("-1px");
    textFieldVersion.setInvalidAllowed(false);
    textFieldVersion.setRequired(true);
    textFieldVersion.setInputPrompt("Eg. 1 or 1.0 or 1.0.0 etc.");
    mainLayout.addComponent(textFieldVersion);
    // listSelectAlgorithm
    listSelectAlgorithm = new ListSelect();
    listSelectAlgorithm.setCaption("Policy Combining Algorithm");
    listSelectAlgorithm.setImmediate(false);
    listSelectAlgorithm.setWidth("100.0%");
    listSelectAlgorithm.setHeight("-1px");
    listSelectAlgorithm.setInvalidAllowed(false);
    listSelectAlgorithm.setRequired(true);
    mainLayout.addComponent(listSelectAlgorithm);
    // textAreaDescription
    textAreaDescription = new TextArea();
    textAreaDescription.setCaption("Description");
    textAreaDescription.setImmediate(false);
    textAreaDescription.setWidth("100.0%");
    textAreaDescription.setHeight("-1px");
    mainLayout.addComponent(textAreaDescription);
    mainLayout.setExpandRatio(textAreaDescription, 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;
}