Package com.vaadin.ui

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


        testTable.setSelectable(true);
        testTable.setMultiSelect(false);
        testTable.setVisibleColumns(new Object[] { "testName" });

        // Handle selection change.
        testTable.addListener(new Property.ValueChangeListener() {
            @Override
            public void valueChange(ValueChangeEvent event) {
                System.out.println("ValueChanged: "
                        + testTable.getValue().toString());
                showID.setCaption("ID: " + testTable.getValue().toString());
View Full Code Here


        final TextField columnField = new TextField(
                "ProperyId of clicked column");

        // Add a header click listener
        table.addListener(new Table.HeaderClickListener() {
            @Override
            public void headerClick(HeaderClickEvent event) {
                columnField.setValue(String.valueOf(event.getPropertyId()));
            }
        });
View Full Code Here

        t = new Table("single nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(false);
        t.setNullSelectionAllowed(true);
        t.addListener(this);

        t = new Table("single NO-nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(false);
View Full Code Here

        t = new Table("single NO-nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(false);
        t.setNullSelectionAllowed(false);
        t.addListener(this);

        t = new Table("multi nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(true);
View Full Code Here

        t = new Table("multi nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(true);
        t.setNullSelectionAllowed(true);
        t.addListener(this);

        t = new Table("multi NO-nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(true);
View Full Code Here

        t = new Table("multi NO-nullsel");
        main.addComponent(t);
        t(t);
        t.setMultiSelect(true);
        t.setNullSelectionAllowed(false);
        t.addListener(this);

        // --

        t = new Table("single nullsel nullselid");
        main.addComponent(t);
View Full Code Here

        main.addComponent(t);
        Object id = t(t);
        t.setNullSelectionItemId(id);
        t.setMultiSelect(false);
        t.setNullSelectionAllowed(true);
        t.addListener(this);

        t = new Table("single NO-nullsel nullselid");
        main.addComponent(t);
        id = t(t);
        t.setNullSelectionItemId(id);
View Full Code Here

        main.addComponent(t);
        id = t(t);
        t.setNullSelectionItemId(id);
        t.setMultiSelect(false);
        t.setNullSelectionAllowed(false);
        t.addListener(this);

        t = new Table("multi(fails) nullsel nullselid");
        main.addComponent(t);
        id = t(t);
        t.setNullSelectionItemId(id);
View Full Code Here

            t.setCaption("multi(SHOLD FAIL BUT DID NOT) nullsel nullselid");
        } catch (final Exception e) {
            System.err.println("failed ok");
        }
        t.setNullSelectionAllowed(true);
        t.addListener(this);

        t = new Table("multi(fails) NO-nullsel nullselid");
        main.addComponent(t);
        id = t(t);
        t.setNullSelectionItemId(id);
View Full Code Here

            t.setCaption("multi(SHOLD FAIL BUT DID NOT) NO-nullsel nullselid");
        } catch (final Exception e) {
            System.err.println("failed ok");
        }
        t.setNullSelectionAllowed(false);
        t.addListener(this);

        /*
         * And that's it! The framework will display the main window and its
         * contents when the application is accessed with the terminal.
         */
 
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.