javax.swing.event

Class InternalFrameEvent

public class InternalFrameEvent extends AWTEvent

An event that indicates a change to a {@link JInternalFrame} component.
Field Summary
static intINTERNAL_FRAME_ACTIVATED
Internal frame activated event.
static intINTERNAL_FRAME_CLOSED
Internal frame closed event.
static intINTERNAL_FRAME_CLOSING
Internal frame closing event.
static intINTERNAL_FRAME_DEACTIVATED
Internal frame deactivated event.
static intINTERNAL_FRAME_DEICONIFIED
Internal frame deiconifed event.
static intINTERNAL_FRAME_FIRST
Internal frame frame first event.
static intINTERNAL_FRAME_ICONIFIED
Internal frame iconified event.
static intINTERNAL_FRAME_LAST
Internal frame last event.
static intINTERNAL_FRAME_OPENED
Internal frame opened event.
Constructor Summary
InternalFrameEvent(JInternalFrame source, int id)
Creates a new JInternalFrameEvent instance.
Method Summary
JInternalFramegetInternalFrame()
Returns the JInternalFrame component that is the source for this event.
StringparamString()
Returns a string that indicates the event id.

Field Detail

INTERNAL_FRAME_ACTIVATED

public static final int INTERNAL_FRAME_ACTIVATED
Internal frame activated event.

INTERNAL_FRAME_CLOSED

public static final int INTERNAL_FRAME_CLOSED
Internal frame closed event.

INTERNAL_FRAME_CLOSING

public static final int INTERNAL_FRAME_CLOSING
Internal frame closing event.

INTERNAL_FRAME_DEACTIVATED

public static final int INTERNAL_FRAME_DEACTIVATED
Internal frame deactivated event.

INTERNAL_FRAME_DEICONIFIED

public static final int INTERNAL_FRAME_DEICONIFIED
Internal frame deiconifed event.

INTERNAL_FRAME_FIRST

public static final int INTERNAL_FRAME_FIRST
Internal frame frame first event.

INTERNAL_FRAME_ICONIFIED

public static final int INTERNAL_FRAME_ICONIFIED
Internal frame iconified event.

INTERNAL_FRAME_LAST

public static final int INTERNAL_FRAME_LAST
Internal frame last event.

INTERNAL_FRAME_OPENED

public static final int INTERNAL_FRAME_OPENED
Internal frame opened event.

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 {@link #toString()} method.

Returns: A string that indicates the event id.