Example usage for com.vaadin.ui Alignment Alignment

List of usage examples for com.vaadin.ui Alignment Alignment

Introduction

In this page you can find the example usage for com.vaadin.ui Alignment Alignment.

Prototype

public Alignment(int bitMask) 

Source Link

Usage

From source file:org.apache.openaz.xacml.admin.view.components.AttributeDictionarySelectorComponent.java

License:Apache License

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

From source file:org.apache.openaz.xacml.admin.view.components.EnumerationEditorComponent.java

License:Apache License

@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//from   w  w  w .ja  v  a 2  s.  c o  m
    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;
}

From source file:org.apache.openaz.xacml.admin.view.components.LDAPPIPConfigurationComponent.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);/*from   ww  w  .ja v a 2 s  .  co  m*/
    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;
}

From source file:org.apache.openaz.xacml.admin.view.components.RangeEditorComponent.java

License:Apache License

@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);//  w w  w  .j  a  v a2  s.co m
    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;
}

From source file:org.apache.openaz.xacml.admin.view.components.RangeEditorComponent.java

License:Apache License

@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);//  www  .j  a v a 2  s.  co  m
    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;
}

From source file:org.apache.openaz.xacml.admin.view.components.RegexpEditorComponent.java

License:Apache License

@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);/*from  ww w  .  j  a  v a  2s. c o  m*/

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

From source file:org.apache.openaz.xacml.admin.view.components.SQLPIPConfigurationComponent.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);//from  ww w  . ja va 2s.  c  o m
    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);

    // textFieldPassword
    textFieldPassword = new PasswordField();
    textFieldPassword.setCaption("Password");
    textFieldPassword.setImmediate(false);
    textFieldPassword.setWidth("-1px");
    textFieldPassword.setHeight("-1px");
    mainLayout.addComponent(textFieldPassword);
    mainLayout.setExpandRatio(textFieldPassword, 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;
}

From source file:org.apache.openaz.xacml.admin.view.windows.AdviceEditorWindow.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);// ww w  . ja va2  s.  c o  m
    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;
}

From source file:org.apache.openaz.xacml.admin.view.windows.ApplyEditorWindow.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);//from www . j  av a 2  s.c o  m
    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;
}

From source file:org.apache.openaz.xacml.admin.view.windows.ApplyEditorWindow.java

License:Apache License

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