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.
| Modifier and Type | Field and Description |
|---|---|
| public static final EventType | ANY
Hides javafx. |
| public static final EventType | HIDE
An explicit request to hide the info center. |
| private Notification | |
| public static final EventType | NOTIFICATION_ADDED
A notification was added. |
| public static final EventType | NOTIFICATION_CHOSEN
The user pressed on / chose the given notification. |
| public static final EventType | NOTIFICATION_REMOVED
A notification was removed. |
| Access | Constructor and Description |
|---|---|
| public | InfoCenterEvent(EventType<InfoCenterEvent>
the type of the event eventType)Constructs a new event without referencing a specific notification. |
| public | InfoCenterEvent(EventType<InfoCenterEvent>
the event type eventType, Notification<?> the affected notification notification)Constructs a new event related to the given notification. |
| Modifier and Type | Method and Description |
|---|---|
| public final Notification | Returns: the affected notificationReturns the notification that was affected (null if none was affected). |
| ANY | back to summary |
|---|---|
| public static final EventType<InfoCenterEvent> ANY Hides javafx. | |
| HIDE | back to summary |
|---|---|
| public static final EventType<InfoCenterEvent> HIDE An explicit request to hide the info center. | |
| notification | back to summary |
|---|---|
| private Notification<?> notification | |
| NOTIFICATION_ADDED | back to summary |
|---|---|
| public static final EventType<InfoCenterEvent> NOTIFICATION_ADDED A notification was added. | |
| NOTIFICATION_CHOSEN | back to summary |
|---|---|
| public static final EventType<InfoCenterEvent> NOTIFICATION_CHOSEN The user pressed on / chose the given notification. | |
| NOTIFICATION_REMOVED | back to summary |
|---|---|
| public static final EventType<InfoCenterEvent> NOTIFICATION_REMOVED A notification was removed. | |
| InfoCenterEvent | back to summary |
|---|---|
| public InfoCenterEvent(EventType<InfoCenterEvent> eventType) Constructs a new event without referencing a specific notification.
| |
| InfoCenterEvent | back to summary |
|---|---|
| public InfoCenterEvent(EventType<InfoCenterEvent> eventType, Notification<?> notification) Constructs a new event related to the given notification.
| |
| getNotification | back to summary |
|---|---|
| public final Notification Returns the notification that was affected (null if none was affected).
| |