com.levigo.jadice.demo.util
Class WelcomePanelPropertyListener
java.lang.Object
com.levigo.jadice.demo.util.WelcomePanelPropertyListener
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
public class WelcomePanelPropertyListener
- extends Object
- implements PropertyChangeListener
This property listener will make sure to show the WelcomePanel if no document is shown.
It can be registered on a page view as PropertyChangeListener to get notified about changes in
the currently shown document.
For example:
myPageView.addPropertyChangeListener(PageView.DOCUMENT_PROPERTY, new WelcomePanelPropertyListener(mainViewerPanel));
If no document is loaded in the viewer, the WelcomePanel will be enabled by this listener which
also makes the panel visible. If there is a document, the component will be hidden.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WelcomePanelPropertyListener
public WelcomePanelPropertyListener(BasicJadicePanel mainViewerPanel)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Called to notify this listener about a PropertyChange.
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
- Specified by:
propertyChange
in interface PropertyChangeListener
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.