Interface ScriptParamComponentFactory

All Known Implementing Classes:
DiacriticOptionsScriptParamComponentFactory, TierListScriptParamComponentFactory, TierSelectionScriptParamComponentFactory

public interface ScriptParamComponentFactory
Extension point for custom script parameters implementations.
  • Method Details

    • canCreateScriptParamComponent

      boolean canCreateScriptParamComponent(ScriptParam scriptParam)
      Does this implementation handle the given parameter?
      Parameters:
      scriptParam -
      Returns:
      true if this factory can create a component for the given scriptParam, false otherwise
    • createScriptParamComponent

      JComponent createScriptParamComponent(ScriptParam scriptParam)
      Create the UI component for the given script parameter.
      Parameters:
      scriptParam -
      Returns:
      the component or null if canCreateScriptParam returns false