Package com.vaadin.ui

Examples of com.vaadin.ui.Table.focus()


        t.setSelectable(true);
        t.setMultiSelect(false);
        t.setWidth(200, Sizeable.UNITS_PIXELS);
        t.setHeight(100, Sizeable.UNITS_PIXELS);
        t.select(v1);
        t.focus();
        t.setMultiSelect(true);

        getLayout().addComponent(t);
        getLayout().addComponent(
                new Button("Change elements and selection",
View Full Code Here


                                    v4 = new ValueHolder<String>("test" + i);
                                    bic.addBean(v4);

                                }
                                t.select(t.firstItemId());
                                t.focus();
                            }
                        }));
    }

    @Override
View Full Code Here

public class TableShouldNotEatValueChanges extends TestBase {

    @Override
    protected void setup() {
        Table t = new Table("Table with multiselection and item click listener");
        t.focus();
        t.setPageLength(3);
        t.addContainerProperty("foo", String.class, "bar");
        t.addItem();
        t.setSelectable(true);
        t.setMultiSelect(true);
View Full Code Here

        addButton("Select", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                table.setValue("Item 198");
                table.setCurrentPageFirstItemId("Item 198");
                table.focus();
            }
        });
    }

    /*
 
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.