Class SuggestionExtension

java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
io.jmix.ui.widget.addon.aceeditor.SuggestionExtension
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Extension, com.vaadin.shared.Connector, Serializable

public class SuggestionExtension extends com.vaadin.server.AbstractExtension
Extends AceEditor with suggestion possibility. By default Ctrl+Space and dot (".") triggers a suggester. A Suggester is queried for Suggestions.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector

    com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler

    Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector

    com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected Suggester
     
    protected List<Suggestion>
     
    protected AceRange
     
    protected int
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    extend(AceEditor editor)
     
     
    protected SuggesterState
    getState(boolean markAsDirty)
     
    boolean
     
    void
    setShowDescriptions(boolean showDescriptions)
     
    void
    setSuggestOnDot(boolean on)
     

    Methods inherited from class com.vaadin.server.AbstractExtension

    extend, getParent, getSupportedParentType, remove, setParent

    Methods inherited from class com.vaadin.server.AbstractClientConnector

    addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.server.ClientConnector

    addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler

    Methods inherited from interface com.vaadin.shared.Connector

    getConnectorId
  • Field Details

    • suggester

      protected Suggester suggester
    • suggStartText

      protected String suggStartText
    • suggStartCursor

      protected int suggStartCursor
    • suggestions

      protected List<Suggestion> suggestions
    • suggRange

      protected AceRange suggRange
    • serverRpc

      protected SuggesterServerRpc serverRpc
  • Constructor Details

    • SuggestionExtension

      public SuggestionExtension(Suggester suggester)
  • Method Details

    • getState

      public SuggesterState getState()
      Overrides:
      getState in class com.vaadin.server.AbstractClientConnector
    • getState

      protected SuggesterState getState(boolean markAsDirty)
      Overrides:
      getState in class com.vaadin.server.AbstractClientConnector
    • asTransport

      protected List<TransportSuggestion> asTransport(List<Suggestion> suggs)
    • setSuggestOnDot

      public void setSuggestOnDot(boolean on)
    • extend

      public void extend(AceEditor editor)
    • setShowDescriptions

      public void setShowDescriptions(boolean showDescriptions)
    • isShowDescriptions

      public boolean isShowDescriptions()