Package ca.phon.script.params
Class MultiboolScriptParam
java.lang.Object
ca.phon.script.params.ScriptParam
ca.phon.script.params.MultiboolScriptParam
-
Field Summary
Fields inherited from class ca.phon.script.params.ScriptParam
ENABLED_PROP, propSupport, VISIBLE_PROP
-
Constructor Summary
ConstructorDescriptionMultiboolScriptParam
(String[] ids, Boolean[] defaults, String[] descs, String desc, int numCols) -
Method Summary
Modifier and TypeMethodDescriptionint
getCols()
The number of columnsint
Number of optionsgetOptionId
(int option) Get the id for the specified optionint
getOptionIndex
(String id) Get the index of the given option idgetOptionText
(int option) Get text for specific optiongetOptionText
(String paramId) Get option text for specific param idGet the string representation of this param.boolean
isEnabled
(int option) Get enabled status of optionboolean
isVisible
(int option) Get visible status of specific optionsvoid
setEnabled
(int option, boolean enabled) Set enabled status of specific optionsvoid
void
setVisible
(int option, boolean visible) Set visible status of specific optionsMethods inherited from class ca.phon.script.params.ScriptParam
addPropertyChangeListener, addPropertyChangeListener, getDefaultValue, getParamDesc, getParamId, getParamIds, getParamType, getPropertyChangeListeners, getPropertyChangeListeners, getValue, getVisible, hasChanged, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setDefaultValue, setEnabled, setParamDesc, setParamType, setVisible
-
Constructor Details
-
MultiboolScriptParam
-
-
Method Details
-
getCols
public int getCols()The number of columns- Returns:
-
getNumberOfOptions
public int getNumberOfOptions()Number of options- Returns:
-
setEnabled
public void setEnabled(int option, boolean enabled) Set enabled status of specific options- Parameters:
option
-enabled
-- Throws:
ArrayIndexOutOfBoundsException
-
isEnabled
public boolean isEnabled(int option) Get enabled status of option- Parameters:
option
-- Returns:
- enabled status
-
setVisible
public void setVisible(int option, boolean visible) Set visible status of specific options- Parameters:
option
-enabled
-- Throws:
ArrayIndexOutOfBoundsException
-
isVisible
public boolean isVisible(int option) Get visible status of specific options- Parameters:
option
-- Returns:
-
getOptionText
Get text for specific option- Parameters:
option
-- Returns:
- option text
- Throws:
ArrayIndexOutOfBoundsException
-
getOptionId
Get the id for the specified option- Parameters:
option
-- Returns:
- option id
- Throws:
ArrayIndexOutOfBoundsException
-
getOptionIndex
Get the index of the given option id- Parameters:
id
-- Returns:
- index
-
getOptionText
Get option text for specific param id- Parameters:
paramId
-- Returns:
-
getStringRepresentation
Description copied from class:ScriptParam
Get the string representation of this param.- Specified by:
getStringRepresentation
in classScriptParam
-
setValue
- Overrides:
setValue
in classScriptParam
-