com.vaadin.terminal.gwt.client.ui.richtextarea.
Class VRichTextArea
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea
All Implemented Interfaces:
com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.IsWidget, Paintable, Field, ShortcutActionHandler.BeforeShortcutActionListener
- extends com.google.gwt.user.client.ui.Composite
- implements Paintable, Field, com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyDownHandler, ShortcutActionHandler.BeforeShortcutActionListener, com.google.gwt.user.client.ui.Focusable
public class VRichTextArea
This class implements a basic client side rich text editor component.
Author:
Vaadin Ltd.
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 | |
---|---|
static String |
CLASSNAME
The input node CSS classname. |
protected ApplicationConnection |
client
|
protected String |
id
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
VRichTextArea()
|
Method Summary | |
---|---|
int |
getTabIndex()
|
void |
onBeforeShortcutAction(com.google.gwt.user.client.Event e)
This method is called by ShortcutActionHandler before firing the shortcut if the Paintable is currently focused (aka the target of the shortcut action). |
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event)
|
void |
onChange(com.google.gwt.event.dom.client.ChangeEvent event)
|
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
|
void |
setAccessKey(char key)
|
void |
setEnabled(boolean enabled)
|
void |
setFocus(boolean focused)
|
void |
setHeight(String height)
|
void |
setTabIndex(int index)
|
void |
setWidth(String width)
|
void |
synchronizeContentToServer()
Method is public to let popupview force synchronization on close. |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
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, onLoad, 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, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
The input node CSS classname.
id
protected String id
client
protected ApplicationConnection client
Constructor Detail |
---|
VRichTextArea
public VRichTextArea()
Method Detail |
---|
setEnabled
public void setEnabled(boolean enabled)
updateFromUIDL
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
- Specified by:
updateFromUIDL
in interfacePaintable
onChange
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
- Specified by:
onChange
in interfacecom.google.gwt.event.dom.client.ChangeHandler
synchronizeContentToServer
public void synchronizeContentToServer()
Method is public to let popupview force synchronization on close.
onBlur
public void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
- Specified by:
onBlur
in interfacecom.google.gwt.event.dom.client.BlurHandler
setHeight
public void setHeight(String height)
- Overrides:
setHeight
in classcom.google.gwt.user.client.ui.UIObject
setWidth
public void setWidth(String width)
- Overrides:
setWidth
in classcom.google.gwt.user.client.ui.UIObject
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
- Specified by:
onKeyPress
in interfacecom.google.gwt.event.dom.client.KeyPressHandler
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDown
in interfacecom.google.gwt.event.dom.client.KeyDownHandler
onBeforeShortcutAction
public void onBeforeShortcutAction(com.google.gwt.user.client.Event e)
- Specified by:
onBeforeShortcutAction
in interfaceShortcutActionHandler.BeforeShortcutActionListener
- Parameters:
e
- the event that triggered the shortcut action
Description copied from interface: ShortcutActionHandler.BeforeShortcutActionListener
This method is called by ShortcutActionHandler before firing the shortcut if the Paintable is currently focused (aka the target of the shortcut action). Eg. a field can update its possibly changed value to the server before shortcut action is fired.
getTabIndex
public int getTabIndex()
- Specified by:
getTabIndex
in interfacecom.google.gwt.user.client.ui.Focusable
setAccessKey
public void setAccessKey(char key)
- Specified by:
setAccessKey
in interfacecom.google.gwt.user.client.ui.Focusable
setFocus
public void setFocus(boolean focused)
- Specified by:
setFocus
in interfacecom.google.gwt.user.client.ui.Focusable
setTabIndex
public void setTabIndex(int index)
- Specified by:
setTabIndex
in interfacecom.google.gwt.user.client.ui.Focusable