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
Nested ClassesModifier and TypeClassDescriptionprotected static enumprotected classprotected static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AceEditorConnector.TextChangeEventModeprotected intprotected AceEditorClientRpcprotected booleanprotected booleanprotected booleanprotected intprotected AceRangeprotected AceEditorConnector.SendCondprotected AceEditorConnector.SendTimerprotected AceEditorServerRpcprotected AceDocFields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidapplyConfig(Map<String, String> config) voidchanged()protected voidprotected com.google.gwt.user.client.ui.Widgetvoidflush()voidfocusChanged(boolean focused) getState()voidinit()booleanvoidonConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) voidonStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) voidprotected voidprotected voidsendChangeAccordingToMode(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode) protected voidsendToServer(AceEditorConnector.SendCond send, boolean immediately) protected voidvoidprotected voidprotected voidprotected voidvoidsetTextChangeEventMode(String mode) protected voidsetTextChangeTimeout(int timeout) voidupdateCaption(com.vaadin.client.ComponentConnector connector) Methods inherited from class com.vaadin.client.ui.AbstractHasComponentsConnector
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponentsMethods 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, updateWidgetStyleNamesMethods 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, unregisterRpcMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods 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:
initin classcom.vaadin.client.ui.AbstractConnector
-
onStateChanged
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) - Specified by:
onStateChangedin interfacecom.vaadin.client.communication.StateChangeEvent.StateChangeHandler- Overrides:
onStateChangedin classcom.vaadin.client.ui.AbstractComponentConnector
-
applyConfig
-
createWidget
protected com.google.gwt.user.client.ui.Widget createWidget()- Overrides:
createWidgetin classcom.vaadin.client.ui.AbstractComponentConnector
-
getWidget
- Specified by:
getWidgetin interfacecom.vaadin.client.HasWidget- Overrides:
getWidgetin classcom.vaadin.client.ui.AbstractComponentConnector
-
getState
- Specified by:
getStatein interfacecom.vaadin.client.ComponentConnector- Specified by:
getStatein interfacecom.vaadin.client.ServerConnector- Overrides:
getStatein classcom.vaadin.client.ui.AbstractComponentConnector
-
focusChanged
public void focusChanged(boolean focused) - Specified by:
focusChangedin 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:
flushin interfacecom.vaadin.client.ComponentConnector- Overrides:
flushin classcom.vaadin.client.ui.AbstractComponentConnector
-
changed
public void changed()- Specified by:
changedin interfaceAceEditorWidget.TextChangeListener
-
updateCaption
public void updateCaption(com.vaadin.client.ComponentConnector connector) - Specified by:
updateCaptionin interfacecom.vaadin.client.HasComponentsConnector
-
onConnectorHierarchyChange
public void onConnectorHierarchyChange(com.vaadin.client.ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) - Specified by:
onConnectorHierarchyChangein interfacecom.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
-
selectionChanged
public void selectionChanged()- Specified by:
selectionChangedin interfaceAceEditorWidget.SelectionChangeListener
-
sendWhenPossible
-
sendWhenPossible
protected void sendWhenPossible(AceEditorConnector.SendCond send, AceEditorConnector.TextChangeEventMode mode) -
isOnRoundtrip
public boolean isOnRoundtrip()
-