Examples of CityField


Examples of org.vaadin.addon.customfield.demo.field.CityField

        layout = new VerticalLayout();
        layout.setMargin(true);

        layout.addComponent(new Label("Custom field for selecting a city"));

        final CityField field = new CityField();
        field.setImmediate(true);
        layout.addComponent(field);

        field.addListener(new ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                Object value = event.getProperty().getValue();
                if (value instanceof City) {
                    layout.getWindow().showNotification(
                            "The selected city is " + value + ".");
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.