Package com.vaadin.ui

Examples of com.vaadin.ui.ComboBox.select()


                    com.vaadin.data.Property.ValueChangeEvent event) {
                setPageLength(Integer.valueOf(String.valueOf(event
                        .getProperty().getValue())));
            }
        });
        itemsPerPageSelect.select("25");
        Label pageLabel = new Label("Page: ", Label.CONTENT_XHTML);
        final TextField currentPageTextField = new TextField();
        currentPageTextField.setValue(String.valueOf(getCurrentPage()));
        currentPageTextField.addValidator(new IntegerValidator(null));
        Label separatorLabel = new Label(" / ", Label.CONTENT_XHTML);
View Full Code Here


    value = arg;
    ComboBox editor = (ComboBox)field;
    if (!editor.containsId(arg))
      editor.unselect(editor.getValue());
    else
      editor.select(arg)
  }
 
  @Override
  public void doUpdate(DataConnector data) {
View Full Code Here

        ComboBox combo = new ComboBox("Normal");
        combo.setInputPrompt("You can type here");
        combo.setContainerDataSource(ValoThemeUI.generateContainer(200, false));
        combo.setNullSelectionAllowed(false);
        combo.select(combo.getItemIds().iterator().next());
        combo.setItemCaptionPropertyId(ValoThemeUI.CAPTION_PROPERTY);
        combo.setItemIconPropertyId(ValoThemeUI.ICON_PROPERTY);
        combo.setItemIcon(combo.getItemIds().iterator().next(),
                new ThemeResource("../runo/icons/16/document.png"));
        row.addComponent(combo);
View Full Code Here

        combo = new ComboBox();
        combo.setInputPrompt("You can type here");
        combo.setContainerDataSource(ValoThemeUI.generateContainer(200, false));
        combo.setNullSelectionAllowed(false);
        combo.select(combo.getItemIds().iterator().next());
        combo.setItemCaptionPropertyId(ValoThemeUI.CAPTION_PROPERTY);
        combo.setItemIconPropertyId(ValoThemeUI.ICON_PROPERTY);
        combo.setWidth("240px");
        group.addComponent(combo);
        Button today = new Button("Do It");
View Full Code Here

        combo.addItem("Option One");
        combo.addItem("Option Two");
        combo.addItem("Option Three");
        combo.setTextInputAllowed(false);
        combo.setNullSelectionAllowed(false);
        combo.select("Option One");
        row.addComponent(combo);

        combo = new ComboBox("Error");
        combo.setInputPrompt("You can type here");
        combo.addItem("Option One");
View Full Code Here

        combo.setInputPrompt("You can type here");
        combo.addItem("Option One");
        combo.addItem("Option Two");
        combo.addItem("Option Three");
        combo.setNullSelectionAllowed(false);
        combo.select("Option One");
        combo.setComponentError(new UserError("Fix it, now!"));
        row.addComponent(combo);

        combo = new ComboBox("Error, borderless");
        combo.setInputPrompt("You can type here");
View Full Code Here

        combo.setInputPrompt("You can type here");
        combo.addItem("Option One");
        combo.addItem("Option Two");
        combo.addItem("Option Three");
        combo.setNullSelectionAllowed(false);
        combo.select("Option One");
        combo.setComponentError(new UserError("Fix it, now!"));
        combo.addStyleName("borderless");
        row.addComponent(combo);

        combo = new ComboBox("Disabled");
View Full Code Here

    } catch (Exception e) {
      // Don't do anything. Will be an empty dropdown.
    }
   
    if (taskGroups != null) {
      groupComboBox.select(taskGroups);
    }
   
    newItem.getItemProperty(ID_GROUPS).setValue(groupComboBox);

    // description
View Full Code Here

    } catch(Exception e) {
      // Don't do anything. Will be an empty dropdown.
    }
   
    if (taskAssignee != null) {
      assigneeComboBox.select(taskAssignee);
    }
   
    newItem.getItemProperty(ID_ASSIGNEE).setValue(assigneeComboBox);
   
    // groups
View Full Code Here

        ComboBox comboBox = new ComboBox(null, Arrays.asList(
                i18nManager.getMessage(Messages.TASK_ROLE_CONTRIBUTOR),
                i18nManager.getMessage(Messages.TASK_ROLE_IMPLEMENTER),
                i18nManager.getMessage(Messages.TASK_ROLE_MANAGER),
                i18nManager.getMessage(Messages.TASK_ROLE_SPONSOR)));
        comboBox.select(i18nManager.getMessage(Messages.TASK_ROLE_CONTRIBUTOR));
        comboBox.setNewItemsAllowed(true);
        item.getItemProperty("role").setValue(comboBox);
      }
    }
  }
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.