Toggles the selection for the inputed state.
        
        :param      state | <XOrbRecordItem.State>

def toggleSelectedItemState(self, state):
        """
        Toggles the selection for the inputed state.
        
        :param      state | <XOrbRecordItem.State>
        """
        items = self.selectedItems()
        for item in items:
            if ( item.hasRecordState(state) ):
                item.removeRecordState(state)
            else:
                item.addRecordState(state)