public SelectionNodeListener[] getSelectionNodeListeners() {
return (SelectionNodeListener[]) selectionNodeListenerList.getListeners(SelectionNodeListener.class);
}
public void fireContentsChanged(Object source, List nodes, Node currentNode) {
Object[] listeners = selectionNodeListenerList.getListenerList();
SelectionNodeEvent e = null;
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == SelectionNodeListener.class) {
if (e == null) {
e = new SelectionNodeEvent(source,
SelectionNodeEvent.SELECTION_CHANGED, nodes, currentNode,getSpreadSheetCategory());
}
((SelectionNodeListener) listeners[i + 1]).selectionChanged(e);
}
}