Package com.biglybt.pif.ui.config
Interface StringParameter
- All Superinterfaces:
ConfigParameter
,Parameter
,ParameterWithHint
,ParameterWithSuffix
- All Known Implementing Classes:
StringParameterImpl
-
Field Summary
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStringValidator
(ParameterValidator<String> stringParamValidator) Same asParameter.addValidator(ParameterValidator)
, but casts the "toValue" to String.int
Get the character limit for ParametergetValue()
int
void
setMultiLine
(int visible_line_count) void
setTextLimit
(int textLimit) Limit the number of characters for Parametervoid
setValidChars
(String chars, boolean caseSensitive) Limit characters to a listvoid
void
setWidthInCharacters
(int widthInCharacters) Set a width hint for displaying the text fieldMethods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
addAndFireListener, addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, getValueObject, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
Methods inherited from interface com.biglybt.pif.ui.config.ParameterWithHint
getHintKey, setHintKey, setHintText
Methods inherited from interface com.biglybt.pif.ui.config.ParameterWithSuffix
getSuffixLabelKey, setSuffixLabelKey, setSuffixLabelText
-
Method Details
-
setValue
-
getValue
String getValue() -
setMultiLine
void setMultiLine(int visible_line_count) - Parameters:
visible_line_count
-- Since:
- 5201
-
setWidthInCharacters
void setWidthInCharacters(int widthInCharacters) Set a width hint for displaying the text field- Since:
- BiglyBT 1.9.0.1
-
getWidthInCharacters
int getWidthInCharacters()- Returns:
- width hint in characters for displaying the text field
- Since:
- BiglyBT 1.9.0.1
-
setValidChars
Limit characters to a list- Since:
- BiglyBT 1.9.0.1
-
addStringValidator
Same asParameter.addValidator(ParameterValidator)
, but casts the "toValue" to String.- Since:
- BiglyBT 1.9.0.1
- See Also:
-
setTextLimit
void setTextLimit(int textLimit) Limit the number of characters for Parameter- Since:
- BiglyBT 1.9.0.1
-
getTextLimit
int getTextLimit()Get the character limit for Parameter- Since:
- BiglyBT 1.9.0.1
-