Examples of TwinColSelect


Examples of com.vaadin.ui.TwinColSelect

        s = new Select("Select with items");
        s.setId("select" + debugIdCounter++);
        createDummyData(s);
        addComponent(s);

        TwinColSelect tws = new TwinColSelect();
        tws.setId("select" + debugIdCounter++);
        createDummyData(tws);
        addComponent(tws);

        OptionGroup og = new OptionGroup();
        og.setId("select" + debugIdCounter++);
View Full Code Here

Examples of com.vaadin.ui.TwinColSelect

        return c;
    }

    /** Create new TwinColSelect and add it to current component container. */
    public TwinColSelect twincolselect() {
        TwinColSelect c = new TwinColSelect();
        c.setImmediate(true);
        add(c);
        return c;
    }
View Full Code Here

Examples of com.vaadin.ui.TwinColSelect

    /**
     * Create new TwinColSelect with given caption and add it to current
     * component container.
     */
    public TwinColSelect twincolselect(String caption) {
        TwinColSelect c = twincolselect();
        c.setCaption(caption);
        return c;
    }
View Full Code Here

Examples of com.vaadin.ui.TwinColSelect

    }

    /** Create new TwinColSelect with given caption and listener. */
    public TwinColSelect twincolselect(String caption,
            Property.ValueChangeListener changeListener) {
        TwinColSelect c = twincolselect(caption);
        c.addListener(changeListener);
        return c;
    }
View Full Code Here

Examples of com.vaadin.ui.TwinColSelect

            cityNameContainer.addBean(city.getCity());
            cityMap.put(city.getCity(), city);
        }
       
        // the select contains strings
        TwinColSelect select = new TwinColSelect(null, cityNameContainer);
        final FieldWrapper<Set> field = new CityStringSelect(select,
                Set.class);

        final ObjectProperty objectProperty = new ObjectProperty(
                new HashSet<City>());
View Full Code Here

Examples of com.vaadin.ui.TwinColSelect

                                Person.class, getPersonContainer(), "lastName");
                    } else if ("members".equals(propertyId)) {
                        // The Team bean has a Set of Person, whereas the value
                        // of a TwinColSelect here is a set of identifiers.
                        // Therefore, we need to convert between the two sets.
                        TwinColSelect select = new TwinColSelect(null,
                                getPersonContainer());
                        select.setMultiSelect(true);
                        select.setItemCaptionPropertyId("firstName");
                        field = new BeanSetFieldWrapper<Person>(select,
                                Person.class, getPersonContainer(), "lastName");
                        field.setCaption(createCaptionByPropertyId(propertyId));
                    } else {
                        field = super.createField(item, propertyId, uiContext);
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.