org.xwiki.gwt.wysiwyg.client
Class WysiwygEditorTabSwitchHandler

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.WysiwygEditorTabSwitchHandler
All Implemented Interfaces:
com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer>, com.google.gwt.event.logical.shared.SelectionHandler<Integer>, com.google.gwt.event.shared.EventHandler

public class WysiwygEditorTabSwitchHandler
extends Object
implements com.google.gwt.event.logical.shared.SelectionHandler<Integer>, com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer>

WysiwygEditor tab-switch handler.

Version:
$Id: 79605b6e7220c3c86af8835bdc5df875469d43c6 $

Method Summary
 void convertFromHTML(String html)
          Converts the given HTML fragment to source and updates the plain text area.
 void convertToHTML(String source)
          Converts the given source text to HTML and updates the rich text area.
 void onBeforeSelection(com.google.gwt.event.logical.shared.BeforeSelectionEvent<Integer> event)
          
 void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<Integer> event)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onBeforeSelection

public void onBeforeSelection(com.google.gwt.event.logical.shared.BeforeSelectionEvent<Integer> event)

Specified by:
onBeforeSelection in interface com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer>
See Also:
BeforeSelectionHandler.onBeforeSelection(BeforeSelectionEvent)

onSelection

public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<Integer> event)

Specified by:
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<Integer>
See Also:
SelectionHandler.onSelection(SelectionEvent)

convertFromHTML

public void convertFromHTML(String html)
Converts the given HTML fragment to source and updates the plain text area.

Parameters:
html - the HTML fragment to be converted to source

convertToHTML

public void convertToHTML(String source)
Converts the given source text to HTML and updates the rich text area.

Parameters:
source - the source text to be converted to HTML


Copyright © 2004-2013 XWiki. All Rights Reserved.