Package com.vaadin.ui

Examples of com.vaadin.ui.ListSelect


        return c;
    }

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


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

    }

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

    protected AbstractSelect createCompatibleSelect(
            Class<? extends AbstractSelect> fieldType) {
        AbstractSelect select;
        if (fieldType.isAssignableFrom(ListSelect.class)) {
            select = new ListSelect();
            select.setMultiSelect(false);
        } else if (fieldType.isAssignableFrom(NativeSelect.class)) {
            select = new NativeSelect();
        } else if (fieldType.isAssignableFrom(OptionGroup.class)) {
            select = new OptionGroup();
View Full Code Here

    this.i18NSource = i18NSource;
    buildDialogLayout();
  }

  private void buildDialogLayout() {
    itemSelect = new ListSelect();
    itemSelect.setWidth("100%");
    itemSelect.setNullSelectionAllowed(false);
    itemSelect.setMultiSelect(true);
    itemSelect.setContainerDataSource(new BeanItemContainer<ItemType>(itemClass));
    itemSelect.setRows(10);
View Full Code Here

    protected AbstractSelect createCompatibleSelect(
            Class<? extends AbstractSelect> fieldType) {
        AbstractSelect select;
        if (fieldType.isAssignableFrom(ListSelect.class)) {
            select = new ListSelect();
            select.setMultiSelect(false);
        } else if (fieldType.isAssignableFrom(NativeSelect.class)) {
            select = new NativeSelect();
        } else if (fieldType.isAssignableFrom(OptionGroup.class)) {
            select = new OptionGroup();
View Full Code Here

TOP

Related Classes of com.vaadin.ui.ListSelect

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.