org.mars_sim.msp.ui.swing.unit_window
Class UnitWindowListener
java.lang.Object
javax.swing.event.InternalFrameAdapter
org.mars_sim.msp.ui.swing.unit_window.UnitWindowListener
- All Implemented Interfaces:
- EventListener, InternalFrameListener
public class UnitWindowListener
- extends InternalFrameAdapter
The UnitWindowListener class is a custom window listener for unit
detail windows that handles their behavior.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnitWindowListener
public UnitWindowListener(MainDesktopPane desktop)
- Constructs a UnitWindowListener object
- Parameters:
desktop - the desktop pane
internalFrameClosing
public void internalFrameClosing(InternalFrameEvent e)
- Removes unit button from toolbar when unit window is closed.
- Specified by:
internalFrameClosing in interface InternalFrameListener- Overrides:
internalFrameClosing in class InternalFrameAdapter
- Parameters:
e - internal frame event.
Copyright © 2009-2013. All Rights Reserved.