def recordSet( self ):
        """
        Returns the record set that is associated with this widget.
        
        :return     <orb.RecordSet> || None
        """
        if ( not self.table() ):
            return None
        
        recordSet = RecordSet(self.table())
        recordSet.setQuery(self.query())
        
        # set the grouping options
        grouping = nativestring(self.uiGroupingTXT.text()).split(',')
        while ( '' in grouping ):
            grouping.remove('')
        
        recordSet.setGroupBy( grouping )
        
        # set the sorting options
        sorting = nativestring(self.uiSortingTXT.text()).split(',')
        while ( '' in sorting ):
            sorting.remove('')
        
        recordSet.setOrder([i.split('|') for i in sorting])
        
        # set the paged options
        recordSet.setPaged(self.uiPagedCHK.isChecked())
        recordSet.setPageSize(self.uiPagedSPN.value())
        
        return recordSet