Class TouchEvent


public class TouchEvent extends BrowserEvent
This class contains the data about the touch events. These are the following:
  • The client on which the event occurred
  • The ID of the component on which the event occurred
  • The event type
  • The instance of the component, on which the event occurred
  • The event's unique ID
  • If the event is trusted
  • The amount of mouse clicks
  • The event phase
  • If the event is bubbleable
  • If the event can prevent the default operation
  • Marks if the event had defaultPrevented() called
  • If the event is composed or not
  • The ID of the client, on which the event occurred
  • If the ALT button was held down during the event
  • If the CONTROL button was held down during the event
  • If the Meta button was held down during the event
  • If the SHIFT button was held down during the event
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • TouchEvent

      public TouchEvent()
  • Method Details

    • getAltKey

      public Boolean getAltKey()
      Determines if the ALT key was held down when the event occurred
      Returns:
      true, if the ALT button was held down when the event occurred, otherwise false
    • getCtrlKey

      public Boolean getCtrlKey()
      Determines if the CONTROL key was held down when the event occurred
      Returns:
      true, if the CONTROL button was held down when the event occurred, otherwise false
    • getShiftKey

      public Boolean getShiftKey()
      Determines if the SHIFT key was held down when the event occurred
      Returns:
      true, if the SHIFT button was held down when the event occurred, otherwise false
    • getMetaKey

      public Boolean getMetaKey()
      Determines if the Meta key was held down when the event occurred
      Returns:
      true, if the Meta button was held down when the event occurred, otherwise false