Beispiel #1
0
 /**
  * Adds an event preview to the preview stack. As long as this preview remains on the top of the
  * stack, it will receive all events before they are fired to their listeners. Note that the event
  * preview will receive <u>all </u> events, including those received due to bubbling, whereas
  * normal event handlers only receive explicitly sunk events.
  *
  * @param preview the event preview to be added to the stack.
  * @deprecated replaced by {@link Event#addNativePreviewHandler(Event.NativePreviewHandler)}
  */
 @Deprecated
 public static void addEventPreview(EventPreview preview) {
   NativePreview.add(preview);
 }
Beispiel #2
0
 /**
  * Removes an element from the preview stack. This element will no longer capture events, though
  * any preview underneath it will begin to do so.
  *
  * @param preview the event preview to be removed from the stack
  * @deprecated use {@link com.google.gwt.event.shared.HandlerRegistration} returned from {@link
  *     Event#addNativePreviewHandler(Event.NativePreviewHandler)}
  */
 @Deprecated
 public static void removeEventPreview(EventPreview preview) {
   NativePreview.remove(preview);
 }