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:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static enum
protected class
protected static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected AceEditorConnector.TextChangeEventMode
protected int
protected AceEditorClientRpc
protected boolean
protected boolean
protected boolean
protected int
protected AceRange
protected AceEditorConnector.SendCond
protected AceEditorConnector.SendTimer
protected AceEditorServerRpc
protected AceDoc
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
applyConfig
(Map<String, String> config) void
changed()
protected void
protected com.google.gwt.user.client.ui.Widget
void
flush()
void
focusChanged
(boolean focused) getState()
void
init()
boolean
void
onConnectorHierarchyChange
(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) void
onStateChanged
(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) void
protected void
protected void
sendChangeAccordingToMode
(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode) protected void
sendToServer
(AceEditorConnector.SendCond send, boolean immediately) protected void
void
protected void
protected void
protected void
void
setTextChangeEventMode
(String mode) protected void
setTextChangeTimeout
(int timeout) void
updateCaption
(com.vaadin.client.ComponentConnector connector) Methods inherited from class com.vaadin.client.ui.AbstractHasComponentsConnector
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponents
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
contextHelpIconClick, contextHelpIconClick, delegateCaptionHandling, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasContextHelpIconListeners, hasTooltip, isContextHelpIconEnabled, isContextHelpTooltipEnabled, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpc
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
-
Field Details
-
serverRpc
-
changeMode
-
changeTimeout
protected int changeTimeout -
sendTimer
-
shadow
-
onRoundtrip
protected boolean onRoundtrip -
sendAfterRoundtrip
-
clientRpc
-
listenToSelectionChanges
protected boolean listenToSelectionChanges -
listenToFocusChanges
protected boolean listenToFocusChanges -
scrollToRowAfterApplyingDiff
protected int scrollToRowAfterApplyingDiff -
selectionAfterApplyingDiff
-
-
Constructor Details
-
AceEditorConnector
public AceEditorConnector()
-
-
Method Details
-
init
public void init()- Overrides:
init
in classcom.vaadin.client.ui.AbstractConnector
-
onStateChanged
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) - Specified by:
onStateChanged
in interfacecom.vaadin.client.communication.StateChangeEvent.StateChangeHandler
- Overrides:
onStateChanged
in classcom.vaadin.client.ui.AbstractComponentConnector
-
applyConfig
-
createWidget
protected com.google.gwt.user.client.ui.Widget createWidget()- Overrides:
createWidget
in classcom.vaadin.client.ui.AbstractComponentConnector
-
getWidget
- Specified by:
getWidget
in interfacecom.vaadin.client.HasWidget
- Overrides:
getWidget
in classcom.vaadin.client.ui.AbstractComponentConnector
-
getState
- Specified by:
getState
in interfacecom.vaadin.client.ComponentConnector
- Specified by:
getState
in interfacecom.vaadin.client.ServerConnector
- Overrides:
getState
in classcom.vaadin.client.ui.AbstractComponentConnector
-
focusChanged
public void focusChanged(boolean focused) - Specified by:
focusChanged
in interfaceAceEditorWidget.FocusChangeListener
-
setTextChangeEventMode
-
setTextChangeTimeout
protected void setTextChangeTimeout(int timeout) -
changeTextChangeEventMode
-
sendChangeAccordingToMode
-
sendChangeAccordingToMode
protected void sendChangeAccordingToMode(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode) -
sendToServer
-
sendToServerDelayed
-
sendToServerImmediately
public void sendToServerImmediately() -
sendToServerImmediately
-
flush
public void flush()- Specified by:
flush
in interfacecom.vaadin.client.ComponentConnector
- Overrides:
flush
in classcom.vaadin.client.ui.AbstractComponentConnector
-
changed
public void changed()- Specified by:
changed
in interfaceAceEditorWidget.TextChangeListener
-
updateCaption
public void updateCaption(com.vaadin.client.ComponentConnector connector) - Specified by:
updateCaption
in interfacecom.vaadin.client.HasComponentsConnector
-
onConnectorHierarchyChange
public void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) - Specified by:
onConnectorHierarchyChange
in interfacecom.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
-
selectionChanged
public void selectionChanged()- Specified by:
selectionChanged
in interfaceAceEditorWidget.SelectionChangeListener
-
sendWhenPossible
-
sendWhenPossible
protected void sendWhenPossible(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode) -
isOnRoundtrip
public boolean isOnRoundtrip()
-