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 Details

    • GwtAceEditor

      protected GwtAceEditor()
  • Method Details

    • create

      public static GwtAceEditor create(com.google.gwt.dom.client.Element parent, String editorId)
    • setAceConfig

      public static void setAceConfig(String key, String value)
    • setMode

      public final void setMode(String mode)
    • setTheme

      public final void setTheme(String theme)
    • getText

      public final String getText()
    • setText

      public final void setText(String text)
    • replace

      public final void replace(GwtAceRange range, String text)
    • insertLine

      public final void insertLine(int index, String text)
    • removeLines

      public final void removeLines(int from, int to)
    • addChangeHandler

      public final void addChangeHandler(GwtAceChangeHandler handler)
    • addChangeCursorHandler

      public final void addChangeCursorHandler(GwtAceChangeCursorHandler handler)
    • addChangeSelectionHandler

      public final void addChangeSelectionHandler(GwtAceChangeSelectionHandler handler)
    • setKeyboardHandler

      public final void setKeyboardHandler(GwtAceKeyboardHandler handler)
    • addFocusListener

      public final void addFocusListener(GwtAceFocusBlurHandler handler)
    • moveCursorTo

      public final void moveCursorTo(int row, int col)
    • moveCursorToPosition

      public final void moveCursorToPosition(GwtAcePosition pos)
    • getCursorPosition

      public final GwtAcePosition 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

      public final com.google.gwt.core.client.JsArrayInteger getCoordsOf(GwtAcePosition pos)
    • focus

      public final void focus()
    • blur

      public final void blur()
    • setAnnotations

      public final void setAnnotations(com.google.gwt.core.client.JsArray<GwtAceAnnotation> anns)
    • clearAnnotations

      public final void clearAnnotations()
    • getAnnotations

      public final com.google.gwt.core.client.JsArray<GwtAceAnnotation> getAnnotations()
    • removeMarker

      public final void removeMarker(String markerId)
    • addMarker

      public final String addMarker(GwtAceRange range, String cls, String type, boolean inFront)
    • setWidth

      public final void setWidth(String width)
    • setHeight

      public final void setHeight(String height)
    • resize

      public final void resize()
    • keyName

      public static String keyName(int keyCode, boolean shift, boolean ctrl, boolean alt)
    • getLength

      public final int getLength()
    • getLine

      public final String getLine(int row)
    • 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

      public final GwtAceSelection getSelection()
    • setSelection

      public final void setSelection(GwtAceRange range, boolean reverse)
    • setReadOnly

      public final void setReadOnly(boolean readOnly)
    • setShowInvisibles

      public final void setShowInvisibles(boolean showInvisibles)
    • getNewLineCharacter

      public final String getNewLineCharacter()
    • keyCodeToString

      public static String keyCodeToString(int keyCode)
    • keyModsToHashId

      public static int keyModsToHashId(boolean shift, boolean ctrl, boolean alt)
    • setHScrollBarAlwaysVisible

      public final void setHScrollBarAlwaysVisible(boolean visible)
    • setFontSize

      public final void setFontSize(String size)
    • 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)