Package org.vaadin.addon.customfield.demo.data

Examples of org.vaadin.addon.customfield.demo.data.Address


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

        layout.addComponent(new Label("Custom field for editing an Address"));

        Address address = new Address("Ruukinkatu 2-4", "20540", City.TURKU);
        AddressField field = new AddressField();
        field.setValue(address);
        layout.addComponent(field);

        setCompositionRoot(layout);
View Full Code Here


        table.setSelectable(true);
        table.setImmediate(true);
        table.setNullSelectionAllowed(true);
        table.addContainerProperty("Name", String.class, null);
        table.addListener(getTableValueChangeListener());
        Address address = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Address address2 = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Person person = new Person("Teppo", "Testaaja", new Date(100000000l),
                address);
        Person person2 = new Person("Taina", "Testaaja", new Date(200000000l),
                address2);
        Item item = table.addItem(person);
View Full Code Here

    @Override
    public void setInternalValue(Object newValue) throws ReadOnlyException,
            ConversionException {
        // create the address if not given
        Address address = (newValue instanceof Address) ? (Address) newValue
                : new Address();

        super.setInternalValue(address);

        // set item data source and visible properties in a single operation to
        // avoid creating fields multiple times
View Full Code Here

TOP

Related Classes of org.vaadin.addon.customfield.demo.data.Address

Copyright © 2018 www.massapicom. 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.