Package com.vaadin.ui

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


        setContent(layout);

        final FormLayout formLayout = new FormLayout();

        final ComboBox combo = new ComboBox("Item:");
        combo.addItem("Item 1");
        combo.addItem("Item 2");
        combo.addItem("Item 3");
        combo.addItem("Item 4");
        combo.addValueChangeListener(new MyValueChangeListener());
        combo.setImmediate(true);
View Full Code Here


        final FormLayout formLayout = new FormLayout();

        final ComboBox combo = new ComboBox("Item:");
        combo.addItem("Item 1");
        combo.addItem("Item 2");
        combo.addItem("Item 3");
        combo.addItem("Item 4");
        combo.addValueChangeListener(new MyValueChangeListener());
        combo.setImmediate(true);
View Full Code Here

        final FormLayout formLayout = new FormLayout();

        final ComboBox combo = new ComboBox("Item:");
        combo.addItem("Item 1");
        combo.addItem("Item 2");
        combo.addItem("Item 3");
        combo.addItem("Item 4");
        combo.addValueChangeListener(new MyValueChangeListener());
        combo.setImmediate(true);

        Button btn1 = new Button("Click me");
View Full Code Here

        final ComboBox combo = new ComboBox("Item:");
        combo.addItem("Item 1");
        combo.addItem("Item 2");
        combo.addItem("Item 3");
        combo.addItem("Item 4");
        combo.addValueChangeListener(new MyValueChangeListener());
        combo.setImmediate(true);

        Button btn1 = new Button("Click me");
        btn1.addClickListener(new Button.ClickListener() {
View Full Code Here

                                "Select first ANTIGUA AND BARBUDA from the first combobox. Then select ANTIGUA AND BARBUDA from the second combobox. Finally, click the popup button on the first combobox. Before fix you would see UA AND BAR in the field."));

        ComboBox combobox = new ComboBox("Text input enabled:");
        combobox.setWidth("100px");

        combobox.addItem("AMERICAN SAMOA");
        combobox.addItem("ANTIGUA AND BARBUDA");

        ComboBox combobox2 = new ComboBox("Text input disabled:");
        combobox2.setWidth("100px");
        combobox2.setTextInputAllowed(false);
View Full Code Here

        ComboBox combobox = new ComboBox("Text input enabled:");
        combobox.setWidth("100px");

        combobox.addItem("AMERICAN SAMOA");
        combobox.addItem("ANTIGUA AND BARBUDA");

        ComboBox combobox2 = new ComboBox("Text input disabled:");
        combobox2.setWidth("100px");
        combobox2.setTextInputAllowed(false);
View Full Code Here

        ComboBox combobox2 = new ComboBox("Text input disabled:");
        combobox2.setWidth("100px");
        combobox2.setTextInputAllowed(false);

        combobox2.addItem("AMERICAN SAMOA");
        combobox2.addItem("ANTIGUA AND BARBUDA");

        getLayout().addComponent(combobox);
        getLayout().addComponent(combobox2);
    }
View Full Code Here

        ComboBox combobox2 = new ComboBox("Text input disabled:");
        combobox2.setWidth("100px");
        combobox2.setTextInputAllowed(false);

        combobox2.addItem("AMERICAN SAMOA");
        combobox2.addItem("ANTIGUA AND BARBUDA");

        getLayout().addComponent(combobox);
        getLayout().addComponent(combobox2);
    }
View Full Code Here

        componentContainerSelect.setNullSelectionAllowed(false);
        // componentContainer.addContainerProperty(CAPTION, String.class, "");
        // componentContainer.addContainerProperty(CLASS, Class.class, "");

        for (Class<? extends HasComponents> cls : getComponentContainers()) {
            componentContainerSelect.addItem(cls);
        }
        componentContainerSelect.addListener(new ValueChangeListener() {

            @Override
            @SuppressWarnings("unchecked")
View Full Code Here

        setContent(root);

        ComboBox combo = new ComboBox();
        combo.setImmediate(true);
        root.addComponent(combo);
        combo.addItem("Hello World");
        combo.addItem("Please click on the text");

        combo.setValue("Please click on the text");
        Label gap = new Label();
        root.addComponent(gap);
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.