org.xwiki.gwt.wysiwyg.client.plugin.importer
Class IEPasteManager

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.PasteManager
      extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.IEPasteManager
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, CopyHandler, org.xwiki.gwt.dom.client.internal.ie.BeforePasteHandler, PasteHandler

public class IEPasteManager
extends PasteManager
implements org.xwiki.gwt.dom.client.internal.ie.BeforePasteHandler

Extends PasteManager in order to perform operations specific to Internet Explorer.

Since:
5.0M2
Version:
$Id: 2ad1a063eefe21ce8c0aa9ff8e251236d554f812 $

Constructor Summary
IEPasteManager()
           
 
Method Summary
protected  List<com.google.gwt.event.shared.HandlerRegistration> addHandlers()
          Adds all required event handlers and returns their registrations so that they can be unregistered at the end.
protected  void centerPasteContainer(Element pasteContainer)
          We added this method just to be able to override it for IE9 so that we can overcome a GWT bug.
 void onBeforePaste(org.xwiki.gwt.dom.client.internal.ie.BeforePasteEvent event)
           
protected  void selectPasteContainer(Element pasteContainer)
          Select the contents of the given paste container.
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.importer.PasteManager
getTextArea, initialize, onCopy, onPaste
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IEPasteManager

public IEPasteManager()
Method Detail

addHandlers

protected List<com.google.gwt.event.shared.HandlerRegistration> addHandlers()
Description copied from class: PasteManager
Adds all required event handlers and returns their registrations so that they can be unregistered at the end.

Overrides:
addHandlers in class PasteManager
Returns:
the list of event handler registrations

onBeforePaste

public void onBeforePaste(org.xwiki.gwt.dom.client.internal.ie.BeforePasteEvent event)
Specified by:
onBeforePaste in interface org.xwiki.gwt.dom.client.internal.ie.BeforePasteHandler

centerPasteContainer

protected void centerPasteContainer(Element pasteContainer)
We added this method just to be able to override it for IE9 so that we can overcome a GWT bug.

Document.getScrollTop() and Document.getScrollLeft() are broken for nested documents in IE9.

Overrides:
centerPasteContainer in class PasteManager
Parameters:
pasteContainer - the paste container
See Also:
getAbsoluteTop/getScrollTop returns wrong values for IE9 when body has been scrolled, Document#getScrollTop() and Document#getScrollLeft() are broken for nested documents in IE9

selectPasteContainer

protected void selectPasteContainer(Element pasteContainer)
Description copied from class: PasteManager
Select the contents of the given paste container.

Overrides:
selectPasteContainer in class PasteManager
Parameters:
pasteContainer - the paste container


Copyright © 2004-2013 XWiki. All Rights Reserved.