KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.wings.event;
2
3 import org.wings.SComponent;
4 import org.wings.SFrame;
5
6 /**
7  * @author ole
8  * @version $Revision: 1.2 $
9  */

10 public class SParentFrameEvent extends SComponentEvent {
11     /**
12      * The first number of used IDs for parentFrame events.
13      */

14     public static final int PARENTFRAME_FIRST = 11100;
15
16     /**
17      * An event with this ID indicates, that a component was added to
18      * the container.
19      */

20     public static final int PARENTFRAME_ADDED = PARENTFRAME_FIRST;
21
22     /**
23      * An event with this ID indicates, that a component was removed from
24      * the container.
25      */

26     public static final int PARENTFRAME_REMOVED = PARENTFRAME_FIRST + 1;
27
28     /**
29      * The last number of used IDs for container events.
30      */

31     public static final int PARENTFRAME_LAST = PARENTFRAME_REMOVED;
32
33     /**
34      * the parent frame that has been added or removed.
35      */

36     private SFrame parentFrame;
37
38
39     public SParentFrameEvent(SComponent aSource, int anId, SFrame parentFrame) {
40         super(aSource, anId);
41         this.parentFrame = parentFrame;
42         // TODO Auto-generated constructor stub
43
}
44     
45     /**
46      * @return the parentFrame that has been added or removed.
47      */

48     public SFrame getParentFrame() {
49         return parentFrame;
50     }
51
52 }
53
Popular Tags