Package adams.core.option
Class ByteOption
- java.lang.Object
-
- adams.core.option.AbstractOption
-
- adams.core.option.AbstractArgumentOption
-
- adams.core.option.AbstractNumericOption<Byte>
-
- adams.core.option.ByteOption
-
- All Implemented Interfaces:
CleanUpHandler
,VariableChangeListener
,Serializable
public class ByteOption extends AbstractNumericOption<Byte>
Handles options with Byte arguments.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.option.AbstractNumericOption
m_LowerBound, m_UpperBound
-
Fields inherited from class adams.core.option.AbstractArgumentOption
m_BaseClass, m_Multiple, m_Variable, m_VariableModified, m_VariableReferencesObject
-
Fields inherited from class adams.core.option.AbstractOption
m_Commandline, m_Debug, m_DefaultValue, m_MinUserMode, m_OutputDefaultValue, m_Owner, m_Property, TOOLTIP_SUFFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ByteOption(OptionManager owner, String commandline, String property, Object defValue, boolean outputDefValue, UserMode minUserMode)
Initializes the option.protected
ByteOption(OptionManager owner, String commandline, String property, Object defValue, boolean outputDefValue, Byte lower, Byte upper, UserMode minUserMode)
Initializes the option.protected
ByteOption(OptionManager owner, String commandline, String property, Object defValue, UserMode minUserMode)
Initializes the option.protected
ByteOption(OptionManager owner, String commandline, String property, Object defValue, Byte lower, Byte upper, UserMode minUserMode)
Initializes the option.
-
Method Summary
-
Methods inherited from class adams.core.option.AbstractNumericOption
checkBounds, compareValues, getLowerBound, getUpperBound, hasLowerBound, hasUpperBound, isValid, toString, valueOf
-
Methods inherited from class adams.core.option.AbstractArgumentOption
cleanUp, getBaseClass, getVariable, getVariableName, hasBaseClass, isDefaultValue, isDefaultValue, isMultiple, isVariableAttached, isVariableModified, isVariableReferencingObject, setVariable, toArray, toString, updateVariable, updateVariable, updateVariable, variableChanged
-
Methods inherited from class adams.core.option.AbstractOption
getCommandline, getCurrentValue, getDebug, getDefaultValue, getDescriptor, getMinUserMode, getOptionHandler, getOutputDefaultValue, getOwner, getProperty, getReadMethod, getToolTipMethod, getWriteMethod, setCurrentValue
-
-
-
-
Constructor Detail
-
ByteOption
protected ByteOption(OptionManager owner, String commandline, String property, Object defValue, UserMode minUserMode)
Initializes the option. Will always output the default value.- Parameters:
owner
- the owner of this optioncommandline
- the commandline string to identify the option (no leading dash)property
- the name of bean propertydefValue
- the default value, if null then the owner's current state is usedminUserMode
- the minimum user mode before showing this option
-
ByteOption
protected ByteOption(OptionManager owner, String commandline, String property, Object defValue, boolean outputDefValue, UserMode minUserMode)
Initializes the option.- Parameters:
owner
- the owner of this optioncommandline
- the commandline string to identify the option (no leading dash)property
- the name of bean propertydefValue
- the default value, if null then the owner's current state is usedoutputDefValue
- whether to output the default value or notminUserMode
- the minimum user mode before showing this option
-
ByteOption
protected ByteOption(OptionManager owner, String commandline, String property, Object defValue, Byte lower, Byte upper, UserMode minUserMode)
Initializes the option. Will always output the default value.- Parameters:
owner
- the owner of this optioncommandline
- the commandline string to identify the optionproperty
- the name of bean propertydefValue
- the default value, if null then the owner's current state is usedlower
- the lower bound (incl; only for numeric values), use null to use unboundedupper
- the upper bound (incl; only for numeric values), use null to use unboundedminUserMode
- the minimum user mode before showing this option
-
ByteOption
protected ByteOption(OptionManager owner, String commandline, String property, Object defValue, boolean outputDefValue, Byte lower, Byte upper, UserMode minUserMode)
Initializes the option.- Parameters:
owner
- the owner of this optioncommandline
- the commandline string to identify the optionproperty
- the name of bean propertydefValue
- the default value, if null then the owner's current state is usedoutputDefValue
- whether to output the default value or notlower
- the lower bound (incl; only for numeric values), use null to use unboundedupper
- the upper bound (incl; only for numeric values), use null to use unboundedminUserMode
- the minimum user mode before showing this option
-
-