Package com.biglybt.ui.swt.config
Class IntRadioListSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<IntRadioListSwtParameter,Integer>
com.biglybt.ui.swt.config.IntRadioListSwtParameter
- All Implemented Interfaces:
SwtParameter<Integer>
SWT Parameter for selecting from a list of int values.
Displayed as Radio Buttons.
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.Composite
private final org.eclipse.swt.widgets.Button[]
private final int[]
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
ConstructorsConstructorDescriptionIntRadioListSwtParameter
(org.eclipse.swt.widgets.Composite composite, IntListParameterImpl param) IntRadioListSwtParameter
(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, int[] values, String[] displayStrings, boolean compact, SwtParameterValueProcessor<IntRadioListSwtParameter, Integer> valueProcessor) Make UI components for a list of in values, displayed as radio buttons -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.Control[]
void
Methods inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
addAndFireChangeListener, addChangeListener, addLabelContextMenus, 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, setLayoutData, setMainControl, setPluginParameter, setRelatedControl, setValue, setValueProcessor, setVisible, triggerChangeListeners, triggerSubClassChangeListeners, updateControl, validate
-
Field Details
-
cHolder
private final org.eclipse.swt.widgets.Composite cHolder -
radios
private final org.eclipse.swt.widgets.Button[] radios -
values
private final int[] values
-
-
Constructor Details
-
IntRadioListSwtParameter
public IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, IntListParameterImpl param) -
IntRadioListSwtParameter
public IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, int[] values, String[] displayStrings, boolean compact, SwtParameterValueProcessor<IntRadioListSwtParameter, Integer> valueProcessor) Make UI components for a list of in values, displayed as radio buttons When parent composite 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 text boxvalues
- list of values that can be storeddisplayStrings
- fancy words representing each valuecompact
- true - all in one wrappable row; false - one option per rowvalueProcessor
- null if you want to use COConfigurationManager
-
-
Method Details
-
refreshControl
public void refreshControl()- Overrides:
refreshControl
in classBaseSwtParameter<IntRadioListSwtParameter,
Integer>
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControls
in interfaceSwtParameter<Integer>
- Overrides:
getControls
in classBaseSwtParameter<IntRadioListSwtParameter,
Integer>
-