Class FileParameterImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ui.config.ParameterImpl
-
- com.biglybt.pifimpl.local.ui.config.FileParameterImpl
-
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,EnablerParameter
,FileParameter
,Parameter
,ParameterWithHint
public class FileParameterImpl extends ParameterImpl implements FileParameter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
file_extensions
private java.lang.String
fileNameHint
private java.lang.String
hintKey
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 FileParameterImpl(java.lang.String key, java.lang.String labelKey, java.lang.String... file_extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getFileExtensions()
java.lang.String
getFileName()
java.lang.String
getFileNameHint()
java.lang.String
getHintKey()
Get the messagebundle key for the Parameter's hint.java.lang.String
getKeyDialogTitle()
java.lang.String
getValue()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.void
setDialogTitleKey(java.lang.String key)
Title of the dialog box shown when user clicks the browse buttonvoid
setFileName(java.lang.String filename)
void
setFileNameHint(java.lang.String fileNameHint)
void
setHintKey(java.lang.String hintKey)
Sets the widget message to a messagebundle key.void
setHintText(java.lang.String text)
Sets the widget message.-
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 interfaceFileParameter
-
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
-
getFileNameHint
public java.lang.String getFileNameHint()
-
setFileNameHint
public void setFileNameHint(java.lang.String fileNameHint)
-
getFileExtensions
public java.lang.String[] getFileExtensions()
-
setDialogTitleKey
public void setDialogTitleKey(java.lang.String key)
Description copied from interface:FileParameter
Title of the dialog box shown when user clicks the browse button- Specified by:
setDialogTitleKey
in interfaceFileParameter
-
getKeyDialogTitle
public java.lang.String getKeyDialogTitle()
-
getFileName
public java.lang.String getFileName()
-
setFileName
public void setFileName(java.lang.String filename)
-
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
-
-