Java Code Examples for com.vaadin.ui.Button#setHeight()
The following examples show how to use
com.vaadin.ui.Button#setHeight() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PolicyWorkspace.java From XACML with MIT License | 6 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayoutRightToolbar() { // common part: create layout horizontalLayoutRightToolbar = new HorizontalLayout(); horizontalLayoutRightToolbar.setImmediate(false); horizontalLayoutRightToolbar.setWidth("100.0%"); horizontalLayoutRightToolbar.setHeight("-1px"); horizontalLayoutRightToolbar.setMargin(false); horizontalLayoutRightToolbar.setSpacing(true); // buttonRight buttonRight = new Button(); buttonRight.setCaption(">>"); buttonRight.setImmediate(true); buttonRight.setDescription("Restore left panel."); buttonRight.setWidth("-1px"); buttonRight.setHeight("-1px"); horizontalLayoutRightToolbar.addComponent(buttonRight); return horizontalLayoutRightToolbar; }
Example 2
Source File: AttributeSelectionWindow.java From XACML with MIT License | 5 votes |
@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"); // 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; }
Example 3
Source File: RegexpEditorComponent.java From XACML with MIT License | 5 votes |
@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; }
Example 4
Source File: SelectWorkspacePoliciesWindow.java From XACML with MIT License | 5 votes |
@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"); // 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; }
Example 5
Source File: OaExpressionsEditorComponent.java From XACML with MIT License | 5 votes |
@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 buttonadd = new Button(); buttonadd.setCaption("Add"); buttonadd.setImmediate(true); buttonadd.setWidth("-1px"); buttonadd.setHeight("-1px"); horizontalLayout_1.addComponent(buttonadd); // buttonRemove buttonRemove = new Button(); buttonRemove.setCaption("Remove"); buttonRemove.setImmediate(true); buttonRemove.setDescription("Remove selected expression(s)."); buttonRemove.setWidth("-1px"); buttonRemove.setHeight("-1px"); horizontalLayout_1.addComponent(buttonRemove); return horizontalLayout_1; }
Example 6
Source File: PolicyWorkspace.java From XACML with MIT License | 5 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayoutLeftToolbarLeft() { // common part: create layout horizontalLayoutLeftToolbarLeft = new HorizontalLayout(); horizontalLayoutLeftToolbarLeft.setImmediate(false); horizontalLayoutLeftToolbarLeft.setWidth("-1px"); horizontalLayoutLeftToolbarLeft.setHeight("-1px"); horizontalLayoutLeftToolbarLeft.setMargin(false); horizontalLayoutLeftToolbarLeft.setSpacing(true); // buttonSynchronize buttonSynchronize = new Button(); buttonSynchronize.setCaption("Synchronize Repository"); buttonSynchronize.setImmediate(true); buttonSynchronize .setDescription("Synchronize local repository with main branch."); buttonSynchronize.setWidth("-1px"); buttonSynchronize.setHeight("-1px"); horizontalLayoutLeftToolbarLeft.addComponent(buttonSynchronize); // buttonExport buttonExport = new Button(); buttonExport.setCaption("Export Workspace"); buttonExport.setImmediate(true); buttonExport.setDescription("Export your workspace to your local drive."); buttonExport.setWidth("-1px"); buttonExport.setHeight("-1px"); horizontalLayoutLeftToolbarLeft.addComponent(buttonExport); return horizontalLayoutLeftToolbarLeft; }
Example 7
Source File: XacmlErrorHandler.java From XACML with MIT License | 5 votes |
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false); 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; }
Example 8
Source File: PDPManagement.java From XACML with MIT License | 5 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayoutToolbar() { // common part: create layout horizontalLayoutToolbar = new HorizontalLayout(); horizontalLayoutToolbar.setImmediate(false); horizontalLayoutToolbar.setWidth("-1px"); horizontalLayoutToolbar.setHeight("-1px"); horizontalLayoutToolbar.setMargin(true); horizontalLayoutToolbar.setSpacing(true); // buttonCreate buttonCreate = new Button(); buttonCreate.setCaption("Create Group"); buttonCreate.setImmediate(false); buttonCreate.setWidth("-1px"); buttonCreate.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonCreate); // buttonRemove buttonRemove = new Button(); buttonRemove.setCaption("Remove Group"); buttonRemove.setImmediate(false); buttonRemove.setWidth("-1px"); buttonRemove.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonRemove); return horizontalLayoutToolbar; }
Example 9
Source File: ObligationAdviceEditorWindow.java From XACML with MIT License | 5 votes |
@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 buttonAdd = new Button(); buttonAdd.setCaption("Add Expression"); buttonAdd.setImmediate(false); buttonAdd.setWidth("-1px"); buttonAdd.setHeight("-1px"); horizontalLayout_1.addComponent(buttonAdd); // buttonRemove buttonRemove = new Button(); buttonRemove.setCaption("Remove Expression"); buttonRemove.setImmediate(false); buttonRemove.setWidth("-1px"); buttonRemove.setHeight("-1px"); horizontalLayout_1.addComponent(buttonRemove); // buttonClear buttonClear = new Button(); buttonClear.setCaption("Clear Expressions"); buttonClear.setImmediate(false); buttonClear.setWidth("-1px"); buttonClear.setHeight("-1px"); horizontalLayout_1.addComponent(buttonClear); return horizontalLayout_1; }
Example 10
Source File: ExpressionBuilderComponent.java From XACML with MIT License | 5 votes |
@AutoGenerated private VerticalLayout buildMainLayout() { // common part: create layout mainLayout = new VerticalLayout(); mainLayout.setImmediate(false); 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; }
Example 11
Source File: VariableDefinitionEditorWindow.java From XACML with MIT License | 5 votes |
@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; }
Example 12
Source File: PolicyNameEditorWindow.java From XACML with MIT License | 4 votes |
@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; }
Example 13
Source File: RuleEditorWindow.java From XACML with MIT License | 4 votes |
@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"); // 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; }
Example 14
Source File: VariableReferenceEditorWindow.java From XACML with MIT License | 4 votes |
@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; }
Example 15
Source File: EditPDPWindow.java From XACML with MIT License | 4 votes |
@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; }
Example 16
Source File: PolicyEditor.java From XACML with MIT License | 4 votes |
@AutoGenerated private HorizontalLayout buildHorizontalLayoutToolbar() { // common part: create layout horizontalLayoutToolbar = new HorizontalLayout(); horizontalLayoutToolbar.setImmediate(false); horizontalLayoutToolbar.setWidth("-1px"); horizontalLayoutToolbar.setHeight("-1px"); horizontalLayoutToolbar.setMargin(true); horizontalLayoutToolbar.setSpacing(true); // checkBoxReadOnly checkBoxReadOnly = new CheckBox(); checkBoxReadOnly.setCaption("Read Only"); checkBoxReadOnly.setImmediate(false); checkBoxReadOnly .setDescription("Check this to turn-off policy editing."); checkBoxReadOnly.setWidth("-1px"); checkBoxReadOnly.setHeight("-1px"); horizontalLayoutToolbar.addComponent(checkBoxReadOnly); // checkBoxAutoSave checkBoxAutoSave = new CheckBox(); checkBoxAutoSave.setCaption("Auto Save"); checkBoxAutoSave.setImmediate(false); checkBoxAutoSave .setDescription("Check this to turn-on automatic saving of policy when a change occurs."); checkBoxAutoSave.setWidth("-1px"); checkBoxAutoSave.setHeight("-1px"); horizontalLayoutToolbar.addComponent(checkBoxAutoSave); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(true); buttonSave.setDescription("Click to save the policy."); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonSave); // buttonViewXML buttonViewXML = new Button(); buttonViewXML.setCaption("View XML"); buttonViewXML.setImmediate(true); buttonViewXML.setWidth("-1px"); buttonViewXML.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonViewXML); // buttonExport buttonExport = new Button(); buttonExport.setCaption("Export Policy"); buttonExport.setImmediate(false); buttonExport.setWidth("-1px"); buttonExport.setHeight("-1px"); horizontalLayoutToolbar.addComponent(buttonExport); return horizontalLayoutToolbar; }
Example 17
Source File: PIPParamEditorWindow.java From XACML with MIT License | 4 votes |
@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; }
Example 18
Source File: EnumerationEditorComponent.java From XACML with MIT License | 4 votes |
@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 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; }
Example 19
Source File: ObligationEditorWindow.java From XACML with MIT License | 4 votes |
@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; }
Example 20
Source File: GitPushWindow.java From XACML with MIT License | 4 votes |
@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"); // 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; }