org.broadleafcommerce.openadmin.client.view.dynamic
Class RichTextToolbar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.broadleafcommerce.openadmin.client.view.dynamic.RichTextToolbar
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class RichTextToolbar
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
static class RichTextToolbar.DisplayType
           
 
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 LinkedHashMap<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> GUI_FONT_SIZES
           
static HashMap<String,String> GUI_FONTLIST
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
RichTextToolbar(com.google.gwt.user.client.ui.RichTextArea richtext, RichTextToolbar.DisplayType displayType)
          Constructor of the Toolbar
 
Method Summary
 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)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GUI_FONT_SIZES

public static final LinkedHashMap<String,com.google.gwt.user.client.ui.RichTextArea.FontSize> GUI_FONT_SIZES

GUI_FONTLIST

public static final HashMap<String,String> GUI_FONTLIST
Constructor Detail

RichTextToolbar

public RichTextToolbar(com.google.gwt.user.client.ui.RichTextArea richtext,
                       RichTextToolbar.DisplayType displayType)
Constructor of the Toolbar

Parameters:
displayType -
Method Detail

getSelection

public 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


insertAsset

public void insertAsset(String fileExtension,
                        String name,
                        String staticAssetFullUrl)

addAssetHandler

public void addAssetHandler(com.google.gwt.user.client.Command command)

getHTML

public String getHTML()

setHTML

public void setHTML(String htmlString)

showAssetButton

public void showAssetButton(boolean visible)


Copyright © 2013. All Rights Reserved.