Package org.gwtoolbox.widget.client.grid.selection

Examples of org.gwtoolbox.widget.client.grid.selection.MultiRowSelectionModel


            }
        });

        SimpleButton multiModelButton = new SimpleButton("Set Multi-Line Selection", new ClickHandler() {
            public void onClick(ClickEvent event) {
                MultiRowSelectionModel model = new MultiRowSelectionModel();
                model.addListener(new MultiRowSelectionModel.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("Selection cleared.");
                    }

                    public void rowSelected(int row, MultiRowSelection model) {
                        messageLabel.setText("Selected rows: " + StringUtils.collectionToDelimetedString(model.getSelectedRows(), ", "));
                    }

                    public void rowUnselected(int row, MultiRowSelection model) {
                        messageLabel.setText("Selected rows: " + StringUtils.collectionToDelimetedString(model.getSelectedRows(), ", "));
                    }
                });
                grid.setSelectionModel(model);
            }
        });
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.grid.selection.MultiRowSelectionModel

Copyright © 2018 www.massapicom. 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.