Defines the model that is going to be used to define the interface for
        this widget.
        
        :param      model | <subclass of orb.Table>

def setModel( self, model ):
        """
        Defines the model that is going to be used to define the interface for
        this widget.
        
        :param      model | <subclass of orb.Table>
        """
        if model == self._model:
            return False
            
        self._model = model
        
        if not self._record and model:
            self._record = model()
        
        if model:
            uifile = model.schema().property('uifile')
            if ( uifile ):
                self.setUiFile(uifile)
        
        self.rebuild()
        
        return True