Package com.biglybt.ui.swt.config
Class InfoSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<InfoSwtParameter,String>
com.biglybt.ui.swt.config.InfoSwtParameter
- All Implemented Interfaces:
SwtParameter<String>
Displays a message stored in
COConfigurationManager
,
or just a label,
or a label and a value-
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.Control
private String
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
ConstructorsConstructorDescriptionInfoSwtParameter
(org.eclipse.swt.widgets.Composite parent, InfoParameterImpl infoParameter) InfoSwtParameter
(org.eclipse.swt.widgets.Composite parent, LabelParameterImpl labelParameter) InfoSwtParameter
(org.eclipse.swt.widgets.Composite parent, String configID, String labelKey, String infoVal, boolean isSelectable) If configKey != null:
[label][config value]
If config == null:
[label][infoVal] -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doGridData
(org.eclipse.swt.widgets.Composite composite) getValue()
void
private void
setInfoVal
(String infoVal) Methods inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
addAndFireChangeListener, addChangeListener, addLabelContextMenus, addValidator, createStandardLabel, debug, dispose, getControls, getIndent, getMainControl, getParamID, getRelatedControl, 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
-
control
private final org.eclipse.swt.widgets.Control control -
labelKey
-
infoVal
-
-
Constructor Details
-
InfoSwtParameter
public InfoSwtParameter(org.eclipse.swt.widgets.Composite parent, LabelParameterImpl labelParameter) -
InfoSwtParameter
-
InfoSwtParameter
public InfoSwtParameter(org.eclipse.swt.widgets.Composite parent, String configID, String labelKey, String infoVal, boolean isSelectable) If configKey != null:
[label][config value]
If config == null:
[label][infoVal]- Parameters:
parent
-configID
-labelKey
-infoVal
-
-
-
Method Details
-
doGridData
protected boolean doGridData(org.eclipse.swt.widgets.Composite composite) - Overrides:
doGridData
in classBaseSwtParameter<InfoSwtParameter,
String>
-
refreshControl
public void refreshControl()- Overrides:
refreshControl
in classBaseSwtParameter<InfoSwtParameter,
String>
-
getValue
- Specified by:
getValue
in interfaceSwtParameter<String>
- Overrides:
getValue
in classBaseSwtParameter<InfoSwtParameter,
String>
-
setInfoVal
-