Class VerifyEvent

SWTEventObject

public final class VerifyEvent extends KeyEvent
Instances of this class are sent as a result of text being modified.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    the range of text being modified.
    int
    the range of text being modified.
    the new text that will be inserted.

    Fields inherited from class KeyEvent

    character, doit, keyCode, stateMask

    Fields inherited from class TypedEvent

    data, display, time, widget
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance of this class based on the information in the given untyped event.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string containing a concise, human-readable description of the receiver.
  • Field Details

    • text

      public String text
      the new text that will be inserted. Setting this field will change the text that is about to be inserted or deleted.
    • start

      public int start
      the range of text being modified. Setting these fields has no effect.
    • end

      public int end
      the range of text being modified. Setting these fields has no effect.
  • Constructor Details

    • VerifyEvent

      public VerifyEvent(Event event)
      Constructs a new instance of this class based on the information in the given untyped event.
      Parameters:
      event - the untyped event containing the information
  • Method Details

    • toString

      public String toString()
      Returns a string containing a concise, human-readable description of the receiver.
      Overrides:
      toString in class KeyEvent
      Returns:
      a string representation of the event