@StyleSheet(value="suggestionpopup.css")
public class SuggestionExtension
extends com.vaadin.server.AbstractExtension
AceEditor
with suggestion possibility.
By default Ctrl+Space and dot (".") triggers a suggester.
A Suggester
is queried for Suggestion
s.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
Modifier and Type | Field and Description |
---|---|
protected SuggesterServerRpc |
serverRpc |
protected Suggester |
suggester |
protected List<Suggestion> |
suggestions |
protected AceRange |
suggRange |
protected int |
suggStartCursor |
protected String |
suggStartText |
Constructor and Description |
---|
SuggestionExtension(Suggester suggester) |
Modifier and Type | Method and Description |
---|---|
protected List<TransportSuggestion> |
asTransport(List<Suggestion> suggs) |
void |
extend(AceEditor editor) |
SuggesterState |
getState() |
protected SuggesterState |
getState(boolean markAsDirty) |
boolean |
isShowDescriptions() |
void |
setShowDescriptions(boolean showDescriptions) |
void |
setSuggestOnDot(boolean on) |
extend, getParent, getSupportedParentType, remove, setParent
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected Suggester suggester
protected String suggStartText
protected int suggStartCursor
protected List<Suggestion> suggestions
protected AceRange suggRange
protected SuggesterServerRpc serverRpc
public SuggestionExtension(Suggester suggester)
public SuggesterState getState()
getState
in class com.vaadin.server.AbstractClientConnector
protected SuggesterState getState(boolean markAsDirty)
getState
in class com.vaadin.server.AbstractClientConnector
protected List<TransportSuggestion> asTransport(List<Suggestion> suggs)
public void setSuggestOnDot(boolean on)
public void extend(AceEditor editor)
public void setShowDescriptions(boolean showDescriptions)
public boolean isShowDescriptions()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.