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 BaseSwtParameter
BaseSwtParameter.IndentPaintListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.swt.widgets.Buttonprivate org.eclipse.swt.graphics.Imageprivate StringFields inherited from class BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessorFields inherited from interface 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 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:
refreshControlin classBaseSwtParameter<IconSwtParameter, String>
-