Package ca.phon.script.params.ui
Class ParamComponentFactory
java.lang.Object
ca.phon.script.params.ui.ParamComponentFactory
Factory responsible for creating components for script parameter
forms.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBooleanParamComponent
(BooleanScriptParam boolScriptParam) Create a checkbox component for boolean script parameters.createComboboxEnumScriptParamComponent
(EnumScriptParam enumScriptParam) Create a combobox component for enum script parameters.createEnumScriptParamComponent
(EnumScriptParam enumScriptParam) createLabelScriptParamComponent
(LabelScriptParam labelScriptParam) Create a labelcreateMultiBoolScriptParamComponent
(MultiboolScriptParam multiBoolScriptParam) Create a multi-bool script param component.createParamLabel
(ScriptParam param) Create the label for the paramorg.fife.ui.rsyntaxtextarea.RSyntaxTextArea
createPatternScriptParamComponent
(PatternScriptParam patternScriptParam) Pattern fieldcreateRadiobuttonEnumScriptParamComponent
(EnumScriptParam enumScriptParam) org.jdesktop.swingx.JXCollapsiblePane
createSeparatorScriptParamComponent
(SeparatorScriptParam separatorScriptParam) Creates a new collapsible container for a script param group.createStringScriptParamComponent
(StringScriptParam stringScriptParam) Create a text fieldorg.jdesktop.swingx.JXButton
createToggleButton
(String name, org.jdesktop.swingx.JXCollapsiblePane cp, SeparatorScriptParam param) Create the toggle button for a separator
-
Constructor Details
-
ParamComponentFactory
public ParamComponentFactory()
-
-
Method Details
-
createParamLabel
Create the label for the param -
createBooleanParamComponent
Create a checkbox component for boolean script parameters.- Parameters:
boolScriptParam
-- Returns:
- checkbox component for script parameter
-
createEnumScriptParamComponent
-
createRadiobuttonEnumScriptParamComponent
-
createComboboxEnumScriptParamComponent
public JComboBox<EnumScriptParam.ReturnValue> createComboboxEnumScriptParamComponent(EnumScriptParam enumScriptParam) Create a combobox component for enum script parameters.- Parameters:
enumScriptParam
-- Returns:
- combo box
-
createLabelScriptParamComponent
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
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:
-