| Package | Description |
|---|---|
| de.saxsys.mvvmfx |
Contains the core mvvmFX classes, interfaces and annotations.
|
| de.saxsys.mvvmfx.utils.notifications |
Provide notifications to reduce coupling between viewModels and views.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ViewModel.subscribe(String messageName,
NotificationObserver observer)
Subscribe to a notification with a given
NotificationObserver. |
default void |
Scope.subscribe(String messageName,
NotificationObserver observer) |
default void |
ViewModel.unsubscribe(NotificationObserver observer)
Removes the observer for all messages.
|
default void |
Scope.unsubscribe(NotificationObserver observer) |
default void |
ViewModel.unsubscribe(String messageName,
NotificationObserver observer)
Remove the observer for a specific notification by a given messageName.
|
default void |
Scope.unsubscribe(String messageName,
NotificationObserver observer) |
| Modifier and Type | Class and Description |
|---|---|
class |
NotificationTestHelper
The
NotificationTestHelper is used to simplify the testing of
notifications. |
class |
ThreadlessNotificationTestHelper
The
ThreadlessNotificationTestHelper is an alternative to the NotificationTestHelper and can be used
to test notifications, for instance from view models. |
class |
WeakNotificationObserver
This class is a wrapper of a
NotificationObserver that only
holds a weak reference to the observer. |
| Modifier and Type | Method and Description |
|---|---|
void |
NotificationCenter.subscribe(Object channel,
String messageName,
NotificationObserver observer)
Subscribe to a notification with a given
NotificationObserver on a specific channel. |
void |
DefaultNotificationCenter.subscribe(Object channel,
String messageName,
NotificationObserver observer) |
void |
NotificationCenter.subscribe(String messageName,
NotificationObserver observer)
Add an observer to the NotificationCenter which gets notifications for the given String.
|
void |
DefaultNotificationCenter.subscribe(String messageName,
NotificationObserver observer) |
void |
NotificationCenter.unsubscribe(NotificationObserver observer)
Remove all registrations of an NotificationObserver.
|
void |
DefaultNotificationCenter.unsubscribe(NotificationObserver observer) |
void |
NotificationCenter.unsubscribe(Object channel,
NotificationObserver observer)
Removes a
NotificationObserver for all messageName. |
void |
DefaultNotificationCenter.unsubscribe(Object channel,
NotificationObserver observer) |
void |
NotificationCenter.unsubscribe(Object channel,
String messageName,
NotificationObserver observer)
Removes a
NotificationObserver for a given messageName. |
void |
DefaultNotificationCenter.unsubscribe(Object channel,
String messageName,
NotificationObserver observer) |
void |
NotificationCenter.unsubscribe(String messageName,
NotificationObserver observer)
Removes an observer from the NotificationCenter.
|
void |
DefaultNotificationCenter.unsubscribe(String messageName,
NotificationObserver observer) |
| Constructor and Description |
|---|
WeakNotificationObserver(NotificationObserver notificationObserver) |
Copyright © 2019 Saxonia Systems AG. All rights reserved.