Class BooleanSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<BooleanSwtParameter, Boolean>
com.biglybt.ui.swt.config.BooleanSwtParameter
- All Implemented Interfaces:
SwtParameter<Boolean>
Checkbox SWT Parameter representing a Boolean value
Will always use 2 horizontal spaces in GridLayout
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceValue Processor that's parameterized for this class and Boolean valuesNested classes/interfaces inherited from class BaseSwtParameter
BaseSwtParameter.IndentPaintListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Label(package private) final org.eclipse.swt.widgets.Buttonprivate final org.eclipse.swt.widgets.Label(package private) final List<IAdditionalActionPerformer<Object>> (package private) booleanFields inherited from class BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessorFields inherited from interface SwtParameter
DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionBooleanSwtParameter(org.eclipse.swt.widgets.Composite parent, BooleanParameterImpl paramInfo) BooleanSwtParameter(org.eclipse.swt.widgets.Composite parent, String paramID, String labelKey, String suffixLabelKey, SwtParameterValueProcessor<BooleanSwtParameter, Boolean> valueProcessor) Make a checkbox. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()org.eclipse.swt.widgets.Control[]booleanReturnsBaseSwtParameter.getValue()as native boolean, converting null to false;voidvoidsetAdditionalActionPerformer(IAdditionalActionPerformer actionPerformer) voidsetLayoutData(Object layoutData) voidsetSelected(boolean _selected) voidsetValueProcessor(SwtParameterValueProcessor<BooleanSwtParameter, Boolean> valueProcessor) voidprotected voidMethods inherited from class BaseSwtParameter
addAndFireChangeListener, addChangeListener, addLabelContextMenus, addValidator, createStandardLabel, debug, 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, setVisible, triggerChangeListeners, updateControl, validate
-
Field Details
-
lblSuffix
private final org.eclipse.swt.widgets.Label lblSuffix -
cbText
private org.eclipse.swt.widgets.Label cbText -
indentPaintListener
-
checkBox
final org.eclipse.swt.widgets.Button checkBox -
performers
-
performingActionsPerformers
boolean performingActionsPerformers
-
-
Constructor Details
-
BooleanSwtParameter
public BooleanSwtParameter(org.eclipse.swt.widgets.Composite parent, BooleanParameterImpl paramInfo) -
BooleanSwtParameter
public BooleanSwtParameter(org.eclipse.swt.widgets.Composite parent, String paramID, String labelKey, String suffixLabelKey, SwtParameterValueProcessor<BooleanSwtParameter, Boolean> valueProcessor) Make a checkbox. When parent is of GridLayout, resulting new widgets will take 2 columns- Parameters:
parent- Where widgets will be placed. Parent is not alteredparamID- ID of the parameter (usually config id)labelKey- Messagebundle key for the checkboxsuffixLabelKey- Messagebundle key for text after the checkbox (on a new row)valueProcessor- null if you want to use COConfigurationManager
-
-
Method Details
-
setLayoutData
- Specified by:
setLayoutDatain interfaceSwtParameter<Boolean>- Overrides:
setLayoutDatain classBaseSwtParameter<BooleanSwtParameter, Boolean>
-
setValueProcessor
public void setValueProcessor(SwtParameterValueProcessor<BooleanSwtParameter, Boolean> valueProcessor) - Overrides:
setValueProcessorin classBaseSwtParameter<BooleanSwtParameter, Boolean>
-
triggerActionPerformers
public void triggerActionPerformers() -
setAdditionalActionPerformer
-
getAdditionalActionPerformers
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControlsin interfaceSwtParameter<Boolean>- Overrides:
getControlsin classBaseSwtParameter<BooleanSwtParameter, Boolean>
-
isSelected
public boolean isSelected()ReturnsBaseSwtParameter.getValue()as native boolean, converting null to false; -
setSelected
public void setSelected(boolean _selected) -
triggerSubClassChangeListeners
protected void triggerSubClassChangeListeners()- Overrides:
triggerSubClassChangeListenersin classBaseSwtParameter<BooleanSwtParameter, Boolean>
-
refreshControl
public void refreshControl()- Overrides:
refreshControlin classBaseSwtParameter<BooleanSwtParameter, Boolean>
-
dispose
public void dispose()- Overrides:
disposein classBaseSwtParameter<BooleanSwtParameter, Boolean>
-