< prev index next >
src/java.desktop/share/classes/javax/swing/event/InternalFrameEvent.java
Print this page
@@ -26,13 +26,13 @@
import java.awt.AWTEvent;
import javax.swing.JInternalFrame;
/**
- * An <code>AWTEvent</code> that adds support for
- * <code>JInternalFrame</code> objects as the event source. This class has the
- * same event types as <code>WindowEvent</code>,
+ * An {@code AWTEvent} that adds support for
+ * {@code JInternalFrame} objects as the event source. This class has the
+ * same event types as {@code WindowEvent},
* although different IDs are used.
* Help on handling internal frame events
* is in
* <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/internalframelistener.html" target="_top">How to Write an Internal Frame Listener</a>,
* a section in <em>The Java Tutorial</em>.
@@ -41,11 +41,11 @@
* 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 <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
*
* @see java.awt.event.WindowEvent
* @see java.awt.event.WindowListener
* @see JInternalFrame
@@ -77,23 +77,23 @@
/**
* The "window is closing" event. This event is delivered when
* the user attempts to close the internal frame, such as by
* clicking the internal frame's close button,
* or when a program attempts to close the internal frame
- * by invoking the <code>setClosed</code> method.
+ * by invoking the {@code setClosed} method.
*
* @see JInternalFrame#setDefaultCloseOperation
* @see JInternalFrame#doDefaultCloseAction
* @see JInternalFrame#setClosed
*/
public static final int INTERNAL_FRAME_CLOSING = 1 + INTERNAL_FRAME_FIRST;
/**
* The "window closed" event. This event is delivered after
* the internal frame has been closed as the result of a call to
- * the <code>setClosed</code> or
- * <code>dispose</code> method.
+ * the {@code setClosed} or
+ * {@code dispose} method.
*
* @see JInternalFrame#setClosed
* @see JInternalFrame#dispose
*/
public static final int INTERNAL_FRAME_CLOSED = 2 + INTERNAL_FRAME_FIRST;
@@ -131,12 +131,12 @@
* @see JInternalFrame#setSelected
*/
public static final int INTERNAL_FRAME_DEACTIVATED = 6 + INTERNAL_FRAME_FIRST;
/**
- * Constructs an <code>InternalFrameEvent</code> object.
- * @param source the <code>JInternalFrame</code> object that originated the event
+ * Constructs an {@code InternalFrameEvent} object.
+ * @param source the {@code JInternalFrame} object that originated the event
* @param id an integer indicating the type of event
*/
public InternalFrameEvent(JInternalFrame source, int id) {
super(source, id);
}
@@ -179,11 +179,11 @@
/**
* Returns the originator of the event.
*
- * @return the <code>JInternalFrame</code> object that originated the event
+ * @return the {@code JInternalFrame} object that originated the event
* @since 1.3
*/
public JInternalFrame getInternalFrame () {
return (source instanceof JInternalFrame)? (JInternalFrame)source : null;
< prev index next >