Package com.vaadin.ui

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


        final TreeTable tt = new TreeTable();
        tt.setWidth("400px");
        tt.addContainerProperty(CAPTION, String.class, "");
        for (int i = 0; i < 20; i++) {
            String id = "Root " + i;
            Item item = tt.addItem(id);
            item.getItemProperty(CAPTION).setValue(id);
            addChildren(tt, id, 5, 2);
        }

        tt.setSelectable(true);
View Full Code Here


        tt.setPageLength(0);
        tt.addContainerProperty("i", Integer.class, null);
        tt.addContainerProperty("link", Link.class, null);
        Object[] items = new Object[3];
        for (int i = 0; i < items.length; i++) {
            items[i] = tt
                    .addItem(
                            new Object[] {
                                    i + 1,
                                    new Link(String.valueOf(i + 1),
                                            new ExternalResource(
View Full Code Here

                }
                return null;
            }
        });

        Object item1 = tt.addItem(new Object[] { 1 }, null);
        Object item2 = tt.addItem(new Object[] { 2 }, null);
        tt.addItem(new Object[] { 3 }, null);
        tt.setParent(item2, item1);

        addComponent(tt);
View Full Code Here

                return null;
            }
        });

        Object item1 = tt.addItem(new Object[] { 1 }, null);
        Object item2 = tt.addItem(new Object[] { 2 }, null);
        tt.addItem(new Object[] { 3 }, null);
        tt.setParent(item2, item1);

        addComponent(tt);
    }
View Full Code Here

            }
        });

        Object item1 = tt.addItem(new Object[] { 1 }, null);
        Object item2 = tt.addItem(new Object[] { 2 }, null);
        tt.addItem(new Object[] { 3 }, null);
        tt.setParent(item2, item1);

        addComponent(tt);
    }
View Full Code Here

        table.addGeneratedColumn("wordingTextId", new TypeColumnGenerator());
        table.addGeneratedColumn("parameterTypeId", new TypeColumnGenerator());

        table.setColumnWidth("parameterId", 26);

        table.addItem(new TestObject("name 1", "value 1"));
        table.addItem(new TestObject("name 2", "value 2"));
        table.addItem(new TestObject("name 3", "value 3"));
        table.addItem(new TestObject("name 4", "value 4"));
        table.addItem(new TestObject("name 5", "value 5"));
View Full Code Here

        table.addGeneratedColumn("parameterTypeId", new TypeColumnGenerator());

        table.setColumnWidth("parameterId", 26);

        table.addItem(new TestObject("name 1", "value 1"));
        table.addItem(new TestObject("name 2", "value 2"));
        table.addItem(new TestObject("name 3", "value 3"));
        table.addItem(new TestObject("name 4", "value 4"));
        table.addItem(new TestObject("name 5", "value 5"));

        layout.addComponent(table);
View Full Code Here

        table.setColumnWidth("parameterId", 26);

        table.addItem(new TestObject("name 1", "value 1"));
        table.addItem(new TestObject("name 2", "value 2"));
        table.addItem(new TestObject("name 3", "value 3"));
        table.addItem(new TestObject("name 4", "value 4"));
        table.addItem(new TestObject("name 5", "value 5"));

        layout.addComponent(table);
View Full Code Here

        table.setColumnWidth("parameterId", 26);

        table.addItem(new TestObject("name 1", "value 1"));
        table.addItem(new TestObject("name 2", "value 2"));
        table.addItem(new TestObject("name 3", "value 3"));
        table.addItem(new TestObject("name 4", "value 4"));
        table.addItem(new TestObject("name 5", "value 5"));

        layout.addComponent(table);

        Button button = new Button("Add");
View Full Code Here

        table.addItem(new TestObject("name 1", "value 1"));
        table.addItem(new TestObject("name 2", "value 2"));
        table.addItem(new TestObject("name 3", "value 3"));
        table.addItem(new TestObject("name 4", "value 4"));
        table.addItem(new TestObject("name 5", "value 5"));

        layout.addComponent(table);

        Button button = new Button("Add");
        button.setId("button");
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.