Java Code Examples for com.vaadin.ui.VerticalLayout#setHeight()
The following examples show how to use
com.vaadin.ui.VerticalLayout#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: RangeEditorComponent.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); 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; }
Example 2
Source File: PIPCustomResolverEditorWindow.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(false); // top-level component properties setWidth("-1px"); setHeight("-1px"); return mainLayout; }
Example 3
Source File: Box.java From jdal with Apache License 2.0 | 5 votes |
/** * @return new VerticalLayout */ public static VerticalLayout createVerticalBox() { VerticalLayout vl = new VerticalLayout(); vl.setHeight(100, Unit.PERCENTAGE); return vl; }
Example 4
Source File: ExpressionEditorWindow.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"); // comboBox comboBox = new ComboBox(); comboBox.setImmediate(false); comboBox.setWidth("-1px"); comboBox.setHeight("-1px"); mainLayout.addComponent(comboBox); // treeExpression treeExpression = new Tree(); treeExpression.setImmediate(false); treeExpression.setWidth("100.0%"); treeExpression.setHeight("-1px"); mainLayout.addComponent(treeExpression); mainLayout.setExpandRatio(treeExpression, 1.0f); return mainLayout; }
Example 5
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 6
Source File: ServiceDescDetail.java From primecloud-controller with GNU General Public License v2.0 | 5 votes |
@Override public void attach() { addStyleName(Reindeer.PANEL_LIGHT); setHeight("100%"); HorizontalLayout layout = new HorizontalLayout(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(true); layout.setSpacing(true); layout.addStyleName("service-desc-detail"); setContent(layout); VerticalLayout leftLayout = new VerticalLayout(); leftLayout.setMargin(false); leftLayout.setSpacing(false); leftLayout.setWidth("250px"); leftLayout.setHeight("100%"); left = new DetailInfoOpe(); left.setWidth("250px"); leftLayout.addComponent(left); leftLayout.setExpandRatio(left, 1.0f); layout.addComponent(leftLayout); right = new DetailParameters(); right.setWidth("100%"); right.setHeight("100%"); layout.addComponent(right); layout.setExpandRatio(right, 100); }
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: 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 9
Source File: ApplyEditorWindow.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); // 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; }
Example 10
Source File: ObligationAdviceEditorWindow.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); // 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; }
Example 11
Source File: ServerDescBasic.java From primecloud-controller with GNU General Public License v2.0 | 4 votes |
@Override public void attach() { setHeight("100%"); addStyleName(Reindeer.PANEL_LIGHT); VerticalLayout layout = (VerticalLayout) getContent(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(true); layout.setSpacing(false); layout.addStyleName("server-desc-basic"); HorizontalLayout layout2 = new HorizontalLayout(); layout2.setWidth("100%"); layout2.setHeight("100%"); layout2.setMargin(true); layout2.setSpacing(true); layout2.addStyleName("server-desc-basic"); // サーバ基本情報 left = new BasicInfo(); left.setWidth("100%"); layout2.addComponent(left); // 表同士の間隔をあける Label padding = new Label(" "); padding.setWidth("7px"); padding.setHeight("99%"); padding.addStyleName("desc-padding"); layout2.addComponent(padding); Label padding2 = new Label(""); padding2.setWidth("1px"); layout2.addComponent(padding2); // 割り当てサービス String enableService = Config.getProperty("ui.enableService"); if (enableService == null || BooleanUtils.toBoolean(enableService)) { right = new AttachService(); right.setHeight("100%"); right.setWidth("100%"); layout2.addComponent(right); } layout2.setExpandRatio(left, 40); if (right != null) { layout2.setExpandRatio(right, 60); } else { VerticalLayout dummyLayout = new VerticalLayout(); dummyLayout.setSizeFull(); layout2.addComponent(dummyLayout); layout2.setExpandRatio(dummyLayout, 60); } layout.addComponent(layout2); layout.setExpandRatio(layout2, 1.0f); }
Example 12
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; }
Example 13
Source File: AttributeSimpleCreatorComponent.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"); // textFieldAttributeId textFieldAttributeId = new TextField(); textFieldAttributeId.setCaption("Attribute Id"); textFieldAttributeId.setImmediate(false); textFieldAttributeId.setWidth("100.0%"); textFieldAttributeId.setHeight("-1px"); textFieldAttributeId.setInvalidAllowed(false); textFieldAttributeId.setRequired(true); mainLayout.addComponent(textFieldAttributeId); mainLayout.setExpandRatio(textFieldAttributeId, 1.0f); // textFieldContextPath textFieldContextPath = new TextField(); textFieldContextPath.setCaption("Context Path"); textFieldContextPath.setImmediate(false); textFieldContextPath.setDescription("The Selector's Context Path."); textFieldContextPath.setWidth("100.0%"); textFieldContextPath.setHeight("-1px"); textFieldContextPath .setInputPrompt("eg. md:record/md:patient/md:patient-number/text()"); mainLayout.addComponent(textFieldContextPath); mainLayout.setExpandRatio(textFieldContextPath, 1.0f); // horizontalLayout_1 horizontalLayout_1 = buildHorizontalLayout_1(); mainLayout.addComponent(horizontalLayout_1); mainLayout.setExpandRatio(horizontalLayout_1, 1.0f); return mainLayout; }
Example 14
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 15
Source File: HyperCSVPIPConfigurationComponent.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(false); // top-level component properties setWidth("-1px"); setHeight("-1px"); // textFieldSource textFieldSource = new TextField(); textFieldSource.setCaption("CSV Source File"); textFieldSource.setImmediate(false); textFieldSource.setDescription("Path to CSV file"); textFieldSource.setWidth("-1px"); textFieldSource.setHeight("-1px"); textFieldSource.setInvalidAllowed(false); textFieldSource.setRequired(true); textFieldSource.setInputPrompt("Eg. /opt/app/data.csv"); mainLayout.addComponent(textFieldSource); // textFieldTarget textFieldTarget = new TextField(); textFieldTarget.setCaption("Table"); textFieldTarget.setImmediate(false); textFieldTarget.setDescription("Name of database table to be created."); textFieldTarget.setWidth("-1px"); textFieldTarget.setHeight("-1px"); textFieldTarget.setInvalidAllowed(false); textFieldTarget.setRequired(true); mainLayout.addComponent(textFieldTarget); // textFieldDefinition textFieldDefinition = new TextField(); textFieldDefinition.setCaption("Table Definition"); textFieldDefinition.setImmediate(false); textFieldDefinition.setDescription("SQL Table Definition"); textFieldDefinition.setWidth("-1px"); textFieldDefinition.setHeight("-1px"); textFieldDefinition.setInvalidAllowed(false); textFieldDefinition.setRequired(true); mainLayout.addComponent(textFieldDefinition); return mainLayout; }
Example 16
Source File: PolicyEditorWindow.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"); // 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; }
Example 17
Source File: LoadBalancerDescBasic.java From primecloud-controller with GNU General Public License v2.0 | 4 votes |
@Override public void attach() { addStyleName(Reindeer.PANEL_LIGHT); setHeight("100%"); HorizontalLayout layout = new HorizontalLayout(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(true); layout.setSpacing(true); layout.addStyleName("loadbalancer-desc-basic"); setContent(layout); // ロードバランサ基本情報 basicInfo = new BasicInfo(); basicInfo.setWidth("100%"); layout.addComponent(basicInfo); // 表同士の間隔をあける Label padding = new Label(" "); padding.setWidth("7px"); padding.setHeight("99%"); padding.addStyleName("desc-padding"); layout.addComponent(padding); Label padding2 = new Label(""); padding2.setWidth("1px"); layout.addComponent(padding2); // ロードバランサリスナ一覧 VerticalLayout rightLayout = new VerticalLayout(); rightLayout.setWidth("100%"); rightLayout.setHeight("100%"); rightLayout.setMargin(false); rightLayout.setSpacing(false); attachServiceTable = new AttachServiceTable(); attachServiceTable.setWidth("100%"); rightLayout.addComponent(attachServiceTable); loadBalancerOpe = new LoadbalancerServiceOperation(); rightLayout.addComponent(loadBalancerOpe); rightLayout.setExpandRatio(attachServiceTable, 100); layout.addComponent(rightLayout); layout.setExpandRatio(basicInfo, 43); layout.setExpandRatio(rightLayout, 57); }
Example 18
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 19
Source File: PIPSQLResolverEditorWindow.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"); // textAreaSelect textAreaSelect = new TextArea(); textAreaSelect.setCaption("SQL Select Statement"); textAreaSelect.setImmediate(false); textAreaSelect.setWidth("100.0%"); textAreaSelect.setHeight("-1px"); textAreaSelect.setInvalidAllowed(false); textAreaSelect.setRequired(true); mainLayout.addComponent(textAreaSelect); mainLayout.setExpandRatio(textAreaSelect, 1.0f); // textFieldBase textFieldBase = new TextField(); textFieldBase.setCaption("Base DN"); textFieldBase.setImmediate(false); textFieldBase.setWidth("-1px"); textFieldBase.setHeight("-1px"); mainLayout.addComponent(textFieldBase); // textFieldFilter textFieldFilter = new TextField(); textFieldFilter.setCaption("Filter"); textFieldFilter.setImmediate(false); textFieldFilter.setWidth("-1px"); textFieldFilter.setHeight("-1px"); mainLayout.addComponent(textFieldFilter); // checkBoxShortIds checkBoxShortIds = new CheckBox(); checkBoxShortIds.setCaption("Display short id’s."); checkBoxShortIds.setImmediate(false); checkBoxShortIds.setWidth("-1px"); checkBoxShortIds.setHeight("-1px"); mainLayout.addComponent(checkBoxShortIds); // tableRequiredAttributes tableRequiredAttributes = new Table(); tableRequiredAttributes.setCaption("Attributes Returned"); tableRequiredAttributes.setImmediate(false); tableRequiredAttributes.setWidth("-1px"); tableRequiredAttributes.setHeight("-1px"); mainLayout.addComponent(tableRequiredAttributes); // tableAttributes tableAttributes = new Table(); tableAttributes.setCaption("Parameters - Attributes Needed (i.e. ?)"); tableAttributes.setImmediate(false); tableAttributes.setWidth("-1px"); tableAttributes.setHeight("-1px"); tableAttributes.setInvalidAllowed(false); tableAttributes.setRequired(true); mainLayout.addComponent(tableAttributes); return mainLayout; }
Example 20
Source File: AbstractView.java From cia with Apache License 2.0 | 3 votes |
/** * Creates the full size vertical layout. * * @param margin * the margin * @param spacing * the spacing * @return the vertical layout */ private static VerticalLayout createFullSizeVerticalLayout(final boolean margin, final boolean spacing) { final VerticalLayout layout = new VerticalLayout(); layout.setMargin(margin); layout.setSpacing(spacing); layout.setWidth(100, Unit.PERCENTAGE); layout.setHeight(100, Unit.PERCENTAGE); return layout; }