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

Source Code of org.gwtoolbox.widget.client.grid.selection.SingleRecordSelectionListener

package org.gwtoolbox.widget.client.grid.selection;

import org.gwtoolbox.widget.client.data.Record;
import org.gwtoolbox.widget.client.grid.DataGrid;

/**
* @author Uri Boness
*/
public abstract class SingleRecordSelectionListener implements SingleRowSelectionModel.Listener {

    public final void rowSelected(int row, SingleRowSelection selection) {
        DataGrid grid = selection.getTable();
        Record record = grid.getRecordInRow(row);
        recordSelected(record);
    }
   
    protected abstract void recordSelected(Record record);
}
TOP

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

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.