Class GestureChain

    • Method Detail

      • cancel

        public void cancel()
        Description copied from interface: GestureRecognizer
        Ends recognition of the gesture, and fires any cancel events that apply. Any touch events being recognized by this object will now be ignored.
        Specified by:
        cancel in interface GestureRecognizer
      • handle

        public boolean handle​(com.google.gwt.dom.client.NativeEvent event)
        Description copied from interface: GestureRecognizer

        Takes a browser event, and checks to see if it should decipher a gesture from it.

        Callers of this are expected to do their own vetting to decide if the given event should be handled by this gesture - for example, if a cell accepts a tap on one part of it and a longpress on another, the cell should determine where the touch events occur and send to the right recognizer accordingly.

        Specified by:
        handle in interface GestureRecognizer
        Parameters:
        event - the browser event to read for a gesture.
        Returns:
        true if the gesture is not handling the event and can allow it to be propagated, false to indicate that it has been handled and should not be given to other handlers. Should always return true for any start event.
      • setDelegate

        public void setDelegate​(com.google.gwt.event.shared.HasHandlers eventDelegate)
        Description copied from interface: GestureRecognizer
        Sets delegate to receive Gesture events
        Specified by:
        setDelegate in interface GestureRecognizer
        Parameters:
        eventDelegate - the event handler delegate