Klasse RepositoryEvent
java.lang.Object
java.util.EventObject
javafx.event.Event
com.flexganttfx.model.repository.RepositoryEvent
- Alle implementierten Schnittstellen:
Serializable,Cloneable
An event class used by activity repositories to inform event handlers about
changes.
- Seit:
- 1.0
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final EventType<RepositoryEvent> An event type that indicates that an activity has been added to the repository.static final EventType<RepositoryEvent> An event type that indicates that an activity has been removed from the repository.static final EventType<RepositoryEvent> An event type that indicates that "something" inside the repository has changed.Von Klasse geerbte Felder java.util.EventObject
source -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRepositoryEvent(ActivityRepository<?> repository) Constructs a new repository event, the event type will be set to #REPOSITORY_CHANGED.RepositoryEvent(EventType<RepositoryEvent> eventType, ActivityRepository<?> repository, ActivityRef<?> activityRef) Constructs a new repository event. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal ActivityRef<?> Returns the affected activity (ref).final ActivityRepository<?> Returns the affected repository.Von Klasse geerbte Methoden javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedVon Klasse geerbte Methoden java.util.EventObject
getSource, toString
-
Felddetails
-
REPOSITORY_CHANGED
An event type that indicates that "something" inside the repository has changed.- Seit:
- 1.0
-
ACTIVITY_ADDED
An event type that indicates that an activity has been added to the repository.- Seit:
- 1.0
-
ACTIVITY_REMOVED
An event type that indicates that an activity has been removed from the repository.- Seit:
- 1.0
-
-
Konstruktordetails
-
RepositoryEvent
public RepositoryEvent(EventType<RepositoryEvent> eventType, ActivityRepository<?> repository, ActivityRef<?> activityRef) Constructs a new repository event.- Parameter:
eventType- the type of the event, e.g. #ACTIVITY_ADDEDrepository- the repository where the event occurredactivityRef- the affected activity (ref)- Seit:
- 1.0
-
RepositoryEvent
Constructs a new repository event, the event type will be set to #REPOSITORY_CHANGED.- Parameter:
repository- the repository where the event occurred- Seit:
- 1.0
-
-
Methodendetails
-
getActivityRef
Returns the affected activity (ref).- Gibt zurück:
- the activity
- Seit:
- 1.0
-
getRepository
Returns the affected repository.- Gibt zurück:
- the repository
- Seit:
- 1.0
-