Class MultiboolScriptParam

java.lang.Object
ca.phon.script.params.ScriptParam
ca.phon.script.params.MultiboolScriptParam

public class MultiboolScriptParam extends ScriptParam
  • Constructor Details

    • MultiboolScriptParam

      public MultiboolScriptParam(String[] ids, Boolean[] defaults, String[] descs, String desc, int numCols)
  • 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

      public String getOptionText(int option)
      Get text for specific option
      Parameters:
      option -
      Returns:
      option text
      Throws:
      ArrayIndexOutOfBoundsException
    • getOptionId

      public String getOptionId(int option)
      Get the id for the specified option
      Parameters:
      option -
      Returns:
      option id
      Throws:
      ArrayIndexOutOfBoundsException
    • getOptionIndex

      public int getOptionIndex(String id)
      Get the index of the given option id
      Parameters:
      id -
      Returns:
      index
    • getOptionText

      public String getOptionText(String paramId)
      Get option text for specific param id
      Parameters:
      paramId -
      Returns:
    • getStringRepresentation

      public String getStringRepresentation()
      Description copied from class: ScriptParam
      Get the string representation of this param.
      Specified by:
      getStringRepresentation in class ScriptParam
    • setValue

      public void setValue(String paramId, Object val)
      Overrides:
      setValue in class ScriptParam