Package com.smartgwt.client.widgets.grid.events

Examples of com.smartgwt.client.widgets.grid.events.RecordDropHandler


        this.listGrid.setHeight(250);
        this.listGrid.setCanReorderRecords(true);
        // TODO: Change cursor to hand or something like that when user hovers over a record in the grid.
        this.listGrid.setLoadingMessage(MSG.common_msg_loading());
        this.listGrid.setEmptyMessage(MSG.common_msg_noItemsToShow());
        this.listGrid.addRecordDropHandler(new RecordDropHandler() {
            @Override
            public void onRecordDrop(RecordDropEvent event) {
                notifyListOrderChangedHandlers();
            }
        });
View Full Code Here


            selection = new ArrayList<Integer>();
        }
        this.availableGrid = availableGrid;
        this.assignedGrid = assignedGrid;

        assignedGrid.addRecordDropHandler(new RecordDropHandler() {
            public void onRecordDrop(RecordDropEvent recordDropEvent) {
                for (ListGridRecord record : recordDropEvent.getDropRecords()) {

                    record.setCanDrag(false);
                    record.setEnabled(false);
View Full Code Here

            public void onDoubleClick(DoubleClickEvent event) {
                addSelectedRows();
            }
        });

        this.availableGrid.addRecordDropHandler(new RecordDropHandler() {
            public void onRecordDrop(RecordDropEvent recordDropEvent) {
                removeSelectedRows();
                recordDropEvent.cancel();
            }
        });
View Full Code Here

                        removeSelectedRows();
                    }
                }
            });

            this.assignedGrid.addRecordDropHandler(new RecordDropHandler() {
                public void onRecordDrop(RecordDropEvent recordDropEvent) {
                    addSelectedRows();
                    recordDropEvent.cancel();
                }
            });
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.grid.events.RecordDropHandler

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.