* @see com.vlsolutions.swing.docking.event.DockableStateChangeListener#dockableStateChanged(com.vlsolutions.swing.docking.event.DockableStateChangeEvent)
*/
public void dockableStateChanged(DockableStateChangeEvent event) {
DockableState previousState = event.getPreviousState();
DockableState newState = event.getNewState();
Dockable dockable = newState.getDockable();
PageComponent pc = getPageComponent(dockable);
if (pc == null)
return;
if (previousState != null && !previousState.isClosed() && newState.isClosed()) {
pc.getContext().getPage().close(pc);