Interface EditorListener<T>

  • All Known Implementing Classes:
    ParametrizedEditorListener

    public interface EditorListener<T>
    Receives updates when an editor's value has changed in some way. The general purpose is to hide editor specific implementation details from the user e.g. which events are relevant etc.
    • Method Detail

      • onValueChanged

        void onValueChanged​(T value)
        Called when an editor's value has changed.
        Parameters:
        value - the new value
      • onEditorEvent

        void onEditorEvent​(java.lang.String eventCode)
        Called when an editor event occurred (like enter pressed, escape pressed, focus lost etc.)
        Parameters:
        eventCode - the unique event code
      • sendSocketOutput

        void sendSocketOutput​(java.lang.String outputId,
                              java.lang.Object data)
        Called to request the listener to send the given data to the output socket (with the given id) of the containing widget.
        Parameters:
        outputId - the socket output ID to send the data to
        data - the data to send