public class InternalFrameEvent extends AWTEvent
AWTEvent
that adds support for
JInternalFrame
objects as the event source. This class has the
same event types as WindowEvent
,
although different IDs are used.
Help on handling internal frame events
is in
How to Write an Internal Frame Listener,
a section in The Java Tutorial.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans
package.
Please see XMLEncoder
.
WindowEvent
,
WindowListener
,
JInternalFrame
,
InternalFrameListener
Modifier and Type | Field and Description |
---|---|
static int |
INTERNAL_FRAME_ACTIVATED
The "window activated" event type.
|
static int |
INTERNAL_FRAME_CLOSED
The "window closed" event.
|
static int |
INTERNAL_FRAME_CLOSING
The "window is closing" event.
|
static int |
INTERNAL_FRAME_DEACTIVATED
The "window deactivated" event type.
|
static int |
INTERNAL_FRAME_DEICONIFIED
The "window deiconified" event type.
|
static int |
INTERNAL_FRAME_FIRST
The first number in the range of IDs used for internal frame events.
|
static int |
INTERNAL_FRAME_ICONIFIED
The "window iconified" event.
|
static int |
INTERNAL_FRAME_LAST
The last number in the range of IDs used for internal frame events.
|
static int |
INTERNAL_FRAME_OPENED
The "window opened" event.
|
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
source
Constructor and Description |
---|
InternalFrameEvent(JInternalFrame source,
int id)
Constructs an
InternalFrameEvent object. |
Modifier and Type | Method and Description |
---|---|
JInternalFrame |
getInternalFrame()
Returns the originator of the event.
|
String |
paramString()
Returns a parameter string identifying this event.
|
getSource
public static final int INTERNAL_FRAME_FIRST
public static final int INTERNAL_FRAME_LAST
public static final int INTERNAL_FRAME_OPENED
JInternalFrame.show()
,
Constant Field Valuespublic static final int INTERNAL_FRAME_CLOSING
setClosed
method.public static final int INTERNAL_FRAME_CLOSED
setClosed
or
dispose
method.public static final int INTERNAL_FRAME_ICONIFIED
public static final int INTERNAL_FRAME_DEICONIFIED
public static final int INTERNAL_FRAME_ACTIVATED
public static final int INTERNAL_FRAME_DEACTIVATED
public InternalFrameEvent(JInternalFrame source, int id)
InternalFrameEvent
object.source
- the JInternalFrame
object that originated the eventid
- an integer indicating the type of eventpublic String paramString()
paramString
in class AWTEvent
public JInternalFrame getInternalFrame()
JInternalFrame
object that originated the event Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.