public class PlainTextEditor
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.user.client.Window.ClosingHandler
| Constructor and Description |
|---|
PlainTextEditor(Element hook)
Creates a new plain text editor that wraps the given text area element.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.TextArea |
getTextArea() |
boolean |
isLoading() |
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event) |
void |
onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event) |
void |
setFocus(boolean focused)
Set focus on the editor.
|
void |
setLoading(boolean loading)
Puts the editor in loading state.
|
void |
submit()
Stores the value of the plain text area in the hook's value property.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic PlainTextEditor(Element hook)
hook - the element replaced by the newly created plain text editorpublic com.google.gwt.user.client.ui.TextArea getTextArea()
public void setFocus(boolean focused)
focused - true to set the focus on the editor, false blur the editorpublic void setLoading(boolean loading)
loading - true to enter the loading state, false to leave the loading statepublic boolean isLoading()
true if this plain text editor is currently in loading state, false otherwisepublic void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerpublic void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerpublic void submit()
Copyright © 2004–2017 XWiki. All rights reserved.