Examples of addItem()


Examples of com.trolltech.qt.gui.QGridLayout.addItem()

    tripWidget.onRemoveItem.connect(this, "onRemoveTrip(List)");
    QBoxLayout routeButtonBox = new QBoxLayout(Direction.TopToBottom);
    routeButtonBox.addWidget(generateButton);
    routeButtonBox.addWidget(editButton);
    routeButtonBox.addWidget(removeButton);
    gridLayout.addItem(routeButtonBox, 1, 1, 1, 1, AlignmentFlag.AlignTop);
   
    resultWidget.setLayout(gridLayout);
    return resultWidget;
  }
View Full Code Here

Examples of com.vaadin.client.ui.VMenuBar.addItem()

                        }
                    };
                }
            }

            currentItem = currentMenu.addItem(itemHTML.toString(), cmd);
            currentItem.updateFromUIDL(item, client);

            if (item.getChildCount() > 0) {
                menuStack.push(currentMenu);
                iteratorStack.push(itr);
View Full Code Here

Examples of com.vaadin.data.Container.addItem()

        table.setSelectable(true);

        Container ds = new IndexedContainer();
        ds.addContainerProperty("column", Integer.class, null);
        for (int i = 0; i < 500; i++) {
            Item item = ds.addItem(i);
            item.getItemProperty("column").setValue(i);
        }
        table.setContainerDataSource(ds);

        return table;
View Full Code Here

Examples of com.vaadin.data.util.HierarchicalContainer.addItem()

        navData.addContainerProperty("parent", Double.class, null);
        navData.addContainerProperty("alias", String.class, null);
        List<NavElement> children = null;
        // FIXME only capable of rendering two levels
        for (NavElement e: getRoots()) {
            navData.addItem(e);
            if (hasChildren(e)) {
                children = getChildren(e);
                for (NavElement child: children) {
                    navData.addItem(child);
                    navData.setParent(child, e);
View Full Code Here

Examples of com.vaadin.data.util.IndexedContainer.addItem()

        container.addContainerProperty(ICON_PROPERTY, Resource.class, null);
        container.addContainerProperty(INDEX_PROPERTY, Integer.class, null);
        container
                .addContainerProperty(DESCRIPTION_PROPERTY, String.class, null);
        for (int i = 1; i < size + 1; i++) {
            Item item = container.addItem(i);
            item.getItemProperty(CAPTION_PROPERTY).setValue(
                    sg.nextString(true) + " " + sg.nextString(false));
            item.getItemProperty(INDEX_PROPERTY).setValue(i);
            item.getItemProperty(DESCRIPTION_PROPERTY).setValue(
                    sg.nextString(true) + " " + sg.nextString(false) + " "
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.SQLContainer.addItem()

                    for (int cent = 0; cent < cents; cent++) {
                        TableQuery q = new TableQuery("AUTHOR", pool);
                        q.setVersionColumn("ID");
                        SQLContainer c = new SQLContainer(q);
                        for (int i = 0; i < 100; i++) {
                            Object id = c.addItem();
                            c.getContainerProperty(id, "FIRST_NAMES").setValue(
                                    getRandonName());
                            c.getContainerProperty(id, "LAST_NAME").setValue(
                                    getRandonName());
                        }
View Full Code Here

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

                            w.setModal(true);
                        }

                        AbstractSelect s1 = new OptionGroup();
                        s1.setCaption("1. Select output format");
                        s1.addItem("Excel sheet");
                        s1.addItem("CSV plain text");
                        s1.setValue("Excel sheet");
                        s1.setImmediate(true);

                        s2 = new Select();
View Full Code Here

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

    private ComboBox createStyleNameComboBox() {
        ComboBox s = new ComboBox("Calendar");
        s.addContainerProperty("c", String.class, "");
        s.setItemCaptionPropertyId("c");
        Item i = s.addItem("color1");
        i.getItemProperty("c").setValue("Work");
        i = s.addItem("color2");
        i.getItemProperty("c").setValue("Personal");
        i = s.addItem("color3");
        i.getItemProperty("c").setValue("Family");
View Full Code Here

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

        tcs2.setHeight("200px");
        row.addComponent(tcs2);

        for (int i = 1; i <= 10; i++) {
            select.addItem("Option " + i);
            list.addItem("Option " + i);
            tcs.addItem("Option " + i);
            tcs2.addItem("Option " + i);
        }
    }
View Full Code Here

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

    }

    private MenuBar createMenuBar(final BeanContainer<String, Task> beans, final Table table) {
        MenuBar menu = new MenuBar();
        menu.setImmediate(true);
        menu.addItem("Reload", new Command() {
            public void menuSelected(MenuItem selectedItem) {
                update(beans);
            }
        });
        menu.addItem("Add", new Command() {
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.