Class InputField
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
com.developer.nefarious.zjoule.plugin.core.preferences.InputField
public class InputField
extends org.eclipse.jface.preference.StringFieldEditor
Represents a customizable input field for user preferences.
The InputField
extends StringFieldEditor
and provides an
input text field with a fixed width and height. It is designed for use in
Eclipse preference pages to capture user input with validation on focus loss.
-
Field Summary
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor
oldValue, UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionInputField
(String key, String labelText, org.eclipse.swt.widgets.Composite parent) Constructs anInputField
with the specified key, label, and parent composite. -
Method Summary
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor
adjustForNumColumns, checkState, createTextWidget, doCheckState, doFillIntoGrid, doLoad, doLoadDefault, doStore, getErrorMessage, getNumberOfControls, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setEnabled, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged
Methods inherited from class org.eclipse.jface.preference.FieldEditor
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store
-
Constructor Details
-
InputField
Constructs anInputField
with the specified key, label, and parent composite.This constructor initializes the text field with predefined dimensions and attaches it to the specified parent composite.
- Parameters:
key
- the preference key associated with this input field.labelText
- the label text displayed next to the input field.parent
- the parentComposite
in which this field is created.
-