KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > event > SComponentListener


1 /*
2  * $Id: SComponentListener.java,v 1.3 2004/12/01 07:54:07 hengels Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings.event;
15
16
17
18 /**
19  * The listener interface for receiving component events.
20  * The class that is interested in processing a component event
21  * either implements this interface (and all the methods it
22  * contains) or extends the abstract ComponentAdapter class
23  * (overriding only the methods of interest).
24  * The listener object created from that class is then registered with a
25  * component using the component's addComponentListener method. When the
26  * component's size, location, or visibility
27  * changes, the relevant method in the listener object is invoked,
28  * and the ComponentEvent is passed to it.
29  * <p/>
30  * Component events are provided for notification purposes ONLY;
31  * WingS will automatically handle component moves and resizes
32  * internally so that GUI layout works properly regardless of
33  * whether a program registers a ComponentListener or not.
34  *
35  * @author <a HREF="mailto:andre@lison.de">Andre Lison</a>
36  * @version $Revision: 1.3 $, $Date: 2004/12/01 07:54:07 $
37  * @see org.wings.event.SComponentAdapter
38  * @see org.wings.event.SComponentEvent
39  */

40 public interface SComponentListener
41         extends java.util.EventListener JavaDoc {
42     /**
43      * Invoked when the component has been made invisible.
44      */

45     public void componentHidden(SComponentEvent e);
46
47     /**
48      * Invoked when the component's position changes.
49      */

50     public void componentMoved(SComponentEvent e);
51
52     /**
53      * Invoked when the component's size changes.
54      */

55     public void componentResized(SComponentEvent e);
56
57     /**
58      * Invoked when the component has been made visible.
59      */

60     public void componentShown(SComponentEvent e);
61 }
62
63
64
Popular Tags