Observable ========== .. java:package:: ch.epfl.leb.sass.logging :noindex: .. java:type:: public interface Observable Defines interface methods for logging changes in a microscope component. :author: Kyle M. Douglass Methods ------- addListener ^^^^^^^^^^^ .. java:method:: public void addListener(Listener listener) :outertype: Observable Adds a new listener to the list of subscribed listeners. :param listener: The listener to add to the list of subscribed listeners. deleteListener ^^^^^^^^^^^^^^ .. java:method:: public void deleteListener(Listener listener) :outertype: Observable Deletes a listener from the list of subscribed listeners. :param listener: The listener to delete from the list of listeners. notifyListeners ^^^^^^^^^^^^^^^ .. java:method:: public void notifyListeners() :outertype: Observable Notifies all subscribed listeners to a change in the Observable's state. This method should only be called if setChanged() has been called. notifyListeners ^^^^^^^^^^^^^^^ .. java:method:: public void notifyListeners(Object data) :outertype: Observable Notifies all subscribed listeners of a state change and pushes the data. :param data: The data object to push to the listeners. setChanged ^^^^^^^^^^ .. java:method:: public void setChanged() :outertype: Observable Indicates that the state of this Observable has been changed.