org.jhotdraw.app
Class DefaultOSXApplication.OpenRecentMenuHandler

java.lang.Object
  extended by org.jhotdraw.app.DefaultOSXApplication.OpenRecentMenuHandler
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, Disposable
Enclosing class:
DefaultOSXApplication

private class DefaultOSXApplication.OpenRecentMenuHandler
extends java.lang.Object
implements java.beans.PropertyChangeListener, Disposable

Updates the menu items in the "Open Recent" file menu.


Field Summary
private  java.util.LinkedList<OpenRecentAction> openRecentActions
           
private  javax.swing.JMenu openRecentMenu
           
 
Constructor Summary
DefaultOSXApplication.OpenRecentMenuHandler(javax.swing.JMenu openRecentMenu, View view)
           
 
Method Summary
 void dispose()
          Disposes of all resources held by this object so that they can be garbage collected.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
protected  void updateOpenRecentMenu()
          Updates the "File > Open Recent" menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openRecentMenu

private javax.swing.JMenu openRecentMenu

openRecentActions

private java.util.LinkedList<OpenRecentAction> openRecentActions
Constructor Detail

DefaultOSXApplication.OpenRecentMenuHandler

public DefaultOSXApplication.OpenRecentMenuHandler(javax.swing.JMenu openRecentMenu,
                                                   View view)
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

updateOpenRecentMenu

protected void updateOpenRecentMenu()
Updates the "File > Open Recent" menu.


dispose

public void dispose()
Description copied from interface: Disposable
Disposes of all resources held by this object so that they can be garbage collected.

Specified by:
dispose in interface Disposable