1 15 16 17 package swingwtx.swing.event; 18 19 import swingwtx.swing.*; 20 import swingwt.awt.*; 21 22 public class InternalFrameEvent extends AWTEvent implements java.io.Serializable { 23 24 public static final int INTERNAL_FRAME_OPENED = 0; 25 public static final int INTERNAL_FRAME_CLOSING = 1; 26 public static final int INTERNAL_FRAME_CLOSED = 2; 27 public static final int INTERNAL_FRAME_ICONIFIED = 3; 28 public static final int INTERNAL_FRAME_DEICONIFIED = 4; 29 public static final int INTERNAL_FRAME_ACTIVATED = 5; 30 public static final int INTERNAL_FRAME_DEACTIVATED = 6; 31 public static final int INTERNAL_FRAME_GAINED_FOCUS = 7; 32 public static final int INTERNAL_FRAME_LOST_FOCUS = 8; 33 public static final int INTERNAL_FRAME_STATE_CHANGED = 9; 34 35 public InternalFrameEvent(Object source, int id) { 36 super(source, id); 37 } 38 39 public JInternalFrame getInternalFrame() { 40 return (JInternalFrame) this.getSource(); 41 } 42 43 } 44 | Popular Tags |