List of usage examples for com.vaadin.ui PasswordField PasswordField
public PasswordField()
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 . c o 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.register.info.RegisterForm.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from w w 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:uk.q3c.krail.core.view.DefaultLoginView.java
License:Apache License
@Override public void doBuild(ViewChangeBusMessage event) { super.doBuild(event); centrePanel = new Panel(); centrePanel.addStyleName(ChameleonTheme.PANEL_BUBBLE); centrePanel.setSizeUndefined();/*from w w w .j a v a 2s . c o m*/ VerticalLayout vl = new VerticalLayout(); centrePanel.setContent(vl); vl.setSpacing(true); vl.setSizeUndefined(); label = new Label(); usernameBox = new TextField(); passwordBox = new PasswordField(); demoInfoLabel = new Label("for this demo, enter any user name, and a password of 'password'"); demoInfoLabel2 = new Label( "In a real application your Shiro Realm implementation defines how to authenticate"); submitButton = new Button(); submitButton.addClickListener(this); statusMsgLabel = new Label("Please enter your username and password"); vl.addComponent(label); vl.addComponent(demoInfoLabel); vl.addComponent(demoInfoLabel2); vl.addComponent(usernameBox); vl.addComponent(passwordBox); vl.addComponent(submitButton); vl.addComponent(statusMsgLabel); setMiddleCentre(centrePanel); }