Package com.biglybt.ui.swt.config
Class StringAreaSwtParameter
java.lang.Object
com.biglybt.ui.swt.config.BaseSwtParameter<StringAreaSwtParameter,String>
com.biglybt.ui.swt.config.StringAreaSwtParameter
- All Implemented Interfaces:
SwtParameter<String>
SWT widget representing a multiline String Parameter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
BaseSwtParameter.IndentPaintListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.swt.widgets.Text
private org.eclipse.swt.widgets.Label
private org.eclipse.swt.widgets.Label
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
ConstructorsConstructorDescriptionStringAreaSwtParameter
(org.eclipse.swt.widgets.Composite curComposite, StringParameterImpl pluginParam) StringAreaSwtParameter
(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, String suffixKey, int numLinesToShow, SwtParameterValueProcessor<StringAreaSwtParameter, String> valueProcessor) Make SWT components representing a String Parameter -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.Control[]
int
getPreferredHeight
(int line_count) 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
-
inputField
private final org.eclipse.swt.widgets.Text inputField -
lblSuffix
private org.eclipse.swt.widgets.Label lblSuffix -
lblSuffixGap
private org.eclipse.swt.widgets.Label lblSuffixGap
-
-
Constructor Details
-
StringAreaSwtParameter
public StringAreaSwtParameter(org.eclipse.swt.widgets.Composite curComposite, StringParameterImpl pluginParam) -
StringAreaSwtParameter
public StringAreaSwtParameter(org.eclipse.swt.widgets.Composite composite, String configID, String labelKey, String suffixKey, int numLinesToShow, SwtParameterValueProcessor<StringAreaSwtParameter, String> valueProcessor) Make SWT components representing a String Parameter When parent composite is of GridLayout, resulting new widgets will take 2 columns- Parameters:
composite
- Where widgets will be placed. Composite is not alteredlabelKey
- Messagebundle key for the text shown before text box. null for no label, "" to allocate blank labelsuffixKey
- 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 COConfigurationManagerparamID
- ID of the parameter (usually config id)
-
-
Method Details
-
getPreferredHeight
public int getPreferredHeight(int line_count) -
getControls
public org.eclipse.swt.widgets.Control[] getControls()- Specified by:
getControls
in interfaceSwtParameter<String>
- Overrides:
getControls
in classBaseSwtParameter<StringAreaSwtParameter,
String>
-
refreshControl
public void refreshControl()- Overrides:
refreshControl
in classBaseSwtParameter<StringAreaSwtParameter,
String>
-