KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: SComponentAdapter.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  * An abstract adapter class for receiving component events.
18  * The methods in this class are empty. This class exists as
19  * convenience for creating listener objects.
20  * <p/>
21  * Extend this class to create a ComponentEvent listener
22  * and override the methods for the events of interest. (If you implement the
23  * ComponentListener interface, you have to define all of
24  * the methods in it. This abstract class defines null methods for them
25  * all, so you can only have to define methods for events you care about.)
26  * <p/>
27  * Create a listener object using your class and then register it with a
28  * component using the component's addComponentListener method. When the component's size, location, or visibility
29  * changes, the relevant method in the listener object is invoked,
30  * and the ComponentEvent is passed to it.
31  *
32  * @author <a HREF="mailto:andre@lison.de">Andre Lison</a>
33  * @version $Revision: 1.3 $, $Date: 2004/12/01 07:54:07 $
34  * @see org.wings.event.SComponentEvent
35  * @see org.wings.event.SComponentListener
36  */

37 public abstract class SComponentAdapter
38         implements SComponentListener {
39     /**
40      * Invoked when the component has been made invisible.
41      */

42     public void componentHidden(SComponentEvent e) {};
43
44     /**
45      * Invoked when the component's position changes.
46      */

47     public void componentMoved(SComponentEvent e) {};
48
49     /**
50      * Invoked when the component's size changes.
51      */

52     public void componentResized(SComponentEvent e) {};
53
54     /**
55      * Invoked when the component has been made visible.
56      */

57     public void componentShown(SComponentEvent e) {};
58 }
59
60
61
Popular Tags