Sets the record state for this item to the inputed state.
        
        :param      recordState | <XOrbRecordItem.State>

def setRecordState( self, recordState ):
        """
        Sets the record state for this item to the inputed state.
        
        :param      recordState | <XOrbRecordItem.State>
        """
        self._recordState = recordState
        
        try:
            is_colored = self.treeWidget().isColored()
        except AttributeError:
            return
        
        if not is_colored:
            return
        
        # determine the color for the item based on the state
        if recordState & XOrbRecordItem.State.Removed:
            clr = self.treeWidget().colorSet().color('RecordRemoved')
        elif recordState & XOrbRecordItem.State.New:
            clr = self.treeWidget().colorSet().color('RecordNew')
        elif recordState & XOrbRecordItem.State.Modified:
            clr = self.treeWidget().colorSet().color('RecordModified')
        else:
            clr = None
        
        # set the color based on the record state
        if clr is not None:
            clr = QColor(clr)
            clr.setAlpha(40)
            brush = QBrush(clr)
        else:
            brush = QBrush()
        
        for c in range(self.treeWidget().columnCount()):
            self.setBackground(c, brush)