Set the :class:`jukeboxcore.filesys.TaskFileInfo` that the refobject represents.

        :param tfi: the taskfileinfo for the refobject or None if nothing is loaded.
        :type tfi: :class:`jukeboxcore.filesys.TaskFileInfo` | None
        :returns: None
        :rtype: None
        :raises: None

def set_taskfileinfo(self, tfi):
        """Set the :class:`jukeboxcore.filesys.TaskFileInfo` that the refobject represents.

        :param tfi: the taskfileinfo for the refobject or None if nothing is loaded.
        :type tfi: :class:`jukeboxcore.filesys.TaskFileInfo` | None
        :returns: None
        :rtype: None
        :raises: None
        """
        self._taskfileinfo = tfi
        if tfi:
            self.set_element(tfi.task.element)