|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.demo.filehistory.FileHistoryPropertyListener
public class FileHistoryPropertyListener
A property listener which keeps track of recently opened files. This listener will update the "Recently opened"-files section in the "File"-menu.
Constructor Summary | |
---|---|
FileHistoryPropertyListener(BasicJadicePanel mainViewerPanel,
boolean useKeyStrokes)
Constructor. |
Method Summary | |
---|---|
void |
propertyChange(PropertyChangeEvent evt)
When a Property event for key "PageView.DOCUMENT_PROPERTY" is received, we check if the current document is different from the previously opened document (if any). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHistoryPropertyListener(BasicJadicePanel mainViewerPanel, boolean useKeyStrokes)
Creates a new Listener with the given mainViewerPanel
mainViewerPanel
- the related viewer paneluseKeyStrokes
- whether the file menu entries get accelerator key strokesMethod Detail |
---|
public void propertyChange(PropertyChangeEvent evt)
If that is the case, notify JadiceDemoPreferences
about the change.
Note
We do not check the PropertyChangeEvent key here - the listener is registered via
getPageView().addPropertyChangeListener(String key, PropertyChangeListener listener)Due to this registration, this listener will just receive Events with the specified key
propertyChange
in interface PropertyChangeListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |