|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Composite net.sourceforge.gwtaddons.client.richtext.Editor
This is the main class of the rich text editor. A typical use is:
The editor is using the follow stylenames:
Editor editor = new Editor();
editor.setTextPixelSize(400, 300);
RootPanel.get().add(editor);
editor.setHTML("My editor text.");
Constructor Summary | |
Editor()
Constructor of a Rich Text Editor |
Method Summary | |
java.lang.String |
getHTML()
Get the current HTML text of the editor. |
protected void |
onLoad()
This method is called when the editor becomes attached to the browser's document. |
void |
setEditable(boolean editable)
Enable or disable the edit mode. |
void |
setHTML(java.lang.String html)
Sets this editor's contents via HTML. |
void |
setTextSize(java.lang.String width,
java.lang.String height)
Sets the text's size, in pixels, not including decorations such as border, margin, padding and the toolbar. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
getElement, onAttach, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Editor()
Method Detail |
protected void onLoad()
public void setTextSize(java.lang.String width, java.lang.String height)
width
- the text's new width, in pixelsheight
- the text's new height, in pixelspublic java.lang.String getHTML()
setHTML(String)
public void setHTML(java.lang.String html)
html
- the editor's new HTMLpublic void setEditable(boolean editable)
editable
- true means that is can be edit.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |