001    package users.events;
002    
003    import java.util.EventListener;
004    
005    /**
006     * A listener listening for CapabilityDataEvents.
007     *
008     * @see users.User
009     * @see users.Capability
010     * @see CapabilityDataEvent
011     *
012     * @author Steffen Zschaler
013     * @version 2.0 05/05/1999
014     * @since v2.0
015     */
016    public interface CapabilityDataListener extends EventListener {
017    
018        /**
019         * Called whenever capabilities where added to the source. The new capabilities
020         * will be contained in the event object.
021         *
022         * @param e the event object describing the event.
023         *
024         * @override Always
025         */
026        public void capabilitiesAdded(CapabilityDataEvent e);
027    
028        /**
029         * Called whenever capabilities where replaced in the source. The new capabilities
030         * will be contained in the event object.
031         *
032         * @param e the event object describing the event.
033         *
034         * @override Always
035         */
036        public void capabilitiesReplaced(CapabilityDataEvent e);
037    }