|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DaoChangeNotifier
Notifies registered observers of DAO changes. The notifications sent are consistent.
| Nested Class Summary | |
|---|---|
static class |
DaoChangeNotifier.Change
Sent if something in this DAO view may have changed. |
static class |
DaoChangeNotifier.EntityChange
Something about DaoChangeNotifier.EntityChange.m_changee may have changed. |
static class |
DaoChangeNotifier.EntityDeleted
The DaoChangeNotifier.EntityChange.m_changee has been deleted. |
static class |
DaoChangeNotifier.EntityInserted
The DaoChangeNotifier.EntityChange.m_changee has been inserted. |
static class |
DaoChangeNotifier.EntityStateChanged
The DaoChangeNotifier.EntityChange.m_changee's state has changed. |
static class |
DaoChangeNotifier.NewEntityState
The DaoChangeNotifier.EntityChange.m_changee has new state. |
| Field Summary | |
|---|---|
static DaoChangeNotifier.Change |
FUZZY_CHANGE
A fuzzy change object so callers do not have to construct their own. |
| Method Summary | |
|---|---|
void |
announce(DaoChangeNotifier.Change change)
Announces change to all subscribed observers. |
void |
subscribe(DaoChangeListener cl)
Causes cl to receive future change notifications. |
void |
unsubscribe(DaoChangeListener cl)
Causes cl to no longer receive future change notifications. |
| Field Detail |
|---|
static final DaoChangeNotifier.Change FUZZY_CHANGE
| Method Detail |
|---|
void subscribe(DaoChangeListener cl)
cl to receive future change notifications.
cl - The DaoChangeListener to subscribevoid unsubscribe(DaoChangeListener cl)
cl to no longer receive future change notifications.
cl - The DaoChangeListener to unsubscribevoid announce(DaoChangeNotifier.Change change)
change to all subscribed observers.
change - The change to announce
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||