List of usage examples for com.vaadin.ui Alignment Alignment
public Alignment(int bitMask)
From source file:org.apache.openaz.xacml.admin.view.windows.GitSynchronizeWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);/* w w w . jav a2 s .com*/ mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // textAreaResults textAreaResults = new TextArea(); textAreaResults.setCaption("Synch Results"); textAreaResults.setImmediate(false); textAreaResults.setWidth("462px"); textAreaResults.setHeight("222px"); mainLayout.addComponent(textAreaResults); // buttonSynchronize buttonSynchronize = new Button(); buttonSynchronize.setCaption("Synchronize"); buttonSynchronize.setImmediate(true); buttonSynchronize.setWidth("-1px"); buttonSynchronize.setHeight("-1px"); mainLayout.addComponent(buttonSynchronize); mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.MatchEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);/*from w w w.j ava 2s . co m*/ mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // tableFunctions tableFunctions = new Table(); tableFunctions.setCaption("Function"); tableFunctions.setImmediate(true); tableFunctions.setDescription("Select a function for matching the attribute."); tableFunctions.setWidth("100.0%"); tableFunctions.setHeight("-1px"); tableFunctions.setInvalidAllowed(false); tableFunctions.setRequired(true); mainLayout.addComponent(tableFunctions); mainLayout.setExpandRatio(tableFunctions, 1.0f); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(true); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave); mainLayout.setComponentAlignment(buttonSave, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.ObligationAdviceEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);/*from w w w.ja v a 2 s . c om*/ mainLayout.setWidth("100%"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // horizontalLayout_1 horizontalLayout_1 = buildHorizontalLayout_1(); mainLayout.addComponent(horizontalLayout_1); // tableExpressions tableExpressions = new TreeTable(); tableExpressions.setCaption("Expressions"); tableExpressions.setImmediate(false); tableExpressions.setWidth("100%"); tableExpressions.setHeight("-1px"); mainLayout.addComponent(tableExpressions); mainLayout.setExpandRatio(tableExpressions, 1.0f); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(false); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave); mainLayout.setComponentAlignment(buttonSave, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.ObligationEditorWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);//from ww w.ja 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"); // 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.PDPStatusWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);/*from w ww . j ava 2 s . c o m*/ mainLayout.setWidth("100.0%"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // table table = new Table(); table.setCaption("Status"); table.setImmediate(false); table.setWidth("100.0%"); table.setHeight("-1px"); mainLayout.addComponent(table); // buttonOK buttonOK = new Button(); buttonOK.setCaption("Ok"); buttonOK.setImmediate(true); buttonOK.setWidth("-1px"); buttonOK.setHeight("-1px"); mainLayout.addComponent(buttonOK); mainLayout.setComponentAlignment(buttonOK, new Alignment(48)); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.PIPParamEditorWindow.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 . co m*/ 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.PolicyEditorWindow.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 a2 s .co m*/ 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.PolicyNameEditorWindow.java
License:Apache License
@AutoGenerated private FormLayout buildMainLayout() { // common part: create layout mainLayout = new FormLayout(); mainLayout.setImmediate(false);// ww w.ja v a2s . c o m // 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; }
From source file:org.apache.openaz.xacml.admin.view.windows.PolicyUploadWindow.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 a2 s .c o m*/ mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); // top-level component properties setWidth("-1px"); setHeight("-1px"); // upload upload = new Upload(); upload.setCaption("Upload Xacml Policy File"); upload.setImmediate(false); upload.setWidth("-1px"); upload.setHeight("-1px"); mainLayout.addComponent(upload); // checkBoxImportAttributes checkBoxImportAttributes = new CheckBox(); checkBoxImportAttributes.setCaption("Import attributes into attribute dictionary."); checkBoxImportAttributes.setImmediate(false); checkBoxImportAttributes.setWidth("-1px"); checkBoxImportAttributes.setHeight("-1px"); mainLayout.addComponent(checkBoxImportAttributes); // checkBoxIgnoreStandard checkBoxIgnoreStandard = new CheckBox(); checkBoxIgnoreStandard.setCaption("Ignore Standard Attributes"); checkBoxIgnoreStandard.setImmediate(false); checkBoxIgnoreStandard.setWidth("-1px"); checkBoxIgnoreStandard.setHeight("-1px"); mainLayout.addComponent(checkBoxIgnoreStandard); mainLayout.setComponentAlignment(checkBoxIgnoreStandard, new Alignment(20)); // checkBoxImportObligations checkBoxImportObligations = new CheckBox(); checkBoxImportObligations.setCaption("Import obligations into obligation dictionary."); checkBoxImportObligations.setImmediate(false); checkBoxImportObligations.setWidth("-1px"); checkBoxImportObligations.setHeight("-1px"); mainLayout.addComponent(checkBoxImportObligations); // checkBoxImportAdvice checkBoxImportAdvice = new CheckBox(); checkBoxImportAdvice.setCaption("Import advice into advice dictionary."); checkBoxImportAdvice.setImmediate(false); checkBoxImportAdvice.setWidth("-1px"); checkBoxImportAdvice.setHeight("-1px"); mainLayout.addComponent(checkBoxImportAdvice); return mainLayout; }
From source file:org.apache.openaz.xacml.admin.view.windows.RenamePolicyFileWindow.java
License:Apache License
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false);// www . j av a2s .c o m 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; }