code: def setComponent(self, component):
          
          details = component.auto_details()
          state = component.stateDict()
          for field, detail in details.items():
              val = state[field]
              self.inputWidgets[field].setValue(val)
          self._component = component
docs: Re-implemented from :meth:`AbstractComponentWidget<sparkle.gui.stim.abstract_component_editor.AbstractComponentWidget.setComponent>`