THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Registering Listeners
A view can register to listen for view events an event Listener from other views by view name, or by view name + version. When an event Event is fired from the source view, all registered listeners will receive the event.
Info |
---|
Typically, a view implementation will register event listeners using during the |
...
. |
...
Firing and Receiving Events
- Create an event.
http://github.com/apache/ambari/blob/trunk/ambari-views/src/main/java/org/apache/ambari/view/events/Event.java - Fire the event.
controllerviewContext.getViewController().fireEvent(event)
Receiving Events
;
- The framework will notify all registered listeners. The listener implementation can process the event as appropriate.
listener.notify(event)
...
...