Package HAL.Tools.Internal
Class ParamSet
- java.lang.Object
-
- HAL.Tools.Internal.ParamSet
-
public class ParamSet extends java.lang.Objectthe ParamSet class is used to keep track of all of the items in a menu it can be queried to get the current values of the menu values and labels can also be loaded as arrays of strings, allowing for the menuset to be used without a gui
-
-
Method Summary
Modifier and Type Method Description MenuItemAddGuiMenuItem(MenuItem addMe)adds a new gui menu item to the setbooleanGetBool(java.lang.String label)gets the boolean value from the set with the specified labeldoubleGetDouble(java.lang.String label)gets the double value from the set with the specified labelintGetInt(java.lang.String label)gets the integer value from the set with the specified labeljava.lang.StringGetString(java.lang.String label)gets the string value from the set with the specified labeljava.lang.String[]LabelStrings()returns the labels in the set as an array of stringsvoidSet(java.lang.String label, java.lang.String value)sets the value at the specified label to the specified valuevoidSetGui(java.lang.String label, java.lang.String val)sets the gui component with the provided label to valvoidSetGuiAll(java.lang.String[] vals)set all gui values with the vals array providedvoidSetLabels(java.lang.String[] labels)sets all labels with the labels array providedvoidSetParamChangeAction(ParamSetChangeAction ChangeAction)voidSetVals(java.lang.String[] vals)sets all values with the vals array providedvoidSetValsAndLabels(java.lang.String[] labels, java.lang.String[] vals)sets both the vals and labels with the arrays providedjava.lang.String[]ValueStrings()returns the values in the set as an array of strings
-
-
-
Method Detail
-
GetBool
public boolean GetBool(java.lang.String label)
gets the boolean value from the set with the specified label
-
GetInt
public int GetInt(java.lang.String label)
gets the integer value from the set with the specified label
-
GetDouble
public double GetDouble(java.lang.String label)
gets the double value from the set with the specified label
-
GetString
public java.lang.String GetString(java.lang.String label)
gets the string value from the set with the specified label
-
SetVals
public void SetVals(java.lang.String[] vals)
sets all values with the vals array provided
-
Set
public void Set(java.lang.String label, java.lang.String value)sets the value at the specified label to the specified value
-
SetLabels
public void SetLabels(java.lang.String[] labels)
sets all labels with the labels array provided
-
SetParamChangeAction
public void SetParamChangeAction(ParamSetChangeAction ChangeAction)
-
SetValsAndLabels
public void SetValsAndLabels(java.lang.String[] labels, java.lang.String[] vals)sets both the vals and labels with the arrays provided
-
SetGuiAll
public void SetGuiAll(java.lang.String[] vals)
set all gui values with the vals array provided
-
SetGui
public void SetGui(java.lang.String label, java.lang.String val)sets the gui component with the provided label to val
-
ValueStrings
public java.lang.String[] ValueStrings()
returns the values in the set as an array of strings
-
LabelStrings
public java.lang.String[] LabelStrings()
returns the labels in the set as an array of strings
-
-