Sets the constructor for the component type this label is to 
        represent

        :param factoryclass: a class that, when called, results in an instance of the desired class
        :type factoryclass: callable

def setClass(self, factoryclass):
        """Sets the constructor for the component type this label is to 
        represent

        :param factoryclass: a class that, when called, results in an instance of the desired class
        :type factoryclass: callable
        """
        self.factoryclass = factoryclass
        self.setText(str(factoryclass.name))