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.windows.AttributeAssignmentExpressionEditorWindow.java

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);//from w  w  w .j a  v  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");

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

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

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);/*from ww w . 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");

    // textAreaComments
    textAreaComments = new TextArea();
    textAreaComments.setCaption("Add Comments");
    textAreaComments.setImmediate(false);
    textAreaComments.setDescription(
            "Enter comments that reflect the changes you have made to the repository domains and/or policy files.");
    textAreaComments.setWidth("400px");
    textAreaComments.setHeight("-1px");
    textAreaComments.setInvalidAllowed(false);
    textAreaComments.setRequired(true);
    textAreaComments.setInputPrompt("Eg. Add new rule for employees in marketing department.");
    mainLayout.addComponent(textAreaComments);

    // tableChanges
    tableChanges = new Table();
    tableChanges.setCaption("Changes To Be Pushed");
    tableChanges.setImmediate(false);
    tableChanges.setWidth("100.0%");
    tableChanges.setHeight("-1px");
    mainLayout.addComponent(tableChanges);
    mainLayout.setExpandRatio(tableChanges, 1.0f);

    // buttonPush
    buttonPush = new Button();
    buttonPush.setCaption("Push Changes");
    buttonPush.setImmediate(true);
    buttonPush.setWidth("-1px");
    buttonPush.setHeight("-1px");
    mainLayout.addComponent(buttonPush);
    mainLayout.setComponentAlignment(buttonPush, new Alignment(48));

    return mainLayout;
}