Class PWText

java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget
org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWText
Direct Known Subclasses:
PWFloatText, PWIntegerText, PWPasswordText, PWStringText, PWURLText

public abstract class PWText
extends PWWidget
This is the abstract class for all text widgets (except textarea)
  • Field Details

    • text

      protected org.eclipse.swt.widgets.Text text
  • Constructor Details

    • PWText

      public PWText​(java.lang.String label, java.lang.String propertyKey)
      Constructor
      Parameters:
      label - associated label
      propertyKey - associated property key
  • Method Details

    • build

      public org.eclipse.swt.widgets.Control build​(org.eclipse.swt.widgets.Composite parent)
      Description copied from class: PWWidget
      Build the widget
      Specified by:
      build in class PWWidget
      Parameters:
      parent - parent composite
      Returns:
      the created control
    • addVerifyListeners

      public abstract void addVerifyListeners()
      Add the verify listeners
    • convertValue

      public abstract java.lang.Object convertValue()
      Returns:
      the value of the data typed by the user in the correct format
    • getStyle

      public abstract int getStyle()
      Returns:
      the style (SWT.NONE or SWT.PASSWORD)