Package com.biglybt.ui.swt.config
Class IconSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<IconSwtParameter,String>
com.biglybt.ui.swt.config.IconSwtParameter
- All Implemented Interfaces:
SwtParameter<String>
SWT Parameter representing an Icon.
Button with the icon drawn on it. Will always use 2 horizontal spaces in GridLayout
Button with the icon drawn on it. Will always use 2 horizontal spaces in GridLayout
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
BaseSwtParameter.IndentPaintListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.swt.widgets.Button
private org.eclipse.swt.graphics.Image
private String
Fields inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessor
Fields inherited from interface com.biglybt.ui.swt.config.SwtParameter
DEBUG
-
Constructor Summary
ConstructorsConstructorDescriptionIconSwtParameter
(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, SwtParameterValueProcessor<IconSwtParameter, String> valueProcessor) -
Method Summary
Methods inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
addAndFireChangeListener, addChangeListener, addLabelContextMenus, addValidator, createStandardLabel, debug, dispose, doGridData, getControls, getIndent, getMainControl, getParamID, getRelatedControl, getValue, getValueProcessor, informChanged, isDefaultValue, isDisposed, isEnabled, isIndentFancy, refreshSuffixControl, removeChangeListener, removeValidator, resetToDefault, setConfigValueProcessor, setEnabled, setIndent, setLabelKey, setLabelText, setLayoutData, setMainControl, setPluginParameter, setRelatedControl, setValue, setValueProcessor, setVisible, triggerChangeListeners, triggerSubClassChangeListeners, updateControl, validate
-
Field Details
-
iconChooser
private final org.eclipse.swt.widgets.Button iconChooser -
img
private org.eclipse.swt.graphics.Image img -
imgResource
-
-
Constructor Details
-
IconSwtParameter
public IconSwtParameter(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, SwtParameterValueProcessor<IconSwtParameter, String> valueProcessor)
-
-
Method Details
-
releaseImage
private void releaseImage() -
updateButtonIcon
-
refreshControl
public void refreshControl()- Overrides:
refreshControl
in classBaseSwtParameter<IconSwtParameter,
String>
-