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

    Constructors
    Constructor
    Description
    InputField(String key, String labelText, org.eclipse.swt.widgets.Composite parent)
    Constructs an InputField 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputField

      public InputField(String key, String labelText, org.eclipse.swt.widgets.Composite parent)
      Constructs an InputField 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 parent Composite in which this field is created.