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 |
ViewModel.unsubscribe(NotificationObserver observer)
Removes the observer for all messages.
|
default void |
ViewModel.unsubscribe(String messageName,
NotificationObserver observer)
Remove the observer for a specific notification by a given messageName.
|
Modifier and Type | Class and Description |
---|---|
class |
NotificationTestHelper
The
NotificationTestHelper is used to simplify the testing of
notifications. |
Modifier and Type | Method and Description |
---|---|
void |
NotificationCenter.subscribe(String messageName,
NotificationObserver observer)
Add an observer to the NotificationCenter which gets notifications for the given String.
|
void |
NotificationCenter.subscribe(ViewModel viewModel,
String messageName,
NotificationObserver observer)
Subscribe to a
ViewModel -notification with a given NotificationObserver . |
void |
NotificationCenter.unsubscribe(NotificationObserver observer)
Remove all registrations of an NotificationObserver.
|
void |
NotificationCenter.unsubscribe(String messageName,
NotificationObserver observer)
Removes an observer from the NotificationCenter.
|
void |
NotificationCenter.unsubscribe(ViewModel viewModel,
NotificationObserver observer)
Removes a
NotificationObserver for all messageName. |
void |
NotificationCenter.unsubscribe(ViewModel viewModel,
String messageName,
NotificationObserver observer)
Removes a
NotificationObserver for a given messageName. |
Copyright © 2015 Saxonia Systems AG. All rights reserved.