sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for a comment change event.

      Parameters

      • Optionalopt_comment: Blockly.WorkspaceComment

        The comment that is being changed. Undefined for a blank event.

      • Optionalopt_oldContents: string

        Previous contents of the comment.

      • Optionalopt_newContents: string

        New contents of the comment.

      Returns CommentChange

    Properties

    commentId: string

    The ID of the comment this event pertains to.

    group: string

    The event group id for the group this event belongs to. Groups define events that should be treated as an single action from the user's perspective, and should be undone together.

    isBlank: boolean

    Whether or not an event is blank.

    isUiEvent: boolean

    Whether or not the event is a UI event.

    recordUndo: boolean

    Sets whether the event should be added to the undo stack.

    type: string

    Type of this event.

    workspaceId: string

    The workspace identifier for this event.

    Methods

    • Decode the JSON event.

      Parameters

      • json: Object

        JSON representation.

      Returns void

    • Does this event record any change of state?

      Returns boolean

      False if something changed.

    • Run a change event.

      Parameters

      • forward: boolean

        True if run forward, false if run backward (undo).

      Returns void

    • Encode the event as JSON.

      Returns Object

      JSON representation.