org.richfaces.event.ItemChangeSource Maven / Gradle / Ivy
package org.richfaces.event;
/**
* @author akolonitsky
* @since Jul 20, 2010
*/
public interface ItemChangeSource {
/**
*
* Add a new {@link org.richfaces.event.ItemChangeListener} to the set of listeners interested in being notified when
* {@link org.richfaces.event.ItemChangeEvent}s occur.
*
*
* @param listener The {@link org.richfaces.event.ItemChangeListener} to be added
* @throws NullPointerException if listener
is null
*/
void addItemChangeListener(ItemChangeListener listener);
/**
*
* Return the set of registered {@link org.richfaces.event.ItemChangeListener}s for this instance. If there are no
* registered listeners, a zero-length array is returned.
*
*/
ItemChangeListener[] getItemChangeListeners();
/**
*
* Remove an existing {@link org.richfaces.event.ItemChangeListener} (if any) from the set of listeners interested in being
* notified when {@link org.richfaces.event.ItemChangeEvent}s occur.
*
*
* @param listener The {@link org.richfaces.event.ItemChangeListener} to be removed
* @throws NullPointerException if listener
is null
*/
void removeItemChangeListener(ItemChangeListener listener);
}