java.lang.Object
java.util.EventObject
javafx.event.Event
com.dlsc.gemsfx.infocenter.InfoCenterEvent
- All Implemented Interfaces:
Serializable,Cloneable
public class InfoCenterEvent
extends javafx.event.Event
An event class used by the
InfoCenterView, especially in combination with
the InfoCenterPane. The pane can react to events fired by the view so that
the info center can be shown or hidden when needed / requested.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javafx.event.EventType<InfoCenterEvent>static final javafx.event.EventType<InfoCenterEvent>An explicit request to hide the info center.static final javafx.event.EventType<InfoCenterEvent>A notification was added.static final javafx.event.EventType<InfoCenterEvent>The user pressed on / chose the given notification.static final javafx.event.EventType<InfoCenterEvent>A notification was removed.Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, targetFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInfoCenterEvent(javafx.event.EventType<InfoCenterEvent> eventType) Constructs a new event without referencing a specific notification.InfoCenterEvent(javafx.event.EventType<InfoCenterEvent> eventType, Notification<?> notification) Constructs a new event related to the given notification. -
Method Summary
Modifier and TypeMethodDescriptionfinal Notification<?>Returns the notification that was affected (null if none was affected).Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ANY
-
NOTIFICATION_CHOSEN
The user pressed on / chose the given notification. -
NOTIFICATION_ADDED
A notification was added. -
NOTIFICATION_REMOVED
A notification was removed. -
HIDE
An explicit request to hide the info center.
-
-
Constructor Details
-
InfoCenterEvent
Constructs a new event without referencing a specific notification.- Parameters:
eventType- the type of the event
-
InfoCenterEvent
public InfoCenterEvent(javafx.event.EventType<InfoCenterEvent> eventType, Notification<?> notification) Constructs a new event related to the given notification.- Parameters:
eventType- the event typenotification- the affected notification
-
-
Method Details
-
getNotification
Returns the notification that was affected (null if none was affected).- Returns:
- the affected notification
-