Class DirectorySwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<DirectorySwtParameter, String>
com.biglybt.ui.swt.config.BaseSwtStringParameter<DirectorySwtParameter>
com.biglybt.ui.swt.config.DirectorySwtParameter
- All Implemented Interfaces:
SwtParameter<String>
SWT Parameter representing a Directory (String) value.
Displays Textbox and browse button.
Will always use 2 horizontal spaces in GridLayout
Note: Currently doesn't validate if directory is valid or exists
-
Nested Class Summary
Nested classes/interfaces inherited from class BaseSwtParameter
BaseSwtParameter.IndentPaintListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.swt.widgets.Compositeprivate final org.eclipse.swt.widgets.Buttonprotected Stringprotected StringFields inherited from class BaseSwtStringParameter
inputFieldFields inherited from class BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessorFields inherited from interface SwtParameter
DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionDirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, DirectoryParameterImpl param) DirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, SwtParameterValueProcessor<DirectorySwtParameter, String> valueProcessor) Make a directory selecting ui -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLabelContextMenus(org.eclipse.swt.widgets.Control curControl, org.eclipse.swt.widgets.Menu menu) org.eclipse.swt.widgets.Control[]private StringopenDialog(org.eclipse.swt.widgets.Shell shell, String old_value) voidsetKeyDialogMessage(String keyDialogMessage) voidsetKeyDialogTitle(String keyDialogTitle) voidsetLayoutData(Object layoutData) Methods inherited from class BaseSwtStringParameter
refreshControl, setHintKey, setTextLimit, setValidChars, setWidthInCharactersMethods inherited from class BaseSwtParameter
addAndFireChangeListener, addChangeListener, addValidator, createStandardLabel, debug, dispose, doGridData, getIndent, getMainControl, getParamID, getRelatedControl, getValue, getValueProcessor, informChanged, isDefaultValue, isDisposed, isEnabled, isIndentFancy, refreshSuffixControl, removeChangeListener, removeValidator, resetToDefault, setConfigValueProcessor, setEnabled, setIndent, setLabelKey, setLabelText, setMainControl, setPluginParameter, setRelatedControl, setValue, setValueProcessor, setVisible, triggerChangeListeners, triggerSubClassChangeListeners, updateControl, validate
-
Field Details
-
browse
private final org.eclipse.swt.widgets.Button browse -
area
private final org.eclipse.swt.widgets.Composite area -
keyDialogTitle
-
keyDialogMessage
-
-
Constructor Details
-
DirectorySwtParameter
public DirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, DirectoryParameterImpl param) -
DirectorySwtParameter
public DirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, SwtParameterValueProcessor<DirectorySwtParameter, String> valueProcessor) Make a directory selecting ui When parent is of GridLayout, resulting new widgets will take 2 columns- Parameters:
composite- Where widgets will be placed. Composite is not alteredparamID- ID of the parameter (usually config id)labelKey- Messagebundle key for the text shown before the color buttonvalueProcessor- null if you want to use COConfigurationManager
-
-
Method Details
-
setLayoutData
- Specified by:
setLayoutDatain interfaceSwtParameter<String>- Overrides:
setLayoutDatain classBaseSwtParameter<DirectorySwtParameter, String>
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControlsin interfaceSwtParameter<String>- Overrides:
getControlsin classBaseSwtStringParameter<DirectorySwtParameter>
-
addLabelContextMenus
protected void addLabelContextMenus(org.eclipse.swt.widgets.Control curControl, org.eclipse.swt.widgets.Menu menu) - Overrides:
addLabelContextMenusin classBaseSwtParameter<DirectorySwtParameter, String>
-
openDialog
-
setKeyDialogTitle
-
setKeyDialogMessage
-