if (listeners[i] == InternalFrameListener.class) {
if (e == null) {
e = new InternalFrameEvent(this, id);
}
InternalFrameListener l = (InternalFrameListener)listeners[i + 1];
switch (id) {
case InternalFrameEvent.INTERNAL_FRAME_ACTIVATED:
l.internalFrameActivated(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED:
l.internalFrameDeactivated(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_ICONIFIED:
l.internalFrameIconified(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_DEICONIFIED:
l.internalFrameDeiconified(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_CLOSING:
l.internalFrameClosing(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_OPENED:
l.internalFrameOpened(e);
break;
case InternalFrameEvent.INTERNAL_FRAME_CLOSED:
l.internalFrameClosed(e);
break;
}
}
}
}