javax.swing.event
Class InternalFrameEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by javax.swing.event.InternalFrameEvent
All Implemented Interfaces:
Serializable

public class InternalFrameEvent
extends AWTEvent

An event that indicates a change to a JInternalFrame component.

See Also:
Serialized Form

Field Summary
static int INTERNAL_FRAME_ACTIVATED
          Internal frame activated event.
static int INTERNAL_FRAME_CLOSED
          Internal frame closed event.
static int INTERNAL_FRAME_CLOSING
          Internal frame closing event.
static int INTERNAL_FRAME_DEACTIVATED
          Internal frame deactivated event.
static int INTERNAL_FRAME_DEICONIFIED
          Internal frame deiconifed event.
static int INTERNAL_FRAME_FIRST
          Internal frame frame first event.
static int INTERNAL_FRAME_ICONIFIED
          Internal frame iconified event.
static int INTERNAL_FRAME_LAST
          Internal frame last event.
static int INTERNAL_FRAME_OPENED
          Internal frame opened event.
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InternalFrameEvent(JInternalFrame source, int id)
          Creates a new JInternalFrameEvent instance.
 
Method Summary
 JInternalFrame getInternalFrame()
          Returns the JInternalFrame component that is the source for this event.
 String paramString()
          Returns a string that indicates the event id.
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERNAL_FRAME_ACTIVATED

public static final int INTERNAL_FRAME_ACTIVATED
Internal frame activated event.

See Also:
Constant Field Values

INTERNAL_FRAME_CLOSED

public static final int INTERNAL_FRAME_CLOSED
Internal frame closed event.

See Also:
Constant Field Values

INTERNAL_FRAME_CLOSING

public static final int INTERNAL_FRAME_CLOSING
Internal frame closing event.

See Also:
Constant Field Values

INTERNAL_FRAME_DEACTIVATED

public static final int INTERNAL_FRAME_DEACTIVATED
Internal frame deactivated event.

See Also:
Constant Field Values

INTERNAL_FRAME_DEICONIFIED

public static final int INTERNAL_FRAME_DEICONIFIED
Internal frame deiconifed event.

See Also:
Constant Field Values

INTERNAL_FRAME_FIRST

public static final int INTERNAL_FRAME_FIRST
Internal frame frame first event.

See Also:
Constant Field Values

INTERNAL_FRAME_ICONIFIED

public static final int INTERNAL_FRAME_ICONIFIED
Internal frame iconified event.

See Also:
Constant Field Values

INTERNAL_FRAME_LAST

public static final int INTERNAL_FRAME_LAST
Internal frame last event.

See Also:
Constant Field Values

INTERNAL_FRAME_OPENED

public static final int INTERNAL_FRAME_OPENED
Internal frame opened event.

See Also:
Constant Field Values
Constructor Detail

InternalFrameEvent

public InternalFrameEvent(JInternalFrame source,
                          int id)
Creates a new JInternalFrameEvent instance.

Parameters:
source - the source of this event (null not permitted).
id - the event ID of this event (see the constants defined by this class).
Throws:
IllegalArgumentException - if source is null.
Method Detail

getInternalFrame

public JInternalFrame getInternalFrame()
Returns the JInternalFrame component that is the source for this event.

Returns:
The source.
Since:
1.3

paramString

public String paramString()
Returns a string that indicates the event id. This is used by the AWTEvent.toString() method.

Overrides:
paramString in class AWTEvent
Returns:
A string that indicates the event id.