Package com.biglybt.ui.swt.config
Class StringAreaSwtParameter
- java.lang.Object
-
- com.biglybt.ui.swt.config.BaseSwtParameter<StringAreaSwtParameter,java.lang.String>
-
- com.biglybt.ui.swt.config.StringAreaSwtParameter
-
- All Implemented Interfaces:
SwtParameter<java.lang.String>
public class StringAreaSwtParameter extends BaseSwtParameter<StringAreaSwtParameter,java.lang.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
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Text
inputField
private org.eclipse.swt.widgets.Label
lblSuffix
private org.eclipse.swt.widgets.Label
lblSuffixGap
-
Fields inherited from class com.biglybt.ui.swt.config.BaseSwtParameter
change_listeners, KEY_LABEL_ADDCOPYTOCLIPMENU, paramID, pluginParam, validating, valueProcessor
-
Fields inherited from interface com.biglybt.ui.swt.config.SwtParameter
DEBUG
-
-
Constructor Summary
Constructors Constructor Description StringAreaSwtParameter(org.eclipse.swt.widgets.Composite curComposite, StringParameterImpl pluginParam)
StringAreaSwtParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String configID, java.lang.String labelKey, java.lang.String suffixKey, int numLinesToShow, SwtParameterValueProcessor<StringAreaSwtParameter,java.lang.String> valueProcessor)
Make SWT components representing a String Parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Control[]
getControls()
int
getPreferredHeight(int line_count)
void
refreshControl()
-
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
-
-
-
-
Constructor Detail
-
StringAreaSwtParameter
public StringAreaSwtParameter(org.eclipse.swt.widgets.Composite curComposite, StringParameterImpl pluginParam)
-
StringAreaSwtParameter
public StringAreaSwtParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String configID, java.lang.String labelKey, java.lang.String suffixKey, int numLinesToShow, SwtParameterValueProcessor<StringAreaSwtParameter,java.lang.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 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 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 COConfigurationManager
-
-
Method Detail
-
getPreferredHeight
public int getPreferredHeight(int line_count)
-
getControls
public org.eclipse.swt.widgets.Control[] getControls()
- Specified by:
getControls
in interfaceSwtParameter<java.lang.String>
- Overrides:
getControls
in classBaseSwtParameter<StringAreaSwtParameter,java.lang.String>
-
refreshControl
public void refreshControl()
- Overrides:
refreshControl
in classBaseSwtParameter<StringAreaSwtParameter,java.lang.String>
-
-