Class IntSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<IntSwtParameter, Integer>
com.biglybt.ui.swt.config.IntSwtParameter
- All Implemented Interfaces:
SwtParameter<Integer>
SWT widget representing an Int Parameter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class BaseSwtParameter
BaseSwtParameter.IndentPaintListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate org.eclipse.swt.graphics.Colorprivate booleanprivate intprivate intprivate booleanprivate org.eclipse.swt.widgets.Labelprivate final org.eclipse.swt.widgets.Spinnerprivate TimerEventprivate TimerEventPerformerprivate intFields inherited from class BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessorFields inherited from interface SwtParameter
DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionIntSwtParameter(org.eclipse.swt.widgets.Composite composite, IntParameterImpl param) IntSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, int minValue, int maxValue, SwtParameterValueProcessor<IntSwtParameter, Integer> valueProcessor) Make a int value selecting ui.IntSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixKey, SwtParameterValueProcessor<IntSwtParameter, Integer> valueProcessor) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidorg.eclipse.swt.widgets.Control[]intbooleanvoidvoidsetMaximumValue(int value) voidsetMinimumValue(int value) voidsetSuffixLabelKey(String suffixLabelKey) voidsetSuffixLabelText(String text) voidsetZeroHidden(boolean isZeroHidden) Methods inherited from class 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
-
Field Details
-
valueWhenBlank
private int valueWhenBlank -
colorHidden
private org.eclipse.swt.graphics.Color colorHidden -
lblSuffix
private org.eclipse.swt.widgets.Label lblSuffix -
iMinValue
private int iMinValue -
iMaxValue
private int iMaxValue -
bTriggerOnFocusOut
private boolean bTriggerOnFocusOut -
spinner
private final org.eclipse.swt.widgets.Spinner spinner -
timedSaveEvent
-
timerEventSave
-
isZeroHidden
private boolean isZeroHidden -
disableTimedSave
private boolean disableTimedSave
-
-
Constructor Details
-
IntSwtParameter
-
IntSwtParameter
public IntSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixKey, SwtParameterValueProcessor<IntSwtParameter, Integer> valueProcessor) -
IntSwtParameter
public IntSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, int minValue, int maxValue, SwtParameterValueProcessor<IntSwtParameter, Integer> valueProcessor) Make a int value selecting ui. 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 box. null for no label, "" to allocate blank labelsuffixLabelKey- Messagebundle key for text shown after the text box null for no suffix label, "" to allocate blank suffix labelvalueProcessor- null if you want to use COConfigurationManager
-
-
Method Details
-
cancelTimedSaveEvent
private void cancelTimedSaveEvent() -
setMinimumValue
public void setMinimumValue(int value) -
setMaximumValue
public void setMaximumValue(int value) -
validate
- Overrides:
validatein classBaseSwtParameter<IntSwtParameter, Integer>
-
refreshControl
public void refreshControl()- Overrides:
refreshControlin classBaseSwtParameter<IntSwtParameter, Integer>
-
getIntValue
public int getIntValue() -
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControlsin interfaceSwtParameter<Integer>- Overrides:
getControlsin classBaseSwtParameter<IntSwtParameter, Integer>
-
disableTimedSave
public void disableTimedSave() -
isZeroHidden
public boolean isZeroHidden() -
setZeroHidden
public void setZeroHidden(boolean isZeroHidden) -
setSuffixLabelKey
-
setSuffixLabelText
-