List of usage examples for com.vaadin.ui Alignment Alignment
public Alignment(int bitMask)
From source file:org.apache.openaz.xacml.admin.view.windows.RuleEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);// w ww .j a va 2 s . co m mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // labelRuleID labelRuleID = new Label(); labelRuleID.setCaption("Rule ID"); labelRuleID.setImmediate(false); labelRuleID.setWidth("100.0%"); labelRuleID.setHeight("-1px"); labelRuleID.setValue("Label"); mainLayout.addComponent(labelRuleID); mainLayout.setExpandRatio(labelRuleID, 1.0f); // optionGroupEffect optionGroupEffect = new OptionGroup(); optionGroupEffect.setCaption("Choose the effect."); optionGroupEffect.setImmediate(false); optionGroupEffect.setWidth("-1px"); optionGroupEffect.setHeight("-1px"); optionGroupEffect.setInvalidAllowed(false); optionGroupEffect.setRequired(true); mainLayout.addComponent(optionGroupEffect); // textAreaDescription textAreaDescription = new TextArea(); textAreaDescription.setCaption("Enter a description for the Rule."); textAreaDescription.setImmediate(false); textAreaDescription.setWidth("100.0%"); textAreaDescription.setHeight("-1px"); textAreaDescription.setNullSettingAllowed(true); textAreaDescription.setNullRepresentation(""); 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.SelectPDPGroupWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//w ww. jav 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"); // listSelectPDPGroup listSelectPDPGroup = new ListSelect(); listSelectPDPGroup.setImmediate(false); listSelectPDPGroup.setWidth("-1px"); listSelectPDPGroup.setHeight("-1px"); listSelectPDPGroup.setInvalidAllowed(false); listSelectPDPGroup.setRequired(true); mainLayout.addComponent(listSelectPDPGroup); mainLayout.setExpandRatio(listSelectPDPGroup, 1.0f); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(true); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave); mainLayout.setComponentAlignment(buttonSave, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.SelectPIPConfigurationWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);/*from w ww . j a v a 2 s . c om*/ mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // table table = new Table(); table.setCaption("PIP Configurations"); table.setImmediate(false); table.setWidth("-1px"); table.setHeight("-1px"); mainLayout.addComponent(table); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(false); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave); mainLayout.setComponentAlignment(buttonSave, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.SelectWorkspacePoliciesWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//from w ww . j av a2s . co m mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // treeWorkspace treeWorkspace = new TreeTable(); treeWorkspace.setCaption("Select Policy(s) for PDP Group"); treeWorkspace.setImmediate(true); treeWorkspace.setWidth("100.0%"); treeWorkspace.setHeight("-1px"); mainLayout.addComponent(treeWorkspace); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(false); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave); mainLayout.setComponentAlignment(buttonSave, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.SubDomainEditorWindow.java
License:Apache License
@AutoGenerated private FormLayout buildMainLayout() { // common part: create layout mainLayout = new FormLayout(); mainLayout.setImmediate(false);/* ww w .ja v a2 s . c om*/ 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.VariableDefinitionEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//ww w . j a v a2s . co m 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.VariableReferenceEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//from ww w . j a va 2 s . co m 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; }
From source file:org.apache.openaz.xacml.admin.XacmlAdminConsole.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);// w ww . jav a 2 s .c o m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); mainLayout.setMargin(true); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // horizontalLayout_1 horizontalLayout_1 = buildHorizontalLayout_1(); mainLayout.addComponent(horizontalLayout_1); // tabSheet tabSheet = new TabSheet(); tabSheet.setImmediate(false); tabSheet.setWidth("100.0%"); tabSheet.setHeight("100.0%"); mainLayout.addComponent(tabSheet); mainLayout.setExpandRatio(tabSheet, 1.0f); // labelCopyright labelCopyright = new Label(); labelCopyright.setImmediate(false); labelCopyright.setWidth("-1px"); labelCopyright.setHeight("40px"); labelCopyright.setValue( "<center>Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</center>"); mainLayout.addComponent(labelCopyright); mainLayout.setComponentAlignment(labelCopyright, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.XacmlAdminConsole.java
License:Apache License
@AutoGenerated private HorizontalLayout buildHorizontalLayout_1() { // common part: create layout horizontalLayout_1 = new HorizontalLayout(); horizontalLayout_1.setImmediate(false); horizontalLayout_1.setWidth("100.0%"); horizontalLayout_1.setHeight("40px"); horizontalLayout_1.setMargin(false); // embedded_1 embedded_1 = new Embedded(); embedded_1.setImmediate(false);// www. jav a 2 s. com embedded_1.setWidth("30px"); embedded_1.setHeight("30px"); embedded_1.setSource(new ThemeResource("img/att.png")); embedded_1.setType(1); embedded_1.setMimeType("image/png"); horizontalLayout_1.addComponent(embedded_1); horizontalLayout_1.setComponentAlignment(embedded_1, new Alignment(33)); // caption caption = new Label(); caption.setImmediate(false); caption.setWidth("-1px"); caption.setHeight("-1px"); caption.setValue("Apache OpenAZ Admin Console"); horizontalLayout_1.addComponent(caption); horizontalLayout_1.setExpandRatio(caption, 1.0f); horizontalLayout_1.setComponentAlignment(caption, new Alignment(33)); // labelWelcome labelWelcome = new Label(); labelWelcome.setImmediate(false); labelWelcome.setWidth("-1px"); labelWelcome.setHeight("40px"); labelWelcome.setValue("Label"); horizontalLayout_1.addComponent(labelWelcome); horizontalLayout_1.setComponentAlignment(labelWelcome, new Alignment(34)); return horizontalLayout_1; }
From source file:org.apache.openaz.xacml.admin.XacmlErrorHandler.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//ww w . ja v a 2 s. co m mainLayout.setWidth("100%"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("100.0%"); setHeight("-1px"); // labelError labelError = new Label(); labelError.setImmediate(false); labelError.setWidth("100.0%"); labelError.setHeight("80px"); labelError.setValue("This holds error messages."); mainLayout.addComponent(labelError); // buttonGo buttonGo = new Button(); buttonGo.setCaption("Ok"); buttonGo.setImmediate(true); buttonGo.setWidth("-1px"); buttonGo.setHeight("-1px"); mainLayout.addComponent(buttonGo); mainLayout.setComponentAlignment(buttonGo, new Alignment(48)); return mainLayout; }