Package com.biglybt.ui.swt.config
Class IntRadioListSwtParameter
- java.lang.Object
-
- com.biglybt.ui.swt.config.BaseSwtParameter<IntRadioListSwtParameter,java.lang.Integer>
-
- com.biglybt.ui.swt.config.IntRadioListSwtParameter
-
- All Implemented Interfaces:
SwtParameter<java.lang.Integer>
public class IntRadioListSwtParameter extends BaseSwtParameter<IntRadioListSwtParameter,java.lang.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
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Composite
cHolder
private org.eclipse.swt.widgets.Button[]
radios
private int[]
values
-
Fields inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
change_listeners, KEY_LABEL_ADDCOPYTOCLIPMENU, paramID, pluginParam, validating, valueProcessor
-
Fields inherited from interface com.biglybt.ui.swt.config.SwtParameter
DEBUG
-
-
Constructor Summary
Constructors Constructor Description IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, IntListParameterImpl param)
IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String paramID, java.lang.String labelKey, int[] values, java.lang.String[] displayStrings, boolean compact, SwtParameterValueProcessor<IntRadioListSwtParameter,java.lang.Integer> valueProcessor)
Make UI components for a list of in values, displayed as radio buttons
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Control[]
getControls()
void
refreshControl()
-
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
-
-
-
-
Constructor Detail
-
IntRadioListSwtParameter
public IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, IntListParameterImpl param)
-
IntRadioListSwtParameter
public IntRadioListSwtParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String paramID, java.lang.String labelKey, int[] values, java.lang.String[] displayStrings, boolean compact, SwtParameterValueProcessor<IntRadioListSwtParameter,java.lang.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 Detail
-
refreshControl
public void refreshControl()
- Overrides:
refreshControl
in classBaseSwtParameter<IntRadioListSwtParameter,java.lang.Integer>
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()
- Specified by:
getControls
in interfaceSwtParameter<java.lang.Integer>
- Overrides:
getControls
in classBaseSwtParameter<IntRadioListSwtParameter,java.lang.Integer>
-
-