Package com.vaadin.ui

Examples of com.vaadin.ui.TextField.addListener()


                m_additionalInfo.setValue("");
            }
        };

        final TextField nameField = new TextField("Name", "");
        nameField.addListener(changeListener);
        nameField.setImmediate(true);
        nameField.setWidth("100%");

        final PasswordField passwordField = new PasswordField("Password", "");
        passwordField.addListener(changeListener);
View Full Code Here


    }

    private TextField makeTextField(final String colType) {
        TextField t = new TextField(colType);

        t.addListener(new TextChangeListener() {
            SimpleStringFilter filter = null;

            public void textChange(TextChangeEvent event) {
                Filterable f = (Filterable) m_table.getContainerDataSource();
View Full Code Here

            bottomLeftCorner.addComponent(sf);
            sf.setWidth("100%");
            sf.setInputPrompt(pn);
            sf.setImmediate(true);
            bottomLeftCorner.setExpandRatio(sf, 1);
            sf.addListener(new Property.ValueChangeListener() {
                public void valueChange(ValueChangeEvent event) {
                    addressBookData.removeContainerFilters(pn);
                    if (sf.toString().length() > 0 && !pn.equals(sf.toString())) {
                        addressBookData.addContainerFilter(pn, sf.toString(),
                                true, false);
View Full Code Here

    TextField timeField = new TextField(timeCaption);
    timeField.addValidator(new RegexpValidator("(2[0-3]|[0-1]?[0-9])(:[0-5][0-9]){0,2}", timeErrorMessage));
    timeField.setImmediate(true);
    timeField.setWidth(getAdvisedWidth(timeField), Sizeable.UNITS_PIXELS);
    timeField.setNullRepresentation("");
    timeField.addListener(new ValueChangeListener() {
      @Override
      public void valueChange(Property.ValueChangeEvent event) {
        updating = true;
        updateDateWithTime((Date) dateField.getValue());
        updating = false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.