001    package org.springframework.richclient.widget;
002    
003    import org.springframework.richclient.command.ActionCommand;
004    
005    /**
006     * Widget that can pass a selection of objects, i.e. a table in which a selection can be made
007     *
008     * @author jh
009     */
010    public interface SelectionWidget extends Widget
011    {
012        /**
013         * Command called to set the selection for the widget. I.e. a double-click listener on the table
014         * that selects the current selected row and closes the view to the table.sluiten
015         *
016         * @param command
017         */
018        void setSelectionCommand(ActionCommand command);
019    
020        void removeSelectionCommand();
021    
022        /**
023         * @return The selected object(s)
024         */
025        Object getSelection();
026    }