package com.onaro.sanscreen.client.view.tabular;
import java.util.EventListener;
import com.onaro.util.ListenerList;
/**
* Allows other components to track changes in the grouping model
*/
public interface GroupingConfigListener extends EventListener {
/**
* Invoked whenever grouping configuration changes.
* @param event describe the change in the grouping
*/
public void configChanged(GroupingConfigEvent event);
/**
* Register an event firer with the ListenerList
utility for this listener.
*/
final static FireEvent firer = new FireEvent();
}
/**
* Used for sending event to GroupingConfigListener
s by the
* ListenerList
utility.
*/
class FireEvent implements ListenerList.FireEvent {
FireEvent() {
ListenerList.addFireEvent(GroupingConfigListener.class, this);
}
public void fire(GroupingConfigListener listener, GroupingConfigEvent event) {
listener.configChanged(event);
}
}