1 16 package swingwt.awt.event; 17 18 import swingwt.awt.Component; 19 import swingwt.awt.Container; 20 21 27 public class ContainerEvent extends ComponentEvent { 28 public static final int CONTAINER_FIRST=300; 29 public static final int CONTAINER_LAST=301; 30 public static final int COMPONENT_ADDED=CONTAINER_FIRST; 31 public static final int COMPONENT_REMOVED=1+CONTAINER_FIRST; 32 33 Component child; 35 41 public ContainerEvent(Component source, int id, Component child) { 42 super(source, id); 43 this.child = child; 44 } 45 46 51 public Container getContainer() { 52 return (Container)source; } 54 55 59 public Component getChild() { 60 return child; 61 } 62 } 63 | Popular Tags |