Serializable
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
.
Modifier and Type | Field | Description |
---|---|---|
static final int |
INTERNAL_FRAME_ACTIVATED |
The "window activated" event type. |
static final int |
INTERNAL_FRAME_CLOSED |
The "window closed" event. |
static final int |
INTERNAL_FRAME_CLOSING |
The "window is closing" event. |
static final int |
INTERNAL_FRAME_DEACTIVATED |
The "window deactivated" event type. |
static final int |
INTERNAL_FRAME_DEICONIFIED |
The "window deiconified" event type. |
static final int |
INTERNAL_FRAME_FIRST |
The first number in the range of IDs used for internal frame events. |
static final int |
INTERNAL_FRAME_ICONIFIED |
The "window iconified" event. |
static final int |
INTERNAL_FRAME_LAST |
The last number in the range of IDs used for internal frame events. |
static final 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 | Description |
---|---|
InternalFrameEvent |
Constructs an InternalFrameEvent object. |
Modifier and Type | Method | 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
public 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
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/event/InternalFrameEvent.html