Package com.vaadin.ui

Examples of com.vaadin.ui.AbstractSelect$CaptionChangeListener


      grid.addComponent(searchComponent, 0, 1);
    }
  }
 
  protected void addSelectComponent() {
    AbstractSelect select = createSelectComponent();
    grid.addComponent(select, 0, 2);
  }
View Full Code Here


      grid.addComponent(searchComponent, 0, 1);
    }
  }
 
  protected void addSelectComponent() {
    AbstractSelect select = createSelectComponent();
    if (select != null) {
      grid.addComponent(select, 0, 2);
    }
  }
View Full Code Here

    }

    private <T extends Field> T createEnumField(Class<?> type,
            Class<T> fieldType) {
        if (AbstractSelect.class.isAssignableFrom(fieldType)) {
            AbstractSelect s = createCompatibleSelect((Class<? extends AbstractSelect>) fieldType);
            populateWithEnumData(s, (Class<? extends Enum>) type);
            return (T) s;
        }

        return null;
View Full Code Here

        return null;
    }

    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();
            select.setMultiSelect(false);
        } else if (fieldType.isAssignableFrom(Table.class)) {
            Table t = new Table();
            t.setSelectable(true);
            select = t;
        } else {
            select = new ComboBox(null);
        }
        select.setImmediate(true);
        select.setNullSelectionAllowed(false);

        return select;
    }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.AbstractSelect$CaptionChangeListener

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.