|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.importer.PasteManager
public class PasteManager
A PasteHandler that can filter the value that has been pasted in a RichTextArea.
| Constructor Summary | |
|---|---|
PasteManager()
|
|
| 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. |
protected RichTextArea |
getTextArea()
|
List<com.google.gwt.event.shared.HandlerRegistration> |
initialize(RichTextArea textArea,
ImportServiceAsync importService)
Configures this instance to catch the paste events from the given rich text area and to clean the paste content using the specified service. |
void |
onCopy(CopyEvent event)
|
void |
onPaste(PasteEvent event)
|
protected void |
selectPasteContainer(Element pasteContainer)
Select the contents of the given paste container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasteManager()
| Method Detail |
|---|
public List<com.google.gwt.event.shared.HandlerRegistration> initialize(RichTextArea textArea,
ImportServiceAsync importService)
textArea - the rich text area whose paste event are caughtimportService - the component used to clean the paste content on the server side
protected List<com.google.gwt.event.shared.HandlerRegistration> addHandlers()
public void onPaste(PasteEvent event)
onPaste in interface PasteHandlerprotected void selectPasteContainer(Element pasteContainer)
pasteContainer - the paste containerprotected void centerPasteContainer(Element pasteContainer)
pasteContainer - the paste containerpublic void onCopy(CopyEvent event)
onCopy in interface CopyHandlerprotected RichTextArea getTextArea()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||