org.gwtwidgets.client.wrap
Class TinyMCEEditor

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.FocusWidget
              extended by com.google.gwt.user.client.ui.TextBoxBase
                  extended by com.google.gwt.user.client.ui.TextArea
                      extended by org.gwtwidgets.client.wrap.TinyMCEEditor
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasName, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.SourcesChangeEvents, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesKeyboardEvents

public class TinyMCEEditor
extends com.google.gwt.user.client.ui.TextArea

Wrapper to use TinyMCE. Install by downloading tinyMCE from http://tinymce.moxiecode.com/. Copy the tiny_mce folder to a location in your application like src/com.application.gwt/public/scripts/tiny_mce In your GWT application Entry Point html file initialize TinyMCE. NOTE: If you use Scriptaculous and TinyMCE, make sure you include the tiny_mce.js before the prototype.js and scriptaculous.js tags, otherwise you will have loading issues.

Author:
Joe Toth (joetoth@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.TextBoxBase
com.google.gwt.user.client.ui.TextBoxBase.TextAlignConstant
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.TextBoxBase
ALIGN_CENTER, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_RIGHT
 
Constructor Summary
TinyMCEEditor()
           
 
Method Summary
 java.lang.String getText()
           
protected  void onLoad()
           
 
Methods inherited from class com.google.gwt.user.client.ui.TextArea
getCharacterWidth, getCursorPos, getSelectionLength, getVisibleLines, setCharacterWidth, setVisibleLines
 
Methods inherited from class com.google.gwt.user.client.ui.TextBoxBase
addChangeListener, addClickListener, addKeyboardListener, cancelKey, getImpl, getName, getSelectedText, isReadOnly, onBrowserEvent, removeChangeListener, removeClickListener, removeKeyboardListener, selectAll, setCursorPos, setKey, setName, setReadOnly, setSelectionRange, setText, setTextAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addFocusListener, getFocusImpl, getTabIndex, isEnabled, removeFocusListener, setAccessKey, setElement, setEnabled, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, onUnload, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TinyMCEEditor

public TinyMCEEditor()
Method Detail

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

getText

public java.lang.String getText()
Specified by:
getText in interface com.google.gwt.user.client.ui.HasText
Overrides:
getText in class com.google.gwt.user.client.ui.TextBoxBase


Copyright © 2009. All Rights Reserved.