Options
All
  • Public
  • Public/Protected
  • All
Menu

An event class used by activity repositories to inform event handlers about changes.

since

1.0

see

ActivityRepository.addEventHandler(EventHandler), ActivityRepository.removeEventHandler(EventHandler)

Hierarchy

  • RepositoryEvent

Index

Constructors

constructor

  • Constructs a new repository event.

    since

    1.0

    Parameters

    • eventType: EventType

      the type of the event, e.g. #ACTIVITY_ADDED

    • repository: ActivityRepository

      the repository where the event occurred

    • Optional activityRef: ActivityRef

      the affected activity (ref)

    Returns RepositoryEvent

Properties

Static ACTIVITY_ADDED

ACTIVITY_ADDED: EventType = new EventType(RepositoryEvent.REPOSITORY_CHANGED, "ACTIVITY_ADDED")

An event type that indicates that an activity has been added to the repository.

since

1.0

Static ACTIVITY_REMOVED

ACTIVITY_REMOVED: EventType = new EventType(RepositoryEvent.REPOSITORY_CHANGED, "ACTIVITY_REMOVED")

An event type that indicates that an activity has been removed from the repository.

since

1.0

Static REPOSITORY_CHANGED

REPOSITORY_CHANGED: EventType = new EventType(undefined, "REPOSITORY_CHANGED")

An event type that indicates that "something" inside the repository has changed.

since

1.0

Methods

getActivityRef

  • Returns the affected activity (ref).

    since

    1.0

    Returns ActivityRef

    the activity

getRepository

  • Returns the affected repository.

    since

    1.0

    Returns ActivityRepository

    the repository