|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.kuali.student.common.ui.client.widgets.RichTextEditor
org.kuali.student.common.ui.client.widgets.KSRichEditorAbstract
org.kuali.student.common.ui.client.widgets.KSRichEditor
public class KSRichEditor
KSRichEditor is the KS default rich text editor. The editor provides a variety of text formatting options commonly found in traditional text editors. It also features a toolbar which only shows when the editor is in focus and a pop-out window which allows a user to have more space to work (and can be resized). Any changes made in the pop-out editor are reflected in the original editor when the user is finished. TODO implement i18n
| 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 | |
|---|---|
private KSRichEditorAbstract |
richEditor
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
KSRichEditor()
Creates a new KSRichEditor. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
|
com.google.gwt.event.shared.HandlerRegistration |
addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
|
String |
getHTML()
Get the HTML version of the text input (retains all formatting). |
com.google.gwt.user.client.ui.RichTextArea |
getRichTextArea()
Gets the RichTextArea widget used for text input in this rich editor widget. |
String |
getText()
Get the plain text version of the text input (retains NO formatting). |
protected void |
init()
|
void |
setHTML(String html)
Set the HTML of this rich text editor. |
void |
setStyleName(String text)
|
void |
setText(String text)
Set the text of this rich text editor (this is text with no formatting). |
| 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 |
|---|
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
private KSRichEditorAbstract richEditor
| Constructor Detail |
|---|
public KSRichEditor()
| Method Detail |
|---|
public com.google.gwt.user.client.ui.RichTextArea getRichTextArea()
getRichTextArea in class KSRichEditorAbstractpublic String getHTML()
getHTML in class KSRichEditorAbstractpublic String getText()
getText in interface com.google.gwt.user.client.ui.HasTextgetText in class KSRichEditorAbstractpublic void setHTML(String html)
setHTML in class KSRichEditorAbstracthtml - the HTML to set this editor topublic void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextsetText in class KSRichEditorAbstractthe - plain text to set this editor topublic void setStyleName(String text)
setStyleName in class KSRichEditorAbstractpublic com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlerspublic com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlersprotected void init()
init in class KSRichEditorAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||