Class DirectoryParameterImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ui.config.ParameterImpl
-
- com.biglybt.pifimpl.local.ui.config.DirectoryParameterImpl
-
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,DirectoryParameter
,EnablerParameter
,Parameter
,ParameterWithHint
public class DirectoryParameterImpl extends ParameterImpl implements DirectoryParameter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
hintKey
private java.lang.String
keyDialogMessage
private java.lang.String
keyDialogTitle
-
Fields inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
configKey
-
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
-
Constructor Summary
Constructors Constructor Description DirectoryParameterImpl(java.lang.String key, java.lang.String labelKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHintKey()
Get the messagebundle key for the Parameter's hint.java.lang.String
getKeyDialogMessage()
java.lang.String
getKeyDialogTitle()
java.lang.String
getValue()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.void
setDialogMessageKey(java.lang.String key)
void
setDialogTitleKey(java.lang.String key)
Title of the dialog box shown when user clicks the browse buttonvoid
setHintKey(java.lang.String hintKey)
Sets the widget message to a messagebundle key.void
setHintText(java.lang.String text)
Sets the widget message.void
setValue(java.lang.String str)
-
Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
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, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
-
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceDirectoryParameter
-
getValueObject
public java.lang.Object getValueObject()
Description copied from interface:Parameter
Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObject
in interfaceParameter
- Overrides:
getValueObject
in classParameterImpl
-
setDialogTitleKey
public void setDialogTitleKey(java.lang.String key)
Description copied from interface:DirectoryParameter
Title of the dialog box shown when user clicks the browse button- Specified by:
setDialogTitleKey
in interfaceDirectoryParameter
-
getKeyDialogTitle
public java.lang.String getKeyDialogTitle()
-
setDialogMessageKey
public void setDialogMessageKey(java.lang.String key)
-
getKeyDialogMessage
public java.lang.String getKeyDialogMessage()
-
setValue
public void setValue(java.lang.String str)
- Specified by:
setValue
in interfaceDirectoryParameter
-
getHintKey
public java.lang.String getHintKey()
Description copied from interface:ParameterWithHint
Get the messagebundle key for the Parameter's hint. Hints are usually only displayed when the field is empty.- Specified by:
getHintKey
in interfaceParameterWithHint
-
setHintKey
public void setHintKey(java.lang.String hintKey)
Description copied from interface:ParameterWithHint
Sets 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:
setHintKey
in interfaceParameterWithHint
-
setHintText
public void setHintText(java.lang.String text)
Description copied from interface:ParameterWithHint
Sets 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:
setHintText
in interfaceParameterWithHint
-
-