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

java.lang.Object
  extended by info.magnolia.ui.vaadin.gwt.client.editor.jsni.AbstractFrameEventHandler
Direct Known Subclasses:
GenericFrameEventHandler, WebkitFrameEventHandler

public abstract class AbstractFrameEventHandler
extends Object

AbstractFrameEventHandler.


Constructor Summary
AbstractFrameEventHandler()
           
 
Method Summary
 com.google.web.bindery.event.shared.EventBus getEventBus()
           
 PageEditorView getView()
           
abstract  void init()
           
abstract  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 initNativeMouseSelectionListener(com.google.gwt.dom.client.Element element, PageEditorView.Listener listener)
          Takes care of the touch end events for selecting elements inside the page editor.
 void initNativeTouchSelectionListener(com.google.gwt.dom.client.Element element, PageEditorView.Listener listener)
          Takes care of the mouse up events for selecting elements inside the page editor.
 void initScrollListener(com.google.gwt.dom.client.Element element)
           
abstract  void notifyUrlChange()
           
 void onFrameReady()
           
 void reloadIFrame(com.google.gwt.dom.client.Element iframeElement)
          Force iframe to be reloaded.
 void setEventBus(com.google.web.bindery.event.shared.EventBus eventBus)
           
 void setView(PageEditorView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFrameEventHandler

public AbstractFrameEventHandler()
Method Detail

reloadIFrame

public void reloadIFrame(com.google.gwt.dom.client.Element iframeElement)
Force iframe to be reloaded. for example when content has been updated.


notifyUrlChange

public abstract void notifyUrlChange()

getEventBus

public com.google.web.bindery.event.shared.EventBus getEventBus()

setEventBus

public void setEventBus(com.google.web.bindery.event.shared.EventBus eventBus)

setView

public void setView(PageEditorView view)

getView

public PageEditorView getView()

init

public abstract void init()

onFrameReady

public void onFrameReady()

initNativeTouchSelectionListener

public void initNativeTouchSelectionListener(com.google.gwt.dom.client.Element element,
                                             PageEditorView.Listener listener)
Takes care of the mouse up events for selecting elements inside the page editor. Unfortunately the GWT handlers do not work, so using jsni.


initNativeMouseSelectionListener

public void initNativeMouseSelectionListener(com.google.gwt.dom.client.Element element,
                                             PageEditorView.Listener listener)
Takes care of the touch end events for selecting elements inside the page editor. Unfortunately the GWT handlers do not work, so using jsni.


initNativeKeyListener

public abstract 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.


initScrollListener

public void initScrollListener(com.google.gwt.dom.client.Element element)


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