package org.gwtoolbox.widget.client.table.basic.selection;
/**
* @author Uri Boness
*/
public interface SingleRowSelection extends Selection {
/**
* Returns the currently selected row in the table or {@code null} if no row is selected.
*
* @return The currently selected row in the table or {@code null} if no row is selected.
*/
Integer getSelectedRow();
void selectRow(int row);
void addListener(Listener listener);
void removeListener(Listener listener);
void clearListeners();
//============================================== Inner Classes =====================================================
public interface Listener {
void selectionCleared();
void rowSelected(int row);
}
}
|