public class RichTextToolbar
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
static class |
RichTextToolbar.DisplayType |
Modifier and Type | Field and Description |
---|---|
static LinkedHashMap<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> |
GUI_FONT_SIZES |
static HashMap<String,String> |
GUI_FONTLIST |
Constructor and Description |
---|
RichTextToolbar(com.google.gwt.user.client.ui.RichTextArea richtext,
RichTextToolbar.DisplayType displayType)
Constructor of the Toolbar
|
Modifier and Type | Method and Description |
---|---|
void |
addAssetHandler(com.google.gwt.user.client.Command command) |
String |
getHTML() |
static com.google.gwt.core.client.JsArrayString |
getSelection(com.google.gwt.dom.client.Element elem)
Native JavaScript that returns the selected text and position of the
start
|
void |
insertAsset(String fileExtension,
String name,
String staticAssetFullUrl) |
void |
setHTML(String htmlString) |
void |
showAssetButton(boolean visible) |
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
public static final LinkedHashMap<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> GUI_FONT_SIZES
public RichTextToolbar(com.google.gwt.user.client.ui.RichTextArea richtext, RichTextToolbar.DisplayType displayType)
displayType
- public static com.google.gwt.core.client.JsArrayString getSelection(com.google.gwt.dom.client.Element elem)
public void addAssetHandler(com.google.gwt.user.client.Command command)
public String getHTML()
public void setHTML(String htmlString)
public void showAssetButton(boolean visible)
Copyright © 2013. All rights reserved.