public class SuggesterConnector extends com.vaadin.client.extensions.AbstractExtensionConnector implements GwtAceKeyboardHandler, SuggestPopup.SuggestionSelectedListener, AceEditorWidget.SelectionChangeListener
GwtAceKeyboardHandler.Command
Modifier and Type | Field and Description |
---|---|
protected AceEditorConnector |
connector |
protected SuggestPopup |
popup |
protected SuggesterServerRpc |
serverRpc |
protected boolean |
showDescriptions |
protected boolean |
startSuggestingOnNextSelectionChange |
protected boolean |
suggesting |
protected Integer |
suggestionStartId |
protected boolean |
suggestOnDot |
protected AceRange |
suggStartCursor |
protected String |
suggStartText |
protected AceEditorWidget |
widget |
protected static int |
Y_OFFSET |
Constructor and Description |
---|
SuggesterConnector() |
Modifier and Type | Method and Description |
---|---|
protected SuggestPopup |
createSuggestionPopup() |
protected void |
extend(com.vaadin.client.ServerConnector target) |
SuggesterState |
getState() |
protected String |
getWord(String text,
int row,
int col1,
int col2) |
GwtAceKeyboardHandler.Command |
handleKeyboard(com.google.gwt.core.client.JavaScriptObject data,
int hashId,
String keyString,
int keyCode,
GwtAceKeyboardEvent e)
Called on key press.
|
protected GwtAceKeyboardHandler.Command |
keyPressWhileSuggesting(int keyCode) |
void |
noSuggestionSelected() |
void |
onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) |
void |
selectionChanged() |
protected void |
setSuggs(List<TransportSuggestion> suggs) |
protected void |
startSuggesting() |
protected void |
stopAskingForSuggestions() |
protected void |
stopSuggesting() |
void |
suggestionSelected(TransportSuggestion s) |
protected void |
updatePopupPosition(SuggestPopup popup) |
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState
protected static final int Y_OFFSET
protected AceEditorConnector connector
protected AceEditorWidget widget
protected SuggesterServerRpc serverRpc
protected String suggStartText
protected AceRange suggStartCursor
protected boolean suggesting
protected SuggestPopup popup
protected Integer suggestionStartId
protected boolean startSuggestingOnNextSelectionChange
protected boolean suggestOnDot
protected boolean showDescriptions
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
onStateChanged
in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
onStateChanged
in class com.vaadin.client.ui.AbstractConnector
public SuggesterState getState()
getState
in interface com.vaadin.client.ServerConnector
getState
in class com.vaadin.client.ui.AbstractConnector
protected void setSuggs(List<TransportSuggestion> suggs)
protected SuggestPopup createSuggestionPopup()
protected void extend(com.vaadin.client.ServerConnector target)
extend
in class com.vaadin.client.extensions.AbstractExtensionConnector
public GwtAceKeyboardHandler.Command handleKeyboard(com.google.gwt.core.client.JavaScriptObject data, int hashId, String keyString, int keyCode, GwtAceKeyboardEvent e)
GwtAceKeyboardHandler
handleKeyboard
in interface GwtAceKeyboardHandler
protected void startSuggesting()
public void suggestionSelected(TransportSuggestion s)
suggestionSelected
in interface SuggestPopup.SuggestionSelectedListener
public void noSuggestionSelected()
noSuggestionSelected
in interface SuggestPopup.SuggestionSelectedListener
protected void stopAskingForSuggestions()
protected void stopSuggesting()
protected GwtAceKeyboardHandler.Command keyPressWhileSuggesting(int keyCode)
public void selectionChanged()
selectionChanged
in interface AceEditorWidget.SelectionChangeListener
protected void updatePopupPosition(SuggestPopup popup)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.