public class VRichTextArea extends com.google.gwt.user.client.ui.Composite implements Field, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.user.client.ui.Focusable
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME
The input node CSS classname.
|
ApplicationConnection |
client
For internal use only.
|
VRichTextToolbar |
formatter
For internal use only.
|
com.google.gwt.user.client.ui.HTML |
html
For internal use only.
|
String |
id
For internal use only.
|
boolean |
immediate
For internal use only.
|
com.google.gwt.event.shared.HandlerRegistration |
keyPressHandler
For internal use only.
|
int |
maxLength
For internal use only.
|
com.google.gwt.user.client.ui.RichTextArea |
rta
For internal use only.
|
Constructor and Description |
---|
VRichTextArea() |
Modifier and Type | Method and Description |
---|---|
void |
addBlurHandler(com.google.gwt.event.dom.client.BlurHandler blurHandler)
Adds a blur handler to the component.
|
String |
getSanitizedValue()
Browsers differ in what they return as the content of a visually empty
rich text area.
|
int |
getTabIndex() |
String |
getValue()
Get the value the text area
|
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event) |
void |
removeBlurHandler(com.google.gwt.event.dom.client.BlurHandler blurHandler)
Removes a blur handler.
|
void |
selectAll()
For internal use only.
|
void |
setAccessKey(char key) |
void |
setEnabled(boolean enabled) |
void |
setFocus(boolean focused) |
void |
setHeight(String height) |
void |
setReadOnly(boolean b) |
void |
setTabIndex(int index) |
void |
setValue(String value)
Set the value of the text area
|
void |
setWidth(String width) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
public static final String CLASSNAME
public String id
public ApplicationConnection client
public boolean immediate
public com.google.gwt.user.client.ui.RichTextArea rta
public VRichTextToolbar formatter
public com.google.gwt.user.client.ui.HTML html
public int maxLength
public com.google.gwt.event.shared.HandlerRegistration keyPressHandler
public void setEnabled(boolean enabled)
public void selectAll()
public void setReadOnly(boolean b)
public void setHeight(String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress
in interface com.google.gwt.event.dom.client.KeyPressHandler
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown
in interface com.google.gwt.event.dom.client.KeyDownHandler
public int getTabIndex()
getTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public void setAccessKey(char key)
setAccessKey
in interface com.google.gwt.user.client.ui.Focusable
public void setFocus(boolean focused)
setFocus
in interface com.google.gwt.user.client.ui.Focusable
public void setTabIndex(int index)
setTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public void setValue(String value)
value
- The text value. Can be html.public String getValue()
public String getSanitizedValue()
public void addBlurHandler(com.google.gwt.event.dom.client.BlurHandler blurHandler)
blurHandler
- the blur handler to addpublic void removeBlurHandler(com.google.gwt.event.dom.client.BlurHandler blurHandler)
blurHandler
- the handler to removeCopyright © 2019 Vaadin Ltd. All rights reserved.