Imported GNU Classpath 0.90
Imported GNU Classpath 0.90 * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale. * sources.am: Regenerated. * gcj/javaprims.h: Regenerated. * Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * gnu/java/lang/VMInstrumentationImpl.java: New override. * gnu/java/net/local/LocalSocketImpl.java: Likewise. * gnu/classpath/jdwp/VMMethod.java: Likewise. * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest interface. * java/lang/Thread.java: Add UncaughtExceptionHandler. * java/lang/reflect/Method.java: Implements GenericDeclaration and isSynthetic(), * java/lang/reflect/Field.java: Likewise. * java/lang/reflect/Constructor.java * java/lang/Class.java: Implements Type, GenericDeclaration, getSimpleName() and getEnclosing*() methods. * java/lang/Class.h: Add new public methods. * java/lang/Math.java: Add signum(), ulp() and log10(). * java/lang/natMath.cc (log10): New function. * java/security/VMSecureRandom.java: New override. * java/util/logging/Logger.java: Updated to latest classpath version. * java/util/logging/LogManager.java: New override. From-SVN: r113887
This commit is contained in:
parent
eaec4980e1
commit
4f9533c772
1640 changed files with 126485 additions and 104808 deletions
|
@ -1,5 +1,5 @@
|
|||
/* InternalFrameEvent.java --
|
||||
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2004, 2006, Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -43,6 +43,8 @@ import java.awt.AWTEvent;
|
|||
import javax.swing.JInternalFrame;
|
||||
|
||||
/**
|
||||
* An event that indicates a change to a {@link JInternalFrame} component.
|
||||
*
|
||||
* @author Andrew Selkirk
|
||||
*/
|
||||
public class InternalFrameEvent extends AWTEvent
|
||||
|
@ -50,55 +52,59 @@ public class InternalFrameEvent extends AWTEvent
|
|||
private static final long serialVersionUID = -5204823611874873183L;
|
||||
|
||||
/**
|
||||
* Internal frame activated event
|
||||
* Internal frame activated event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_ACTIVATED = 25554;
|
||||
|
||||
/**
|
||||
* Internal frame closed event
|
||||
* Internal frame closed event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_CLOSED = 25551;
|
||||
|
||||
/**
|
||||
* Internal frame closing event
|
||||
* Internal frame closing event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_CLOSING = 25550;
|
||||
|
||||
/**
|
||||
* Internal frame deactivated event
|
||||
* Internal frame deactivated event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_DEACTIVATED = 25555;
|
||||
|
||||
/**
|
||||
* Internal frame deiconifed event
|
||||
* Internal frame deiconifed event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_DEICONIFIED = 25553;
|
||||
|
||||
/**
|
||||
* Internal frame frame first event
|
||||
* Internal frame frame first event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_FIRST = 25549;
|
||||
|
||||
/**
|
||||
* Internal frame iconified event
|
||||
* Internal frame iconified event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_ICONIFIED = 25552;
|
||||
|
||||
/**
|
||||
* Internal frame last event
|
||||
* Internal frame last event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_LAST = 25555;
|
||||
|
||||
/**
|
||||
* Internal frame opened event
|
||||
* Internal frame opened event.
|
||||
*/
|
||||
public static final int INTERNAL_FRAME_OPENED = 25549;
|
||||
|
||||
/**
|
||||
* Creates a <code>JInternalFrameEvent</code> object.
|
||||
* Creates a new <code>JInternalFrameEvent</code> instance.
|
||||
*
|
||||
* @param source The source of this event.
|
||||
* @param id Then event ID of this event.
|
||||
* @param source the source of this event (<code>null</code> not permitted).
|
||||
* @param id the event ID of this event (see the constants defined by this
|
||||
* class).
|
||||
*
|
||||
* @throws IllegalArgumentException if <code>source</code> is
|
||||
* <code>null</code>.
|
||||
*/
|
||||
public InternalFrameEvent(JInternalFrame source, int id)
|
||||
{
|
||||
|
@ -106,10 +112,43 @@ public class InternalFrameEvent extends AWTEvent
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the <code>JInternalFrame</code> object stored in this event.
|
||||
* Returns the <code>JInternalFrame</code> component that is the source for
|
||||
* this event.
|
||||
*
|
||||
* @return The source.
|
||||
*
|
||||
* @since 1.3
|
||||
*/
|
||||
public JInternalFrame getInternalFrame()
|
||||
{
|
||||
return (JInternalFrame) source;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string that indicates the event id. This is used by the
|
||||
* {@link #toString()} method.
|
||||
*
|
||||
* @return A string that indicates the event id.
|
||||
*/
|
||||
public String paramString()
|
||||
{
|
||||
switch (id) {
|
||||
case INTERNAL_FRAME_ACTIVATED:
|
||||
return "INTERNAL_FRAME_ACTIVATED";
|
||||
case INTERNAL_FRAME_CLOSED:
|
||||
return "INTERNAL_FRAME_CLOSED";
|
||||
case INTERNAL_FRAME_CLOSING:
|
||||
return "INTERNAL_FRAME_CLOSING";
|
||||
case INTERNAL_FRAME_DEACTIVATED:
|
||||
return "INTERNAL_FRAME_DEACTIVATED";
|
||||
case INTERNAL_FRAME_DEICONIFIED:
|
||||
return "INTERNAL_FRAME_DEICONIFIED";
|
||||
case INTERNAL_FRAME_ICONIFIED:
|
||||
return "INTERNAL_FRAME_ICONIFIED";
|
||||
case INTERNAL_FRAME_OPENED:
|
||||
return "INTERNAL_FRAME_OPENED";
|
||||
default:
|
||||
return "unknown type";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue