org.jhotdraw.app
Class AbstractApplication.OpenRecentMenuHandler

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

private class AbstractApplication.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<javax.swing.Action> openRecentActions
           
private  javax.swing.JMenu openRecentMenu
           
private  View view
           
 
Constructor Summary
AbstractApplication.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<javax.swing.Action> openRecentActions

view

private View view
Constructor Detail

AbstractApplication.OpenRecentMenuHandler

public AbstractApplication.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