Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jwall.object
Interface FirewallDataEventSource  view FirewallDataEventSource download FirewallDataEventSource.java

All Known Subinterfaces:
NetworkObject
All Known Implementing Classes:
AbstractNetworkObject, Rate, Service, VPNPeer

public interface FirewallDataEventSource

Objects that need to inform other objects about changes need to implement this interface.


Method Summary
 void addFirewallDataListener(FirewallDataListener l)
          Adds a new listener to the list.
 void removeFirewallDataListener(FirewallDataListener l)
          Removes a listener from the list.
 void replaceWith(FirewallDataEventSource m)
          This method should be invoked if an object needs to be replaced by another one.
 void wasDeleted()
          This method should be invoked after deleting an object to inform all other objects about these change.
 void wasModified()
          This method should be invoked after making changes to an object.
 

Method Detail

addFirewallDataListener

public void addFirewallDataListener(FirewallDataListener l)
Adds a new listener to the list.


removeFirewallDataListener

public void removeFirewallDataListener(FirewallDataListener l)
Removes a listener from the list.


wasModified

public void wasModified()
This method should be invoked after making changes to an object. Many objects to not fire events after making a single change to avoid massive event firing.


replaceWith

public void replaceWith(FirewallDataEventSource m)
This method should be invoked if an object needs to be replaced by another one. This can be the be the case if a new object was created to avoid several changes to the same object.


wasDeleted

public void wasDeleted()
This method should be invoked after deleting an object to inform all other objects about these change. Display components can update the view to reflect removing the object.