Class LongSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<LongSwtParameter, Long>
com.biglybt.ui.swt.config.LongSwtParameter
- All Implemented Interfaces:
SwtParameter<Long>
-
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 longprivate longprivate booleanprivate org.eclipse.swt.widgets.Labelprivate final org.eclipse.swt.widgets.Spinnerprivate TimerEventprivate TimerEventPerformerprivate longFields inherited from class BaseSwtParameter
change_listeners, paramID, pluginParam, validating, valueProcessorFields inherited from interface SwtParameter
DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionLongSwtParameter(org.eclipse.swt.widgets.Composite composite, LongParameterImpl param) LongSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, long minValue, long maxValue, SwtParameterValueProcessor<LongSwtParameter, Long> valueProcessor) Make a long value selecting ui.LongSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixKey, SwtParameterValueProcessor<LongSwtParameter, Long> valueProcessor) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidorg.eclipse.swt.widgets.Control[]longbooleanvoidvoidsetMaximumValue(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 long valueWhenBlank -
colorHidden
private org.eclipse.swt.graphics.Color colorHidden -
lblSuffix
private org.eclipse.swt.widgets.Label lblSuffix -
iMinValue
private long iMinValue -
iMaxValue
private long 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
-
LongSwtParameter
-
LongSwtParameter
public LongSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixKey, SwtParameterValueProcessor<LongSwtParameter, Long> valueProcessor) -
LongSwtParameter
public LongSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String suffixLabelKey, long minValue, long maxValue, SwtParameterValueProcessor<LongSwtParameter, Long> valueProcessor) Make a long 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<LongSwtParameter, Long>
-
refreshControl
public void refreshControl()- Overrides:
refreshControlin classBaseSwtParameter<LongSwtParameter, Long>
-
getLongValue
public long getLongValue() -
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControlsin interfaceSwtParameter<Long>- Overrides:
getControlsin classBaseSwtParameter<LongSwtParameter, Long>
-
disableTimedSave
public void disableTimedSave() -
isZeroHidden
public boolean isZeroHidden() -
setZeroHidden
public void setZeroHidden(boolean isZeroHidden) -
setSuffixLabelKey
-
setSuffixLabelText
-