Package diva.gui
Interface ViewListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
ViewAdapter
public interface ViewListener extends java.util.EventListener
A listener interface for receiving events on views. A _view_ is any JComponent that contains a view into a Document. Typically, views might be opened, closed, iconified, and so on. Although there are various listeners in AWT and Swing that capture these events, they are all specific to certain widgets, whereas the ViewListener interface abstracts from specific widgets.This interface is partly based on the Swing InternalFrameListener interface.
- Version:
- $Id$
- Author:
- Heloise Hse, John Reekie
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
viewClosed(ViewEvent e)
Invoked when the view has been closed.void
viewClosing(ViewEvent e)
Invoked when the view is about to be closedvoid
viewDeselected(ViewEvent e)
Invoked when the view has been de-selected.void
viewHidden(ViewEvent e)
Invoked when the view has been hidden.void
viewMoved(ViewEvent e)
Invoked when the view movesvoid
viewResized(ViewEvent e)
Invoked when the view was resizedvoid
viewSelected(ViewEvent e)
Invoked when the view has been selected.void
viewShown(ViewEvent e)
Invoked when the view has been shown.
-
-
-
Method Detail
-
viewClosed
void viewClosed(ViewEvent e)
Invoked when the view has been closed.
-
viewClosing
void viewClosing(ViewEvent e)
Invoked when the view is about to be closed
-
viewDeselected
void viewDeselected(ViewEvent e)
Invoked when the view has been de-selected. Typically, this happens when the view no longer is the front-most view or when it loses the focus.
-
viewHidden
void viewHidden(ViewEvent e)
Invoked when the view has been hidden. This might happen because another view is placed over the top of it, or because an internal frame is iconified.
-
viewMoved
void viewMoved(ViewEvent e)
Invoked when the view moves
-
viewResized
void viewResized(ViewEvent e)
Invoked when the view was resized
-
viewSelected
void viewSelected(ViewEvent e)
Invoked when the view has been selected. Typically, this happens when the view becomes the front-most view or when it gets the focus.
-
viewShown
void viewShown(ViewEvent e)
Invoked when the view has been shown. This might happen because an internal frame is deiconified, for example.
-
-