|
||||||||||
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
ccc.client.gwt.widgets.CodeMirrorEditor
public class CodeMirrorEditor
Wrapper class for CodeMirror.
Nested Class Summary | |
---|---|
static interface |
CodeMirrorEditor.EditorListener
Listener for editor events. |
static class |
CodeMirrorEditor.Type
Type of the editor. |
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
CodeMirrorEditor(java.lang.String id,
CodeMirrorEditor.EditorListener bus,
CodeMirrorEditor.Type type,
boolean readOnly)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getEditorCode()
Accessor for editor content. |
CodeMirrorEditor.Type |
getType()
Accessor for editor type. |
com.google.gwt.core.client.JavaScriptObject |
initCodeMirror(CodeMirrorEditor obj,
java.lang.String id,
java.lang.String baseUrl,
boolean readOnly)
Initialises CodeMirror editor. |
boolean |
isReady()
Returns true if editor is ready. |
void |
onInitialized()
Sets ready status and send an event. |
protected void |
onLoad()
|
com.extjs.gxt.ui.client.widget.form.RadioGroup |
parserSelector(UIConstants constants)
Creates populated RadioGroup for parser selection. |
void |
setEditorCode(java.lang.String code)
Mutator for editor content. |
void |
setEditorHeight(java.lang.String height)
Set editor wrapper height. |
void |
setParser(java.lang.String parser)
Set parser for the editor. |
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, 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, 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 |
Constructor Detail |
---|
public CodeMirrorEditor(java.lang.String id, CodeMirrorEditor.EditorListener bus, CodeMirrorEditor.Type type, boolean readOnly)
id
- The ID of the editor.bus
- The event bus.type
- The of the editor.readOnly
- The editor read only value for the config.Method Detail |
---|
public CodeMirrorEditor.Type getType()
public com.extjs.gxt.ui.client.widget.form.RadioGroup parserSelector(UIConstants constants)
constants
- UIConstants for labels.
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
public void onInitialized()
public boolean isReady()
public com.google.gwt.core.client.JavaScriptObject initCodeMirror(CodeMirrorEditor obj, java.lang.String id, java.lang.String baseUrl, boolean readOnly)
obj
- The CodeMirrorEditor instanceid
- The ID of the editor.baseUrl
- The base URL for scripts and css.readOnly
- The editor read only value for the config.
public java.lang.String getEditorCode()
public void setEditorCode(java.lang.String code)
code
- The content to set.public void setParser(java.lang.String parser)
parser
- Parser name like CSSParser.public void setEditorHeight(java.lang.String height)
height
- The new height of the editor wrapping.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |