* type is not one of the above, nothing happens.
*/
protected void fireSidePaneEvent(SidePaneItem sidePaneItem, int id) {
if (initListenerList(false)) {
Object[] listeners = listenerList.getListenerList();
SidePaneEvent e = null;
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == SidePaneListener.class) {
if (e == null) {
e = new SidePaneEvent(sidePaneItem, id);
}
switch (e.getID()) {
case SidePaneEvent.SIDE_PANE_TAB_SELECTED:
((SidePaneListener) listeners[i + 1]).sidePaneTabSelected(e);
break;
case SidePaneEvent.SIDE_PANE_TAB_DESELECTED:
((SidePaneListener) listeners[i + 1]).sidePaneTabDeselected(e);