List of usage examples for com.vaadin.ui AbsoluteLayout AbsoluteLayout
public AbsoluteLayout()
From source file:songstock.web.extensions.payments.creditcard.CreditCardForm.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from w w w . j av a 2 s. co m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelCreditCardInformation labelCreditCardInformation = new Label(); labelCreditCardInformation.setImmediate(false); labelCreditCardInformation.setWidth("-1px"); labelCreditCardInformation.setHeight("-1px"); labelCreditCardInformation.setValue("<b>Credit Card Information:</b>"); labelCreditCardInformation.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelCreditCardInformation, "top:62.0px;left:21.0px;"); // labelNumber labelNumber = new Label(); labelNumber.setImmediate(false); labelNumber.setWidth("-1px"); labelNumber.setHeight("-1px"); labelNumber.setValue("Card Number:"); mainLayout.addComponent(labelNumber, "top:142.0px;left:21.0px;"); // labelCardholder labelCardholder = new Label(); labelCardholder.setImmediate(false); labelCardholder.setWidth("-1px"); labelCardholder.setHeight("-1px"); labelCardholder.setValue("Cardholder Name:"); mainLayout.addComponent(labelCardholder, "top:180.0px;left:20.0px;"); // labelExpirationDate labelExpirationDate = new Label(); labelExpirationDate.setImmediate(false); labelExpirationDate.setWidth("-1px"); labelExpirationDate.setHeight("-1px"); labelExpirationDate.setValue("Expiration Date:"); mainLayout.addComponent(labelExpirationDate, "top:242.0px;left:21.0px;"); // labelVerificationCode labelVerificationCode = new Label(); labelVerificationCode.setImmediate(false); labelVerificationCode.setWidth("-1px"); labelVerificationCode.setHeight("-1px"); labelVerificationCode.setValue("Verification Code:"); mainLayout.addComponent(labelVerificationCode, "top:282.0px;left:20.0px;"); // labelAddress labelAddress = new Label(); labelAddress.setImmediate(false); labelAddress.setWidth("-1px"); labelAddress.setHeight("-1px"); labelAddress.setValue("Address:"); mainLayout.addComponent(labelAddress, "top:100.0px;left:440.0px;"); // labelZipCode labelZipCode = new Label(); labelZipCode.setImmediate(false); labelZipCode.setWidth("-1px"); labelZipCode.setHeight("-1px"); labelZipCode.setValue("Zip Code:"); mainLayout.addComponent(labelZipCode, "top:142.0px;left:440.0px;"); // labelCity labelCity = new Label(); labelCity.setImmediate(false); labelCity.setWidth("-1px"); labelCity.setHeight("-1px"); labelCity.setValue("City:"); mainLayout.addComponent(labelCity, "top:180.0px;left:440.0px;"); // labelState labelState = new Label(); labelState.setImmediate(false); labelState.setWidth("-1px"); labelState.setHeight("-1px"); labelState.setValue("State:"); mainLayout.addComponent(labelState, "top:220.0px;left:440.0px;"); // labelCountry labelCountry = new Label(); labelCountry.setImmediate(false); labelCountry.setWidth("-1px"); labelCountry.setHeight("-1px"); labelCountry.setValue("Country:"); mainLayout.addComponent(labelCountry, "top:260.0px;left:440.0px;"); // labelPhoneNumber labelPhoneNumber = new Label(); labelPhoneNumber.setImmediate(false); labelPhoneNumber.setWidth("-1px"); labelPhoneNumber.setHeight("-1px"); labelPhoneNumber.setValue("Phone Number:"); mainLayout.addComponent(labelPhoneNumber, "top:300.0px;left:440.0px;"); // textFieldCardNumber textFieldCardNumber = new TextField(); textFieldCardNumber.setImmediate(false); textFieldCardNumber.setWidth("260px"); textFieldCardNumber.setHeight("-1px"); mainLayout.addComponent(textFieldCardNumber, "top:140.0px;left:140.0px;"); // textFieldCardholder textFieldCardholder = new TextField(); textFieldCardholder.setImmediate(false); textFieldCardholder.setWidth("260px"); textFieldCardholder.setHeight("-1px"); mainLayout.addComponent(textFieldCardholder, "top:176.0px;left:140.0px;"); // textFieldCardVerificationCode textFieldCardVerificationCode = new PasswordField(); textFieldCardVerificationCode.setImmediate(false); textFieldCardVerificationCode.setWidth("100px"); textFieldCardVerificationCode.setHeight("-1px"); mainLayout.addComponent(textFieldCardVerificationCode, "top:280.0px;left:140.0px;"); // textFieldBillingAddress textFieldBillingAddress = new TextField(); textFieldBillingAddress.setImmediate(false); textFieldBillingAddress.setWidth("260px"); textFieldBillingAddress.setHeight("-1px"); mainLayout.addComponent(textFieldBillingAddress, "top:96.0px;left:540.0px;"); // textFieldZipCode textFieldZipCode = new TextField(); textFieldZipCode.setImmediate(false); textFieldZipCode.setWidth("260px"); textFieldZipCode.setHeight("-1px"); mainLayout.addComponent(textFieldZipCode, "top:140.0px;left:540.0px;"); // textFieldCity textFieldCity = new TextField(); textFieldCity.setImmediate(false); textFieldCity.setWidth("260px"); textFieldCity.setHeight("-1px"); mainLayout.addComponent(textFieldCity, "top:176.0px;left:540.0px;"); // textFieldState textFieldState = new TextField(); textFieldState.setImmediate(false); textFieldState.setWidth("260px"); textFieldState.setHeight("-1px"); mainLayout.addComponent(textFieldState, "top:218.0px;left:540.0px;"); // textFieldPhoneNumber textFieldPhoneNumber = new TextField(); textFieldPhoneNumber.setImmediate(false); textFieldPhoneNumber.setWidth("260px"); textFieldPhoneNumber.setHeight("-1px"); mainLayout.addComponent(textFieldPhoneNumber, "top:296.0px;left:540.0px;"); // buttonPay buttonPay = new Button(); buttonPay.setCaption("Continue with payment"); buttonPay.setImmediate(true); buttonPay.setWidth("-1px"); buttonPay.setHeight("-1px"); mainLayout.addComponent(buttonPay, "top:20.0px;left:21.0px;"); // labelError labelError = new Label(); labelError.setImmediate(false); labelError.setWidth("-1px"); labelError.setHeight("-1px"); labelError.setValue("<i>Label</i>"); labelError.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelError, "top:22.0px;left:200.0px;"); // comboBoxExpirationDateMonth comboBoxExpirationDateMonth = new ComboBox(); comboBoxExpirationDateMonth.setCaption("Month"); comboBoxExpirationDateMonth.setImmediate(false); comboBoxExpirationDateMonth.setWidth("120px"); comboBoxExpirationDateMonth.setHeight("-1px"); mainLayout.addComponent(comboBoxExpirationDateMonth, "top:240.0px;left:140.0px;"); // comboBoxExpirationDateYear comboBoxExpirationDateYear = new ComboBox(); comboBoxExpirationDateYear.setCaption("Year"); comboBoxExpirationDateYear.setImmediate(false); comboBoxExpirationDateYear.setWidth("120px"); comboBoxExpirationDateYear.setHeight("-1px"); mainLayout.addComponent(comboBoxExpirationDateYear, "top:240.0px;left:280.0px;"); // labelBillingAddressInformation labelBillingAddressInformation = new Label(); labelBillingAddressInformation.setImmediate(false); labelBillingAddressInformation.setWidth("-1px"); labelBillingAddressInformation.setHeight("-1px"); labelBillingAddressInformation.setValue("<b>Billing Address:</b>"); labelBillingAddressInformation.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelBillingAddressInformation, "top:62.0px;left:440.0px;"); // labelCardBrand labelCardBrand = new Label(); labelCardBrand.setImmediate(false); labelCardBrand.setWidth("-1px"); labelCardBrand.setHeight("-1px"); labelCardBrand.setValue("Card Brand:"); mainLayout.addComponent(labelCardBrand, "top:100.0px;left:20.0px;"); // comboBoxCountry comboBoxCountry = new ComboBox(); comboBoxCountry.setImmediate(false); comboBoxCountry.setWidth("260px"); comboBoxCountry.setHeight("-1px"); mainLayout.addComponent(comboBoxCountry, "top:256.0px;left:540.0px;"); // comboBoxCardBrand comboBoxCardBrand = new ComboBox(); comboBoxCardBrand.setImmediate(false); comboBoxCardBrand.setWidth("260px"); comboBoxCardBrand.setHeight("-1px"); mainLayout.addComponent(comboBoxCardBrand, "top:96.0px;left:140.0px;"); return mainLayout; }
From source file:songstock.web.extensions.payments.PaymentMethodsPanel.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);// ww w. j a va 2 s . c o m mainLayout.setWidth("100%"); mainLayout.setHeight("60px"); // top-level component properties setWidth("100.0%"); setHeight("60px"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Payment With:</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:5px;left:0px;"); return mainLayout; }
From source file:songstock.web.extensions.payments.PaymentView.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/* w ww. j av a 2 s . c o m*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Payment</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // tableItems tableItems = new Table(); tableItems.setImmediate(false); tableItems.setWidth("100.0%"); tableItems.setHeight("180px"); mainLayout.addComponent(tableItems, "top:140.0px;right:20.0px;left:20.0px;"); // labelTotal labelTotal = new Label(); labelTotal.setImmediate(false); labelTotal.setWidth("-1px"); labelTotal.setHeight("-1px"); labelTotal.setValue("Total: $"); mainLayout.addComponent(labelTotal, "top:60.0px;left:20.0px;"); // labelTotalValue labelTotalValue = new Label(); labelTotalValue.setImmediate(false); labelTotalValue.setWidth("-1px"); labelTotalValue.setHeight("-1px"); labelTotalValue.setValue("Label"); mainLayout.addComponent(labelTotalValue, "top:60.0px;left:68.0px;"); // labelItems labelItems = new Label(); labelItems.setImmediate(false); labelItems.setWidth("-1px"); labelItems.setHeight("-1px"); labelItems.setValue("<b>Items</b>"); labelItems.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelItems, "top:100.0px;left:20.0px;"); // labelAdditionalCharges labelAdditionalCharges = new Label(); labelAdditionalCharges.setImmediate(false); labelAdditionalCharges.setWidth("-1px"); labelAdditionalCharges.setHeight("-1px"); labelAdditionalCharges.setValue("<b>Additional Charges</b>"); labelAdditionalCharges.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelAdditionalCharges, "top:360.0px;left:20.0px;"); // tableAdditionalCharges tableAdditionalCharges = new Table(); tableAdditionalCharges.setImmediate(false); tableAdditionalCharges.setWidth("100.0%"); tableAdditionalCharges.setHeight("60px"); mainLayout.addComponent(tableAdditionalCharges, "top:400.0px;right:20.0px;left:20.0px;"); // paymentMethodsPanel paymentMethodsPanel = new PaymentMethodsPanel(); paymentMethodsPanel.setImmediate(false); mainLayout.addComponent(paymentMethodsPanel, "top:60.0px;left:200.0px;"); return mainLayout; }
From source file:songstock.web.extensions.purchasehistory.PurchaseHistoryView.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from w w w . j a v a2 s. c o m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Purchase History</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // tablePurchaseHistory tablePurchaseHistory = new Table(); tablePurchaseHistory.setImmediate(false); tablePurchaseHistory.setWidth("100.0%"); tablePurchaseHistory.setHeight("100.0%"); mainLayout.addComponent(tablePurchaseHistory, "top:60.0px;right:20.0px;bottom:20.0px;left:20.0px;"); return mainLayout; }
From source file:songstock.web.extensions.register.addresses.AddressesListView.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);// w w w .j a v a 2 s .co m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Addresses</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // tableAddresses tableAddresses = new Table(); tableAddresses.setImmediate(false); tableAddresses.setWidth("100.0%"); tableAddresses.setHeight("120px"); mainLayout.addComponent(tableAddresses, "top:100.0px;right:20.0px;left:20.0px;"); // buttonAddAddress buttonAddAddress = new Button(); buttonAddAddress.setCaption("Add Address"); buttonAddAddress.setImmediate(false); buttonAddAddress.setWidth("-1px"); buttonAddAddress.setHeight("-1px"); mainLayout.addComponent(buttonAddAddress, "top:60.0px;left:20.0px;"); // buttonUpdateAddress buttonUpdateAddress = new Button(); buttonUpdateAddress.setCaption("Update Address"); buttonUpdateAddress.setImmediate(false); buttonUpdateAddress.setWidth("-1px"); buttonUpdateAddress.setHeight("-1px"); mainLayout.addComponent(buttonUpdateAddress, "top:60.0px;left:140.0px;"); // buttonRemoveAddress buttonRemoveAddress = new Button(); buttonRemoveAddress.setCaption("Remove Address"); buttonRemoveAddress.setImmediate(false); buttonRemoveAddress.setWidth("-1px"); buttonRemoveAddress.setHeight("-1px"); mainLayout.addComponent(buttonRemoveAddress, "top:60.0px;left:280.0px;"); return mainLayout; }
From source file:songstock.web.extensions.register.addresses.AddressForm.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//ww w . j a v a 2 s . co m mainLayout.setWidth("100.0%"); mainLayout.setHeight("100.0%"); // top-level component properties setWidth("400px"); setHeight("150px"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Type Address</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // textFieldAddress textFieldAddress = new TextField(); textFieldAddress.setImmediate(false); textFieldAddress.setWidth("100.0%"); textFieldAddress.setHeight("-1px"); mainLayout.addComponent(textFieldAddress, "top:60.0px;right:20.0px;left:20.0px;"); // buttonSave buttonSave = new Button(); buttonSave.setCaption("Save"); buttonSave.setImmediate(false); buttonSave.setWidth("-1px"); buttonSave.setHeight("-1px"); mainLayout.addComponent(buttonSave, "top:100.0px;left:20.0px;"); return mainLayout; }
From source file:songstock.web.extensions.register.info.RegisterForm.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*ww w . j ava 2s .co m*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // textFieldName textFieldName = new TextField(); textFieldName.setImmediate(false); textFieldName.setWidth("220px"); textFieldName.setHeight("-1px"); mainLayout.addComponent(textFieldName, "top:60.0px;left:160.0px;"); // textFieldEmail textFieldEmail = new TextField(); textFieldEmail.setImmediate(false); textFieldEmail.setWidth("220px"); textFieldEmail.setHeight("-1px"); mainLayout.addComponent(textFieldEmail, "top:102.0px;left:160.0px;"); // passwordField1 passwordField1 = new PasswordField(); passwordField1.setImmediate(false); passwordField1.setWidth("220px"); passwordField1.setHeight("-1px"); mainLayout.addComponent(passwordField1, "top:142.0px;left:160.0px;"); // passwordField2 passwordField2 = new PasswordField(); passwordField2.setImmediate(false); passwordField2.setWidth("220px"); passwordField2.setHeight("-1px"); mainLayout.addComponent(passwordField2, "top:182.0px;left:160.0px;"); // passwordField3 passwordField3 = new PasswordField(); passwordField3.setImmediate(false); passwordField3.setVisible(false); passwordField3.setWidth("220px"); passwordField3.setHeight("-1px"); mainLayout.addComponent(passwordField3, "top:222.0px;left:160.0px;"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Register Form</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // labelName labelName = new Label(); labelName.setImmediate(false); labelName.setWidth("-1px"); labelName.setHeight("-1px"); labelName.setValue("Name:"); mainLayout.addComponent(labelName, "top:60.0px;left:20.0px;"); // labelEmail labelEmail = new Label(); labelEmail.setImmediate(false); labelEmail.setWidth("-1px"); labelEmail.setHeight("-1px"); labelEmail.setValue("Email:"); mainLayout.addComponent(labelEmail, "top:100.0px;left:20.0px;"); // labelPassword labelPassword = new Label(); labelPassword.setImmediate(false); labelPassword.setWidth("-1px"); labelPassword.setHeight("-1px"); labelPassword.setValue("Password:"); mainLayout.addComponent(labelPassword, "top:142.0px;left:20.0px;"); // labelConfirmPassword labelConfirmPassword = new Label(); labelConfirmPassword.setImmediate(false); labelConfirmPassword.setWidth("-1px"); labelConfirmPassword.setHeight("-1px"); labelConfirmPassword.setValue("Confirm Password:"); mainLayout.addComponent(labelConfirmPassword, "top:182.0px;left:20.0px;"); // labelConfirmNewPassword labelConfirmNewPassword = new Label(); labelConfirmNewPassword.setImmediate(false); labelConfirmNewPassword.setVisible(false); labelConfirmNewPassword.setWidth("-1px"); labelConfirmNewPassword.setHeight("-1px"); labelConfirmNewPassword.setValue("Confirm New Password:"); mainLayout.addComponent(labelConfirmNewPassword, "top:222.0px;left:20.0px;"); // labelError labelError = new Label(); labelError.setImmediate(false); labelError.setWidth("-1px"); labelError.setHeight("-1px"); labelError.setValue("<i>Label</i>"); labelError.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelError, "top:300.0px;left:20.0px;"); // buttonRegister buttonRegister = new Button(); buttonRegister.setCaption(ACTION_REGISTER); buttonRegister.setImmediate(true); buttonRegister.setWidth("-1px"); buttonRegister.setHeight("-1px"); mainLayout.addComponent(buttonRegister, "top:260.0px;left:153.0px;"); // buttonClear buttonClear = new Button(); buttonClear.setCaption("Clear"); buttonClear.setImmediate(true); buttonClear.setWidth("-1px"); buttonClear.setHeight("-1px"); mainLayout.addComponent(buttonClear, "top:260.0px;left:243.0px;"); // buttonLogin buttonLogin = new Button(); buttonLogin.setCaption("Login"); buttonLogin.setImmediate(true); buttonLogin.setWidth("-1px"); buttonLogin.setHeight("-1px"); mainLayout.addComponent(buttonLogin, "top:260.0px;left:319.0px;"); return mainLayout; }
From source file:songstock.web.extensions.searching.basic.BasicResultsView.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from w w w . j a va 2s .co m*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelAlbums labelAlbums = new Label(); labelAlbums.setImmediate(false); labelAlbums.setWidth("-1px"); labelAlbums.setHeight("-1px"); labelAlbums.setValue("<b>Albums</b>"); labelAlbums.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelAlbums, "top:20.0px;left:20.0px;"); // labelSongs labelSongs = new Label(); labelSongs.setImmediate(false); labelSongs.setWidth("-1px"); labelSongs.setHeight("-1px"); labelSongs.setValue("<b>Songs</b>"); labelSongs.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelSongs, "top:280.0px;left:20.0px;"); // tableAlbums tableAlbums = new Table(); tableAlbums.setImmediate(false); tableAlbums.setWidth("100.0%"); tableAlbums.setHeight("200px"); mainLayout.addComponent(tableAlbums, "top:60.0px;right:20.0px;left:20.0px;"); // tableSongs tableSongs = new Table(); tableSongs.setImmediate(false); tableSongs.setWidth("100.0%"); tableSongs.setHeight("200px"); mainLayout.addComponent(tableSongs, "top:320.0px;right:20.0px;left:20.0px;"); return mainLayout; }
From source file:songstock.web.extensions.searching.basic.BasicSearchForm.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/* ww w. ja va2 s . com*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Search Catalog</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // textFieldQuery textFieldQuery = new TextField(); textFieldQuery.setImmediate(false); textFieldQuery.setWidth("380px"); textFieldQuery.setHeight("-1px"); mainLayout.addComponent(textFieldQuery, "top:60.0px;left:20.0px;"); // buttonSearch buttonSearch = new Button(); buttonSearch.setCaption("Search"); buttonSearch.setImmediate(false); buttonSearch.setWidth("-1px"); buttonSearch.setHeight("-1px"); mainLayout.addComponent(buttonSearch, "top:100.0px;left:20.0px;"); // labelError labelError = new Label(); labelError.setImmediate(false); labelError.setWidth("-1px"); labelError.setHeight("-1px"); labelError.setValue("<i>Label</i>"); labelError.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelError, "top:104.0px;left:100.0px;"); return mainLayout; }
From source file:songstock.web.extensions.shoppingcart.ShoppingCartView.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from www. ja va 2 s . c om*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // labelTitle labelTitle = new Label(); labelTitle.setImmediate(false); labelTitle.setWidth("-1px"); labelTitle.setHeight("-1px"); labelTitle.setValue("<b>Shopping Cart</b>"); labelTitle.setContentMode(com.vaadin.shared.ui.label.ContentMode.HTML); mainLayout.addComponent(labelTitle, "top:20.0px;left:20.0px;"); // tableShoppingCartItems tableShoppingCartItems = new Table(); tableShoppingCartItems.setImmediate(false); tableShoppingCartItems.setWidth("100.0%"); tableShoppingCartItems.setHeight("100.0%"); mainLayout.addComponent(tableShoppingCartItems, "top:100.0px;right:20.0px;bottom:20.0px;left:20.0px;"); // buttonEmpty buttonEmpty = new Button(); buttonEmpty.setCaption("Empty"); buttonEmpty.setImmediate(true); buttonEmpty.setWidth("-1px"); buttonEmpty.setHeight("-1px"); mainLayout.addComponent(buttonEmpty, "top:60.0px;left:20.0px;"); // buttonCheckout buttonCheckout = new Button(); buttonCheckout.setCaption("Checkout"); buttonCheckout.setImmediate(true); buttonCheckout.setWidth("-1px"); buttonCheckout.setHeight("-1px"); mainLayout.addComponent(buttonCheckout, "top:60.0px;left:100.0px;"); // labelTotal labelTotal = new Label(); labelTotal.setImmediate(false); labelTotal.setWidth("-1px"); labelTotal.setHeight("-1px"); labelTotal.setValue("Total: $"); mainLayout.addComponent(labelTotal, "top:62.0px;left:200.0px;"); // labelTotalValue labelTotalValue = new Label(); labelTotalValue.setImmediate(false); labelTotalValue.setWidth("-1px"); labelTotalValue.setHeight("-1px"); labelTotalValue.setValue("Label"); mainLayout.addComponent(labelTotalValue, "top:62.0px;left:244.0px;"); // labelItemCount labelItemCount = new Label(); labelItemCount.setImmediate(false); labelItemCount.setWidth("-1px"); labelItemCount.setHeight("-1px"); labelItemCount.setValue("Items:"); mainLayout.addComponent(labelItemCount, "top:62.0px;left:360.0px;"); // labelItemCountValue labelItemCountValue = new Label(); labelItemCountValue.setImmediate(false); labelItemCountValue.setWidth("-1px"); labelItemCountValue.setHeight("-1px"); labelItemCountValue.setValue("Label"); mainLayout.addComponent(labelItemCountValue, "top:62.0px;left:400.0px;"); return mainLayout; }