Package com.biglybt.ui.swt.config
Class BaseSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>,VALUETYPE>
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<PARAMTYPE,VALUETYPE>
- All Implemented Interfaces:
SwtParameter<VALUETYPE>
- Direct Known Subclasses:
BaseSwtStringParameter
,BooleanSwtParameter
,ButtonSwtParameter
,ColorSwtParameter
,FloatSwtParameter
,IconSwtParameter
,InfoSwtParameter
,IntListSwtParameter
,IntRadioListSwtParameter
,IntSwtParameter
,LinkSwtParameter
,PasswordSwtParameter
,StringAreaSwtParameter
,StringListSwtParameter
,TextAreaSwtParameter
,UISWTParameter
public abstract class BaseSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>,VALUETYPE>
extends Object
implements SwtParameter<VALUETYPE>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ParameterChangeListener<PARAMTYPE>>
private static final AEMonitor
private boolean
private boolean
private int
private org.eclipse.swt.widgets.Control
private String
protected final String
protected Parameter
private org.eclipse.swt.widgets.Control
private final PARAMTYPE
(package private) boolean
private final List<SwtParameterValidator<PARAMTYPE,
VALUETYPE>> protected SwtParameterValueProcessor<PARAMTYPE,
VALUETYPE> Fields inherited from interface com.biglybt.ui.swt.config.SwtParameter
DEBUG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Note: Change Listener may be triggered off SWT Threadprotected void
addLabelContextMenus
(org.eclipse.swt.widgets.Control curControl, org.eclipse.swt.widgets.Menu menu) void
addValidator
(SwtParameterValidator<PARAMTYPE, VALUETYPE> validator) (package private) org.eclipse.swt.widgets.Control
createStandardLabel
(org.eclipse.swt.widgets.Composite parent, String labelKey) void
protected void
dispose()
protected boolean
doGridData
(org.eclipse.swt.widgets.Composite composite) org.eclipse.swt.widgets.Control[]
int
final org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Control
getValue()
void
Parameter has changed.boolean
boolean
boolean
boolean
void
protected void
refreshSuffixControl
(org.eclipse.swt.widgets.Control suffixControl) void
void
removeValidator
(SwtParameterValidator<PARAMTYPE, VALUETYPE> validator) boolean
protected void
void
setEnabled
(boolean enabled) void
setIndent
(int i, boolean fancy) void
setLabelKey
(String labelKey) void
setLabelText
(String text) void
setLayoutData
(Object layoutData) Deprecated.void
setMainControl
(org.eclipse.swt.widgets.Control mainControl) protected void
setPluginParameter
(Parameter pluginParam) protected void
setRelatedControl
(org.eclipse.swt.widgets.Control control) final void
void
setValueProcessor
(SwtParameterValueProcessor<PARAMTYPE, VALUETYPE> valueProcessor) void
setVisible
(boolean visible) protected final void
triggerChangeListeners
(boolean doRefresh) protected void
protected void
updateControl
(ParameterValidator.ValidationInfo validationInfo)
-
Field Details
-
paramID
-
valueProcessor
protected SwtParameterValueProcessor<PARAMTYPE extends SwtParameter<VALUETYPE>,VALUETYPE> valueProcessor -
change_listeners
-
validators
private final List<SwtParameterValidator<PARAMTYPE extends SwtParameter<VALUETYPE>,VALUETYPE>> validators -
class_mon
-
thisTyped
-
oldTooltip
-
pluginParam
-
fancyPaintListener
-
lastValidationInfo
-
enabled
private boolean enabled -
indent
private int indent -
mainControl
private org.eclipse.swt.widgets.Control mainControl -
disposed
private boolean disposed -
validating
boolean validating
-
-
Constructor Details
-
BaseSwtParameter
-
-
Method Details
-
getParamID
- Specified by:
getParamID
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
setMainControl
public void setMainControl(org.eclipse.swt.widgets.Control mainControl) -
getMainControl
public final org.eclipse.swt.widgets.Control getMainControl()- Specified by:
getMainControl
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControls
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
addValidator
-
removeValidator
-
validate
-
updateControl
-
addAndFireChangeListener
-
addChangeListener
Note: Change Listener may be triggered off SWT Thread -
removeChangeListener
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
setValue
- Specified by:
setValue
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
doGridData
protected boolean doGridData(org.eclipse.swt.widgets.Composite composite) -
refreshControl
public void refreshControl() -
refreshSuffixControl
protected void refreshSuffixControl(org.eclipse.swt.widgets.Control suffixControl) -
setLayoutData
Deprecated.- Specified by:
setLayoutData
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
getValue
- Specified by:
getValue
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
informChanged
public void informChanged()Description copied from interface:SwtParameter
Parameter has changed. Should probably refreshControl any UI components- Specified by:
informChanged
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
triggerChangeListeners
protected final void triggerChangeListeners(boolean doRefresh) -
triggerSubClassChangeListeners
protected void triggerSubClassChangeListeners() -
getRelatedControl
public org.eclipse.swt.widgets.Control getRelatedControl() -
setRelatedControl
protected void setRelatedControl(org.eclipse.swt.widgets.Control control) -
addLabelContextMenus
protected void addLabelContextMenus(org.eclipse.swt.widgets.Control curControl, org.eclipse.swt.widgets.Menu menu) -
resetToDefault
public boolean resetToDefault() -
isDefaultValue
public boolean isDefaultValue() -
setPluginParameter
-
setValueProcessor
-
setConfigValueProcessor
-
getValueProcessor
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
debug
- Specified by:
debug
in interfaceSwtParameter<PARAMTYPE extends SwtParameter<VALUETYPE>>
-
getIndent
public int getIndent() -
isIndentFancy
public boolean isIndentFancy() -
setIndent
public void setIndent(int i, boolean fancy) -
isEnabled
public boolean isEnabled() -
dispose
protected void dispose() -
createStandardLabel
org.eclipse.swt.widgets.Control createStandardLabel(org.eclipse.swt.widgets.Composite parent, String labelKey) -
setLabelKey
-
setLabelText
-