org.xwiki.gwt.wysiwyg.client
Class RichTextEditor

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.Composite
              extended by org.xwiki.gwt.wysiwyg.client.RichTextEditor
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class RichTextEditor
extends com.google.gwt.user.client.ui.Composite

The user interface of the WYSIWYG editor.

Version:
$Id$

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  com.google.gwt.user.client.ui.FlowPanel container
          The UI container.
protected  LoadingPanel loadingPanel
          The panel used to indicate the loading state of the editor.
protected  com.google.gwt.user.client.ui.MenuBar menu
          The menu bar.
protected  RichTextArea textArea
          The rich text area.
protected  ToolBar toolbar
          The tool bar.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
RichTextEditor()
          Creates a new rich text editor.
 
Method Summary
 com.google.gwt.user.client.ui.FlowPanel getContainer()
           
 com.google.gwt.user.client.ui.MenuBar getMenu()
           
 RichTextArea getTextArea()
           
 ToolBar getToolbar()
           
 boolean isLoading()
           
protected  void onLoad()
          
 void setLoading(boolean loading)
          Set the editor loading state.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

menu

protected com.google.gwt.user.client.ui.MenuBar menu
The menu bar.


toolbar

protected ToolBar toolbar
The tool bar.


textArea

protected final RichTextArea textArea
The rich text area.


loadingPanel

protected final LoadingPanel loadingPanel
The panel used to indicate the loading state of the editor.


container

protected final com.google.gwt.user.client.ui.FlowPanel container
The UI container.

Constructor Detail

RichTextEditor

public RichTextEditor()
Creates a new rich text editor.

Method Detail

getMenu

public com.google.gwt.user.client.ui.MenuBar getMenu()
Returns:
the menu bar of this editor.

getToolbar

public ToolBar getToolbar()
Returns:
the tool bar of this editor.

getTextArea

public RichTextArea getTextArea()
Returns:
the text area of this editor.

getContainer

public com.google.gwt.user.client.ui.FlowPanel getContainer()
Returns:
the UI container

setLoading

public void setLoading(boolean loading)
Set the editor loading state. While in loading state a spinner will be displayed.

Parameters:
loading - true to display the editor in loading mode, false to remove the loading mode.

isLoading

public boolean isLoading()
Returns:
true if this rich text editor is currently in loading state, false otherwise

onLoad

protected void onLoad()

Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget
See Also:
Widget.onLoad()


Copyright © 2004-2012 XWiki. All Rights Reserved.