Examples of NativeSelect


Examples of com.vaadin.ui.NativeSelect

    selectLayout.setSpacing(true);
    selectLayout.setMargin(true);
    selectLayout.setWidth(50, UNITS_PERCENTAGE);
    addDetailComponent(selectLayout);
   
    definitionSelect = new NativeSelect(i18nManager.getMessage(Messages.DEPLOYMENT_HEADER_DEFINITIONS));
    definitionSelect.setImmediate(true);
    for (ProcessDefinition definition : definitionList) {
      definitionSelect.addItem(definition.getId());
      definitionSelect.setItemCaption(definition.getId(), definition.getName());
    }
View Full Code Here

Examples of com.vaadin.ui.NativeSelect

            @Override
            public Field createField(Item item, Object propertyId, Component uiContext) {
          Field field = super.createField(item, propertyId, uiContext);

          if ("process".equalsIgnoreCase(propertyId.toString())) {
              NativeSelect select = new NativeSelect();
              Collection<ProcessDefinitionConfig> processes = ctx.getProcessDefinitionDAO().getActiveConfigurations();
              BeanItemContainer<ProcessDefinitionConfig> ds = new BeanItemContainer<ProcessDefinitionConfig>(ProcessDefinitionConfig.class);
              ds.addAll(processes);
              select.setContainerDataSource(ds);
              select.setItemCaptionPropertyId("description");
              select.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);
              select.setNullSelectionAllowed(false);
              select.setRequired(true);
              select.setPropertyDataSource(item.getItemProperty(propertyId));
              field = select;
          }
          else if ("name".equalsIgnoreCase(propertyId.toString())) {
            TextField text = new TextField();
            text.setNullRepresentation("");
View Full Code Here

Examples of com.vaadin.ui.NativeSelect

        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();
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.