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 static int |
CURSOR_LINE_HEIGHT |
protected SuggestPopup |
popup |
protected static int |
POPUP_OFFSET |
protected SuggesterServerRpc |
serverRpc |
protected boolean |
showDescriptions |
protected boolean |
startSuggestingOnNextSelectionChange |
protected boolean |
suggesting |
protected java.lang.Integer |
suggestionStartId |
protected boolean |
suggestOnDot |
protected AceRange |
suggStartCursor |
protected java.lang.String |
suggStartText |
protected AceEditorWidget |
widget |
Constructor and Description |
---|
SuggesterConnector() |
Modifier and Type | Method and Description |
---|---|
protected SuggestPopup |
createSuggestionPopup() |
protected void |
extend(com.vaadin.client.ServerConnector target) |
SuggesterState |
getState() |
protected java.lang.String |
getWord(java.lang.String text,
int row,
int col1,
int col2) |
GwtAceKeyboardHandler.Command |
handleKeyboard(com.google.gwt.core.client.JavaScriptObject data,
int hashId,
java.lang.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 |
setPopupPosition(SuggestPopup popup) |
protected void |
setSuggs(java.util.List<TransportSuggestion> suggs) |
protected void |
startSuggesting() |
protected void |
stopAskingForSuggestions() |
protected void |
stopSuggesting() |
void |
suggestionSelected(TransportSuggestion s) |
protected void |
updatePopupPosition() |
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 CURSOR_LINE_HEIGHT
protected static final int POPUP_OFFSET
protected AceEditorConnector connector
protected AceEditorWidget widget
protected SuggesterServerRpc serverRpc
protected java.lang.String suggStartText
protected AceRange suggStartCursor
protected boolean suggesting
protected SuggestPopup popup
protected java.lang.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(java.util.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, java.lang.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)
protected java.lang.String getWord(java.lang.String text, int row, int col1, int col2)
public void selectionChanged()
selectionChanged
in interface AceEditorWidget.SelectionChangeListener
protected void setPopupPosition(SuggestPopup popup)
protected void updatePopupPosition()