|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.RichTextArea
public class RichTextArea
A rich text editor that allows complex styling and formatting.
Because some browsers do not support rich text editing, and others support
only a limited subset of functionality, there are two formatter interfaces,
accessed via getBasicFormatter() and getExtendedFormatter()
. A browser that does not support rich text editing at all will return
null for both of these, while one that supports only the basic
functionality will return null for the latter.
| Nested Class Summary | |
|---|---|
static interface |
RichTextArea.BasicFormatter
Deprecated. use RichTextArea.Formatter instead |
static interface |
RichTextArea.ExtendedFormatter
Deprecated. use RichTextArea.Formatter instead |
static class |
RichTextArea.FontSize
Font size enumeration. |
static interface |
RichTextArea.Formatter
This interface is used to access full formatting options, when available. |
static class |
RichTextArea.Justification
Justification enumeration. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
RichTextArea()
Creates a new, blank RichTextArea object with no stylesheet. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addInitializeHandler(InitializeHandler handler)
Adds a InitializeEvent handler. |
RichTextArea.BasicFormatter |
getBasicFormatter()
Deprecated. use getFormatter() instead |
RichTextArea.ExtendedFormatter |
getExtendedFormatter()
Deprecated. use getFormatter() instead |
RichTextArea.Formatter |
getFormatter()
Gets the rich text formatting interface. |
java.lang.String |
getHTML()
Gets this object's contents as HTML. |
java.lang.String |
getText()
Gets this object's text. |
boolean |
isEnabled()
Gets whether this widget is enabled. |
void |
setEnabled(boolean enabled)
Sets whether this widget is enabled. |
void |
setFocus(boolean focused)
Explicitly focus/unfocus this widget. |
void |
setHTML(java.lang.String html)
Sets this object's contents via HTML. |
void |
setText(java.lang.String text)
Sets this object's text. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public RichTextArea()
RichTextArea object with no stylesheet.
| Method Detail |
|---|
public HandlerRegistration addInitializeHandler(InitializeHandler handler)
HasInitializeHandlersInitializeEvent handler.
addInitializeHandler in interface HasInitializeHandlershandler - the handler
@Deprecated public RichTextArea.BasicFormatter getBasicFormatter()
getFormatter() instead
RichTextArea is attached, visible on the
page, and has been focused by the user.
null if basic formatting is not supported@Deprecated public RichTextArea.ExtendedFormatter getExtendedFormatter()
getFormatter() instead
RichTextArea is attached, visible on the page, and
has been focused by the user.
null if full formatting is not supportedpublic RichTextArea.Formatter getFormatter()
RichTextArea is attached, visible on the page, and
has been focused by the user.
null if full formatting is not supportedpublic java.lang.String getHTML()
HasHTML
getHTML in interface HasHTMLpublic java.lang.String getText()
HasText
getText in interface HasTextpublic boolean isEnabled()
FocusWidget
isEnabled in class FocusWidgettrue if the widget is enabledpublic void setEnabled(boolean enabled)
FocusWidget
setEnabled in class FocusWidgetenabled - true to enable the widget, false
to disable itpublic void setFocus(boolean focused)
Focusable
setFocus in interface FocusablesetFocus in class FocusWidgetfocused - whether this widget should take focus or release itpublic void setHTML(java.lang.String html)
HasHTMLHasText.setText(String) whenever possible.
setHTML in interface HasHTMLhtml - the object's new HTMLpublic void setText(java.lang.String text)
HasText
setText in interface HasTexttext - the object's new text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||