Class GwtAceEditor
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
io.jmix.ui.widget.client.addon.aceeditor.gwt.GwtAceEditor
public class GwtAceEditor
extends com.google.gwt.core.client.JavaScriptObject
A GWT adaptation of Ace editor.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
addChangeHandler
(GwtAceChangeHandler handler) final void
final void
addFocusListener
(GwtAceFocusBlurHandler handler) final String
addMarker
(GwtAceRange range, String cls, String type, boolean inFront) final void
blur()
final void
static GwtAceEditor
final void
focus()
final com.google.gwt.core.client.JsArray<GwtAceAnnotation>
final com.google.gwt.core.client.JsArrayInteger
final com.google.gwt.core.client.JsArrayInteger
getCoordsOfRowCol
(int row, int column) final com.google.gwt.core.client.JsArrayInteger
final GwtAcePosition
final int
final String
getLine
(int row) final int
getLineLength
(int row) final com.google.gwt.core.client.JsArrayString
getLines
(int startRow, int endRow) final int
getLongestLineLength
(int row1, int row2) final String
final int
final double
final GwtAceSelection
final String
getText()
final void
insertLine
(int index, String text) static String
keyCodeToString
(int keyCode) static int
keyModsToHashId
(boolean shift, boolean ctrl, boolean alt) static String
keyName
(int keyCode, boolean shift, boolean ctrl, boolean alt) final void
moveCursorTo
(int row, int col) final void
final void
removeLines
(int from, int to) final void
removeMarker
(String markerId) final void
replace
(GwtAceRange range, String text) final void
resize()
final void
scrollToRow
(double row) final void
scrollToRow
(int row) final void
scrollToY
(int y) static void
setAceConfig
(String key, String value) final void
setAnnotations
(com.google.gwt.core.client.JsArray<GwtAceAnnotation> anns) final void
setDisplayIndentGuides
(boolean displayIndentGuides) final void
setFontSize
(String size) final void
final void
setHighlightActiveLineEnabled
(boolean highlightActiveLine) final void
setHighlightSelectedWord
(boolean highlightSelectedWord) final void
setHScrollBarAlwaysVisible
(boolean visible) final void
setKeyboardHandler
(GwtAceKeyboardHandler handler) final void
final void
setReadOnly
(boolean readOnly) final void
setSelection
(GwtAceRange range, boolean reverse) final void
setShowGutter
(boolean showGutter) final void
setShowInvisibles
(boolean showInvisibles) final void
setShowPrintMargin
(boolean showPrintMargin) final void
setTabSize
(int tabSize) final void
final void
final void
setUseSoftTabs
(boolean softTabs) final void
setUseWorker
(boolean use) final void
setUseWrapMode
(boolean useWrapMode) final void
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
GwtAceEditor
protected GwtAceEditor()
-
-
Method Details
-
create
-
setAceConfig
-
setMode
-
setTheme
-
getText
-
setText
-
replace
-
insertLine
-
removeLines
public final void removeLines(int from, int to) -
addChangeHandler
-
addChangeCursorHandler
-
addChangeSelectionHandler
-
setKeyboardHandler
-
addFocusListener
-
moveCursorTo
public final void moveCursorTo(int row, int col) -
moveCursorToPosition
-
getCursorPosition
-
scrollToRow
public final void scrollToRow(int row) -
getCursorCoords
public final com.google.gwt.core.client.JsArrayInteger getCursorCoords() -
getCoordsOfRowCol
public final com.google.gwt.core.client.JsArrayInteger getCoordsOfRowCol(int row, int column) -
getCoordsOf
-
focus
public final void focus() -
blur
public final void blur() -
setAnnotations
-
clearAnnotations
public final void clearAnnotations() -
getAnnotations
-
removeMarker
-
addMarker
-
setWidth
-
setHeight
-
resize
public final void resize() -
keyName
-
getLength
public final int getLength() -
getLine
-
getLines
public final com.google.gwt.core.client.JsArrayString getLines(int startRow, int endRow) -
getLineLength
public final int getLineLength(int row) -
getLongestLineLength
public final int getLongestLineLength(int row1, int row2) -
getSelection
-
setSelection
-
setReadOnly
public final void setReadOnly(boolean readOnly) -
setShowInvisibles
public final void setShowInvisibles(boolean showInvisibles) -
getNewLineCharacter
-
keyCodeToString
-
keyModsToHashId
public static int keyModsToHashId(boolean shift, boolean ctrl, boolean alt) -
setHScrollBarAlwaysVisible
public final void setHScrollBarAlwaysVisible(boolean visible) -
setFontSize
-
scrollToY
public final void scrollToY(int y) -
scrollToRow
public final void scrollToRow(double row) -
getScrollTop
public final int getScrollTop() -
getScrollTopRow
public final double getScrollTopRow() -
setShowGutter
public final void setShowGutter(boolean showGutter) -
setShowPrintMargin
public final void setShowPrintMargin(boolean showPrintMargin) -
setHighlightActiveLineEnabled
public final void setHighlightActiveLineEnabled(boolean highlightActiveLine) -
setUseWrapMode
public final void setUseWrapMode(boolean useWrapMode) -
setUseWorker
public final void setUseWorker(boolean use) -
setHighlightSelectedWord
public final void setHighlightSelectedWord(boolean highlightSelectedWord) -
setDisplayIndentGuides
public final void setDisplayIndentGuides(boolean displayIndentGuides) -
setUseSoftTabs
public final void setUseSoftTabs(boolean softTabs) -
setTabSize
public final void setTabSize(int tabSize)
-