Class StringParameterImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.config.ParameterImpl
com.biglybt.pifimpl.local.ui.config.StringParameterImpl
- All Implemented Interfaces:
ParameterListener, ConfigParameter, EnablerParameter, Parameter, ParameterWithHint, ParameterWithSuffix, StringParameter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate intprivate Stringprivate intprivate Stringprivate booleanprivate intFields inherited from class ParameterImpl
configKeyFields inherited from interface Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStringValidator(ParameterValidator<String> stringParamValidator) Same asParameter.addValidator(ParameterValidator), but casts the "toValue" to String.Get the messagebundle key for the Parameter's hint.intintGet the character limit for ParametergetValue()Retrieve the parameter's value as an Object.intbooleanvoidsetHintKey(String hintKey) Sets the widget message to a messagebundle key.voidsetHintText(String text) Sets the widget message.voidsetMultiLine(int visible_line_count) voidsetSuffixLabelKey(String suffixLabelKey) voidsetSuffixLabelText(String text) voidsetTextLimit(int textLimit) Limit the number of characters for ParametervoidsetValidChars(String chars, boolean caseSensitive) Limit characters to a listvoidvoidsetWidthInCharacters(int widthInCharacters) Set a width hint for displaying the text fieldMethods inherited from class ParameterImpl
addAndFireListener, addConfigParameterListener, addDisabledOnSelection, addDisabledOnSelection, addEnabledOnSelection, addEnabledOnSelection, addImplListener, addListener, addValidator, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getIndent, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, getReferenceID, hasBeenSet, isEnabled, isForUIType, isIndentFancy, isVisible, parameterChanged, refreshControl, removeConfigParameterListener, removeImplListener, removeListener, resetToDefault, search, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setGroup, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setReferenceID, setVisible, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigParameter
addConfigParameterListener, removeConfigParameterListenerMethods inherited from interface Parameter
addAndFireListener, addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
Field Details
-
line_count
private int line_count -
widthInCharacters
private int widthInCharacters -
validChars
-
validCharsCaseSensitive
private boolean validCharsCaseSensitive -
suffixLabelKey
-
textLimit
private int textLimit -
hintKey
-
-
Constructor Details
-
StringParameterImpl
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceStringParameter
-
setValue
- Specified by:
setValuein interfaceStringParameter
-
setMultiLine
public void setMultiLine(int visible_line_count) - Specified by:
setMultiLinein interfaceStringParameter- Parameters:
visible_line_count-
-
getMultiLine
public int getMultiLine() -
setWidthInCharacters
public void setWidthInCharacters(int widthInCharacters) Description copied from interface:StringParameterSet a width hint for displaying the text field- Specified by:
setWidthInCharactersin interfaceStringParameter
-
getWidthInCharacters
public int getWidthInCharacters()- Specified by:
getWidthInCharactersin interfaceStringParameter- Returns:
- width hint in characters for displaying the text field
-
setValidChars
Description copied from interface:StringParameterLimit characters to a list- Specified by:
setValidCharsin interfaceStringParameter
-
addStringValidator
Description copied from interface:StringParameterSame asParameter.addValidator(ParameterValidator), but casts the "toValue" to String.- Specified by:
addStringValidatorin interfaceStringParameter- See Also:
-
getValidChars
-
isValidCharsCaseSensitive
public boolean isValidCharsCaseSensitive() -
getSuffixLabelKey
- Specified by:
getSuffixLabelKeyin interfaceParameterWithSuffix
-
setSuffixLabelKey
- Specified by:
setSuffixLabelKeyin interfaceParameterWithSuffix
-
setSuffixLabelText
- Specified by:
setSuffixLabelTextin interfaceParameterWithSuffix
-
setTextLimit
public void setTextLimit(int textLimit) Description copied from interface:StringParameterLimit the number of characters for Parameter- Specified by:
setTextLimitin interfaceStringParameter
-
getTextLimit
public int getTextLimit()Description copied from interface:StringParameterGet the character limit for Parameter- Specified by:
getTextLimitin interfaceStringParameter
-
getHintKey
Description copied from interface:ParameterWithHintGet the messagebundle key for the Parameter's hint. Hints are usually only displayed when the field is empty.- Specified by:
getHintKeyin interfaceParameterWithHint
-
setHintKey
Description copied from interface:ParameterWithHintSets the widget message to a messagebundle key. The message text is displayed as a hint for the user, indicating the purpose of the field. Hints are usually only displayed when the field is empty.- Specified by:
setHintKeyin interfaceParameterWithHint
-
setHintText
Description copied from interface:ParameterWithHintSets the widget message. The text is displayed as a hint for the user, indicating the purpose of the field. Hints are usually only displayed when the field is empty.- Specified by:
setHintTextin interfaceParameterWithHint
-
getValueObject
Description copied from interface:ParameterRetrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObjectin interfaceParameter- Overrides:
getValueObjectin classParameterImpl
-