SingleRowSelection.java :  » GWT » gwtoolbox » org » gwtoolbox » widget » client » table » basic » selection » Java Open Source

Java Open Source » GWT » gwtoolbox 
gwtoolbox » org » gwtoolbox » widget » client » table » basic » selection » SingleRowSelection.java
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);

    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.