public class AceEditorWidget extends com.google.gwt.user.client.ui.FocusWidget implements GwtAceChangeHandler, GwtAceFocusBlurHandler, GwtAceChangeSelectionHandler, GwtAceChangeCursorHandler
Widget
containing
GwtAceEditor
Modifier and Type | Class and Description |
---|---|
protected class |
AceEditorWidget.AnnotationInEditor |
static interface |
AceEditorWidget.FocusChangeListener |
protected class |
AceEditorWidget.MarkerInEditor |
static interface |
AceEditorWidget.SelectionChangeListener |
static interface |
AceEditorWidget.TextChangeListener |
Constructor and Description |
---|
AceEditorWidget() |
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
protected LinkedList<AceEditorWidget.TextChangeListener> changeListeners
protected LinkedList<AceEditorWidget.SelectionChangeListener> selChangeListeners
protected AceEditorWidget.FocusChangeListener focusChangeListener
protected GwtAceEditor editor
protected String editorId
protected static int idCounter
protected String text
protected boolean readOnly
protected boolean propertyReadOnly
protected boolean focused
protected AceRange selection
protected Map<String,AceEditorWidget.MarkerInEditor> markersInEditor
protected Set<AceAnnotation.RowAnnotation> rowAnnsInEditor
protected Set<AceEditorWidget.AnnotationInEditor> markerAnnsInEditor
protected int latestInvisibleMarkerId
protected boolean ignoreEditorEvents
protected Set<AceAnnotation.MarkerAnnotation> markerAnnotations
protected Set<AceAnnotation.RowAnnotation> rowAnnotations
protected GwtAceKeyboardHandler keyboardHandler
protected AceDoc doc
public void addTextChangeListener(AceEditorWidget.TextChangeListener li)
public void removeTextChangeListener(AceEditorWidget.TextChangeListener li)
public void addSelectionChangeListener(AceEditorWidget.SelectionChangeListener li)
public void removeSelectionChangeListener(AceEditorWidget.SelectionChangeListener li)
public void setFocusChangeListener(AceEditorWidget.FocusChangeListener li)
protected static String nextId()
public boolean isInitialized()
public void initialize()
public void setKeyboardHandler(GwtAceKeyboardHandler handler)
public void setWidth(String w)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void setHeight(String h)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void setWordwrap(boolean wrap)
public void setShowGutter(boolean showGutter)
public void setShowPrintMargin(boolean showPrintMargin)
public void setHighlightActiveLineEnabled(boolean highlightActiveLine)
protected void setText(String text)
protected void adjustInvisibleMarkersOnTextChange(ClientSideDocDiff.Adjuster adjuster)
public void setSelection(AceRange s)
protected void setSelection(AceRange s, boolean force)
public void setMode(String mode)
public void setTheme(String theme)
protected void adjustMarkerAnnotations()
protected void setAnnotations(Set<AceAnnotation.MarkerAnnotation> manns, Set<AceAnnotation.RowAnnotation> ranns)
protected void setAnnotationsToEditor()
protected Set<AceEditorWidget.AnnotationInEditor> createAIEfromMA(Set<AceAnnotation.MarkerAnnotation> anns)
protected int rowOfMarker(String markerId)
public void onChange(GwtAceChangeEvent e)
onChange
in interface GwtAceChangeHandler
public void fireTextChanged()
protected void adjustMarkers(GwtAceChangeEvent e)
protected void adjustInvisibleMarkers(GwtAceChangeEvent event)
protected static boolean markerIsValid(AceMarker marker)
protected static AceRange moveMarkerOnInsert(AceRange mr, GwtAceRange range)
protected static AceRange moveMarkerOnRemove(AceRange mr, GwtAceRange range)
protected static int[] overlapping(GwtAceRange range, int row, int col)
protected void removeMarkers(Set<AceEditorWidget.MarkerInEditor> removed)
protected void updateMarkers(Set<AceEditorWidget.MarkerInEditor> moved)
public String getText()
public void setPropertyReadOnly(boolean propertyReadOnly)
public void setReadOnly(boolean readOnly)
protected static AceRange convertSelection(GwtAceSelection selection)
public AceRange getSelection()
public void onFocus(GwtAceEvent e)
onFocus
in interface GwtAceFocusBlurHandler
public void onBlur(GwtAceEvent e)
onBlur
in interface GwtAceFocusBlurHandler
public void onChangeSelection(GwtAceEvent e)
onChangeSelection
in interface GwtAceChangeSelectionHandler
public void onChangeCursor(GwtAceEvent e)
onChangeCursor
in interface GwtAceChangeCursorHandler
protected void selectionChanged()
public void setUseWorker(boolean use)
public void setFocus(boolean focused)
setFocus
in interface com.google.gwt.user.client.ui.Focusable
setFocus
in class com.google.gwt.user.client.ui.FocusWidget
public boolean isFocused()
protected GwtAceRange convertRange(AceRange r)
public void resize()
public AceDoc getDoc()
public void scrollToRow(int row)
protected Set<AceAnnotation.MarkerAnnotation> getMarkerAnnotations()
protected Set<AceAnnotation.RowAnnotation> getRowAnnotations()
public void setDoc(AceDoc doc)
public int[] getCursorCoords()
public int addInvisibleMarker(AceRange range)
public void removeInvisibleMarker(int id)
public AceRange getInvisibleMarker(int id)
public void setTextAndAdjust(String text)
protected HashMap<String,AceMarker> adjustMarkersOnTextChange(String text1, String text2)
public void removeContentsOfInvisibleMarker(int imId)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.