public final class RepositoryEvent
extends javafx.event.Event
Modifier and Type | Field and Description |
---|---|
static javafx.event.EventType<RepositoryEvent> |
ACTIVITY_ADDED
An event type that indicates that an activity has been added to the repository.
|
static javafx.event.EventType<RepositoryEvent> |
ACTIVITY_REMOVED
An event type that indicates that an activity has been removed from the repository.
|
static javafx.event.EventType<RepositoryEvent> |
REPOSITORY_CHANGED
An event type that indicates that "something" inside the repository has changed.
|
source
Constructor and Description |
---|
RepositoryEvent(ActivityRepository<?> repository)
Constructs a new repository event, the event type will be set to #REPOSITORY_CHANGED.
|
RepositoryEvent(javafx.event.EventType<RepositoryEvent> eventType,
ActivityRepository<?> repository,
ActivityRef<?> activityRef)
Constructs a new repository event.
|
Modifier and Type | Method and Description |
---|---|
ActivityRef<?> |
getActivityRef()
Returns the affected activity (ref).
|
ActivityRepository<?> |
getRepository()
Returns the affected repository.
|
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
getSource, toString
public static final javafx.event.EventType<RepositoryEvent> REPOSITORY_CHANGED
public static final javafx.event.EventType<RepositoryEvent> ACTIVITY_ADDED
public static final javafx.event.EventType<RepositoryEvent> ACTIVITY_REMOVED
public RepositoryEvent(javafx.event.EventType<RepositoryEvent> eventType, ActivityRepository<?> repository, ActivityRef<?> activityRef)
eventType
- the type of the event, e.g. #ACTIVITY_ADDEDrepository
- the repository where the event occurredactivityRef
- the affected activity (ref)public RepositoryEvent(ActivityRepository<?> repository)
repository
- the repository where the event occurredpublic final ActivityRef<?> getActivityRef()
public final ActivityRepository<?> getRepository()
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.