Package com.biglybt.ui.swt.config
Class IntListSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<IntListSwtParameter,Integer>
com.biglybt.ui.swt.config.IntListSwtParameter
- All Implemented Interfaces:
SwtParameter<Integer>
SWT Parameter for selecting from a list of int values
Displayed as Combo box.
Will always use 2 horizontal spaces in GridLayout
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
BaseSwtParameter.IndentPaintListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Label
private final org.eclipse.swt.widgets.Combo
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
ConstructorsConstructorDescriptionIntListSwtParameter
(org.eclipse.swt.widgets.Composite composite, IntListParameterImpl param) IntListSwtParameter
(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, String suffixLabelKey, int[] values, String[] displayStrings, SwtParameterValueProcessor<IntListSwtParameter, Integer> valueProcessor) Make UI components for a list of int values -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
org.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
-
list
private final org.eclipse.swt.widgets.Combo list -
lblSuffix
private org.eclipse.swt.widgets.Label lblSuffix -
values
private final int[] values
-
-
Constructor Details
-
IntListSwtParameter
-
IntListSwtParameter
public IntListSwtParameter(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, String suffixLabelKey, int[] values, String[] displayStrings, SwtParameterValueProcessor<IntListSwtParameter, Integer> valueProcessor) Make UI components for a list of int values 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 boxsuffixLabelKey
- Messagebundle key for text shown after the text boxvalues
- list of values that can be storeddisplayStrings
- fancy words representing each valuevalueProcessor
- null if you want to use COConfigurationManager
-
-
Method Details
-
refreshControl
public void refreshControl()- Overrides:
refreshControl
in classBaseSwtParameter<IntListSwtParameter,
Integer>
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControls
in interfaceSwtParameter<Integer>
- Overrides:
getControls
in classBaseSwtParameter<IntListSwtParameter,
Integer>
-
findIndex
-