info.magnolia.ui.vaadin.gwt.client.editor.jsni
Class WebkitFrameEventHandler

java.lang.Object
  extended by info.magnolia.ui.vaadin.gwt.client.editor.jsni.AbstractFrameEventHandler
      extended by info.magnolia.ui.vaadin.gwt.client.editor.jsni.WebkitFrameEventHandler

public class WebkitFrameEventHandler
extends AbstractFrameEventHandler

WebkitFrameEventHandler. Provides separated implementations to overcome different bugs in the handling of iframes on webkit browsers including the iPad.


Constructor Summary
WebkitFrameEventHandler()
           
 
Method Summary
 void bindReadyHandler(com.google.gwt.dom.client.Element iframe)
          Uses jQuery to detect when the iFrame is ready.
 void initNativeKeyListener(com.google.gwt.dom.client.Element element)
          Catches key events on the contentDocument of the frame Element and fires it on the frame to enable event bubbling from the frame up to the DOM.
 void initNativeTouchSelectionListener(com.google.gwt.dom.client.Element element, PageEditorView.Listener listener)
          Custom implementation for iPads of the touch end handling.
 void registerLoadHandler()
           
 
Methods inherited from class info.magnolia.ui.vaadin.gwt.client.editor.jsni.AbstractFrameEventHandler
getEventBus, getView, init, initNativeMouseSelectionListener, initScrollListener, onFrameReady, reloadIFrame, setEventBus, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebkitFrameEventHandler

public WebkitFrameEventHandler()
Method Detail

registerLoadHandler

public void registerLoadHandler()
Specified by:
registerLoadHandler in class AbstractFrameEventHandler

bindReadyHandler

public void bindReadyHandler(com.google.gwt.dom.client.Element iframe)
Uses jQuery to detect when the iFrame is ready.


initNativeTouchSelectionListener

public void initNativeTouchSelectionListener(com.google.gwt.dom.client.Element element,
                                             PageEditorView.Listener listener)
Custom implementation for iPads of the touch end handling. Suppresses the selection, when scrolling.

Overrides:
initNativeTouchSelectionListener in class AbstractFrameEventHandler

initNativeKeyListener

public void initNativeKeyListener(com.google.gwt.dom.client.Element element)
Description copied from class: AbstractFrameEventHandler
Catches key events on the contentDocument of the frame Element and fires it on the frame to enable event bubbling from the frame up to the DOM.

Specified by:
initNativeKeyListener in class AbstractFrameEventHandler


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.