Class AceEditorConnector

java.lang.Object
com.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
com.vaadin.client.ui.AbstractHasComponentsConnector
io.jmix.ui.widget.client.addon.aceeditor.AceEditorConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ComponentConnector, com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler, com.vaadin.client.HasComponentsConnector, com.vaadin.client.HasWidget, com.vaadin.client.ServerConnector, com.vaadin.client.ui.HasContextHelpConnector, com.vaadin.client.ui.HasErrorIndicator, com.vaadin.shared.Connector, AceEditorWidget.FocusChangeListener, AceEditorWidget.SelectionChangeListener, AceEditorWidget.TextChangeListener, Serializable
Direct Known Subclasses:
JmixSourceCodeEditorConnector

public class AceEditorConnector extends com.vaadin.client.ui.AbstractHasComponentsConnector implements AceEditorWidget.TextChangeListener, AceEditorWidget.SelectionChangeListener, AceEditorWidget.FocusChangeListener
See Also:
  • Field Details

    • serverRpc

      protected AceEditorServerRpc serverRpc
    • changeMode

    • changeTimeout

      protected int changeTimeout
    • sendTimer

      protected AceEditorConnector.SendTimer sendTimer
    • shadow

      protected AceDoc shadow
    • onRoundtrip

      protected boolean onRoundtrip
    • sendAfterRoundtrip

      protected AceEditorConnector.SendCond sendAfterRoundtrip
    • clientRpc

      protected AceEditorClientRpc clientRpc
    • listenToSelectionChanges

      protected boolean listenToSelectionChanges
    • listenToFocusChanges

      protected boolean listenToFocusChanges
    • scrollToRowAfterApplyingDiff

      protected int scrollToRowAfterApplyingDiff
    • selectionAfterApplyingDiff

      protected AceRange selectionAfterApplyingDiff
  • Constructor Details

    • AceEditorConnector

      public AceEditorConnector()
  • Method Details

    • init

      public void init()
      Overrides:
      init in class com.vaadin.client.ui.AbstractConnector
    • onStateChanged

      public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
      Specified by:
      onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
      Overrides:
      onStateChanged in class com.vaadin.client.ui.AbstractComponentConnector
    • applyConfig

      protected static void applyConfig(Map<String,String> config)
    • createWidget

      protected com.google.gwt.user.client.ui.Widget createWidget()
      Overrides:
      createWidget in class com.vaadin.client.ui.AbstractComponentConnector
    • getWidget

      public AceEditorWidget getWidget()
      Specified by:
      getWidget in interface com.vaadin.client.HasWidget
      Overrides:
      getWidget in class com.vaadin.client.ui.AbstractComponentConnector
    • getState

      public AceEditorState getState()
      Specified by:
      getState in interface com.vaadin.client.ComponentConnector
      Specified by:
      getState in interface com.vaadin.client.ServerConnector
      Overrides:
      getState in class com.vaadin.client.ui.AbstractComponentConnector
    • focusChanged

      public void focusChanged(boolean focused)
      Specified by:
      focusChanged in interface AceEditorWidget.FocusChangeListener
    • setTextChangeEventMode

      public void setTextChangeEventMode(String mode)
    • setTextChangeTimeout

      protected void setTextChangeTimeout(int timeout)
    • changeTextChangeEventMode

      protected void changeTextChangeEventMode(AceEditorConnector.TextChangeEventMode newMode)
    • sendChangeAccordingToMode

      protected void sendChangeAccordingToMode(AceEditorConnector.SendCond send)
    • sendChangeAccordingToMode

      protected void sendChangeAccordingToMode(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode)
    • sendToServer

      protected void sendToServer(AceEditorConnector.SendCond send, boolean immediately)
    • sendToServerDelayed

      protected void sendToServerDelayed(AceEditorConnector.SendCond send)
    • sendToServerImmediately

      public void sendToServerImmediately()
    • sendToServerImmediately

      protected void sendToServerImmediately(AceEditorConnector.SendCond send)
    • flush

      public void flush()
      Specified by:
      flush in interface com.vaadin.client.ComponentConnector
      Overrides:
      flush in class com.vaadin.client.ui.AbstractComponentConnector
    • changed

      public void changed()
      Specified by:
      changed in interface AceEditorWidget.TextChangeListener
    • updateCaption

      public void updateCaption(com.vaadin.client.ComponentConnector connector)
      Specified by:
      updateCaption in interface com.vaadin.client.HasComponentsConnector
    • onConnectorHierarchyChange

      public void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
      Specified by:
      onConnectorHierarchyChange in interface com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
    • selectionChanged

      public void selectionChanged()
      Specified by:
      selectionChanged in interface AceEditorWidget.SelectionChangeListener
    • sendWhenPossible

      protected void sendWhenPossible(AceEditorConnector.SendCond send)
    • sendWhenPossible

      protected void sendWhenPossible(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode)
    • isOnRoundtrip

      public boolean isOnRoundtrip()