Class ParamComponentFactory

java.lang.Object
ca.phon.script.params.ui.ParamComponentFactory

public class ParamComponentFactory extends Object
Factory responsible for creating components for script parameter forms.
  • Constructor Details

    • ParamComponentFactory

      public ParamComponentFactory()
  • Method Details

    • createParamLabel

      public JLabel createParamLabel(ScriptParam param)
      Create the label for the param
    • createBooleanParamComponent

      public JCheckBox createBooleanParamComponent(BooleanScriptParam boolScriptParam)
      Create a checkbox component for boolean script parameters.
      Parameters:
      boolScriptParam -
      Returns:
      checkbox component for script parameter
    • createEnumScriptParamComponent

      public JComponent createEnumScriptParamComponent(EnumScriptParam enumScriptParam)
    • createRadiobuttonEnumScriptParamComponent

      public JPanel createRadiobuttonEnumScriptParamComponent(EnumScriptParam enumScriptParam)
    • createComboboxEnumScriptParamComponent

      public JComboBox<EnumScriptParam.ReturnValue> createComboboxEnumScriptParamComponent(EnumScriptParam enumScriptParam)
      Create a combobox component for enum script parameters.
      Parameters:
      enumScriptParam -
      Returns:
      combo box
    • createLabelScriptParamComponent

      public JLabel createLabelScriptParamComponent(LabelScriptParam labelScriptParam)
      Create a label
      Parameters:
      labelScriptParam -
      Returns:
      label
    • createMultiBoolScriptParamComponent

      public MultiboolPanel createMultiBoolScriptParamComponent(MultiboolScriptParam multiBoolScriptParam)
      Create a multi-bool script param component. This is several checkboxs grouped in columns
      Parameters:
      multiBoolScriptParam -
      Returns:
      panel contaning all checkboxes
    • createStringScriptParamComponent

      public PromptedTextField createStringScriptParamComponent(StringScriptParam stringScriptParam)
      Create a text field
      Parameters:
      stringScriptParam -
      Returns:
      prompted text field
    • createPatternScriptParamComponent

      public org.fife.ui.rsyntaxtextarea.RSyntaxTextArea createPatternScriptParamComponent(PatternScriptParam patternScriptParam)
      Pattern field
      Parameters:
      patternScriptParam -
      Returns:
      text field with syntax highlighting
    • createSeparatorScriptParamComponent

      public org.jdesktop.swingx.JXCollapsiblePane createSeparatorScriptParamComponent(SeparatorScriptParam separatorScriptParam)
      Creates a new collapsible container for a script param group.
      Parameters:
      separatorScriptParam -
      Returns:
      container
    • createToggleButton

      public org.jdesktop.swingx.JXButton createToggleButton(String name, org.jdesktop.swingx.JXCollapsiblePane cp, SeparatorScriptParam param)
      Create the toggle button for a separator
      Parameters:
      name -
      cp -
      Returns: