Package com.vaadin.ui

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


        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"));
        final TestObject parent = new TestObject("name 6", "value 6");
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"));
        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
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"));
        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
        table.setFooterVisible(true);
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"));
        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
        table.setFooterVisible(true);
        for (int i = 1; i <= 10; ++i) {
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"));
        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
        table.setFooterVisible(true);
        for (int i = 1; i <= 10; ++i) {
            TestObject child = new TestObject("name 6-" + i, "value 6-" + i);
View Full Code Here

        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"));
        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
        table.setFooterVisible(true);
        for (int i = 1; i <= 10; ++i) {
            TestObject child = new TestObject("name 6-" + i, "value 6-" + i);
            table.addItem(child);
            table.setParent(child, parent);
View Full Code Here

        final TestObject parent = new TestObject("name 6", "value 6");
        table.addItem(parent);
        table.setFooterVisible(true);
        for (int i = 1; i <= 10; ++i) {
            TestObject child = new TestObject("name 6-" + i, "value 6-" + i);
            table.addItem(child);
            table.setParent(child, parent);
        }
        table.setVisibleColumns(new Object[] { "wordingTextId", "parameterId",
                "parameterTypeId" });
        table.setColumnHeaders(new String[] { "", "", "" });
View Full Code Here

        og.addItem("Item 2");
        fields.add(og);
        TreeTable tt = new TreeTable();
        tt.setSelectable(true);
        tt.addContainerProperty("foo", String.class, "bar");
        tt.addItem();

        fields.add(tt);
        Tree tree = new Tree();
        tree.addItem("Item 1");
        fields.add(tree);
View Full Code Here

        tt.addContainerProperty("type", String.class, "bar");

        Layout l = new HorizontalLayout();
        l.addComponent(new Label("bar"));
        l.addComponent(new Label("bar"));
        tt.addItem(new Object[] { l, "HorizontalLayout" }, 1);

        l = new VerticalLayout();
        l.addComponent(new Label("baz"));
        l.addComponent(new Label("baz"));
        tt.addItem(new Object[] { l, "VerticalLayout" }, 2);
View Full Code Here

        tt.addItem(new Object[] { l, "HorizontalLayout" }, 1);

        l = new VerticalLayout();
        l.addComponent(new Label("baz"));
        l.addComponent(new Label("baz"));
        tt.addItem(new Object[] { l, "VerticalLayout" }, 2);

        Label lbl = new Label("<b>foo</b><br/><i>bar</i>");
        lbl.setContentMode(Label.CONTENT_XHTML);
        tt.addItem(new Object[] { lbl, "Label" }, 3);
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.