jdk/src/share/classes/java/awt/event/WindowEvent.java
author dxu
Thu, 04 Apr 2013 15:39:17 -0700
changeset 16734 da1901d79073
parent 12317 9670c1610c53
child 20455 f6f9a0c2796b
permissions -rw-r--r--
8000406: change files using @GenerateNativeHeader to use @Native Summary: Use @Native annotation to mark constants interested by native codes Reviewed-by: alanb, anthony, prr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
     2
 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.awt.event;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Window;
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
    29
import java.lang.annotation.Native;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import sun.awt.AppContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import sun.awt.SunToolkit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * A low-level event that indicates that a window has changed its status. This
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * low-level event is generated by a Window object when it is opened, closed,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * activated, deactivated, iconified, or deiconified, or when focus is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * transfered into or out of the Window.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * The event is passed to every <code>WindowListener</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * or <code>WindowAdapter</code> object which registered to receive such
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * events using the window's <code>addWindowListener</code> method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * (<code>WindowAdapter</code> objects implement the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <code>WindowListener</code> interface.) Each such listener object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * gets this <code>WindowEvent</code> when the event occurs.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
    45
 * <p>
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
    46
 * An unspecified behavior will be caused if the {@code id} parameter
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
    47
 * of any particular {@code WindowEvent} instance is not
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
    48
 * in the range from {@code WINDOW_FIRST} to {@code WINDOW_LAST}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * @author Carl Quinn
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * @author Amy Fowler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * @see WindowAdapter
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * @see WindowListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/windowlistener.html">Tutorial: Writing a Window Listener</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * @since JDK1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
public class WindowEvent extends ComponentEvent {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * The first number in the range of ids used for window events.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    public static final int WINDOW_FIRST        = 200;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * The window opened event.  This event is delivered only
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * the first time a window is made visible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
    70
    @Native public static final int WINDOW_OPENED       = WINDOW_FIRST; // 200
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * The "window is closing" event. This event is delivered when
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * the user attempts to close the window from the window's system menu.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * If the program does not explicitly hide or dispose the window
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * while processing this event, the window close operation will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * cancelled.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
    79
    @Native public static final int WINDOW_CLOSING      = 1 + WINDOW_FIRST; //Event.WINDOW_DESTROY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * The window closed event. This event is delivered after
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * the window has been closed as the result of a call to dispose.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
    85
    @Native public static final int WINDOW_CLOSED       = 2 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * The window iconified event. This event is delivered when
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * the window has been changed from a normal to a minimized state.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * For many platforms, a minimized window is displayed as
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * the icon specified in the window's iconImage property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * @see java.awt.Frame#setIconImage
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
    94
    @Native public static final int WINDOW_ICONIFIED    = 3 + WINDOW_FIRST; //Event.WINDOW_ICONIFY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * The window deiconified event type. This event is delivered when
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * the window has been changed from a minimized to a normal state.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   100
    @Native public static final int WINDOW_DEICONIFIED  = 4 + WINDOW_FIRST; //Event.WINDOW_DEICONIFY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * The window-activated event type. This event is delivered when the Window
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * becomes the active Window. Only a Frame or a Dialog can be the active
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * Window. The native windowing system may denote the active Window or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * children with special decorations, such as a highlighted title bar. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * active Window is always either the focused Window, or the first Frame or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * Dialog that is an owner of the focused Window.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   110
    @Native public static final int WINDOW_ACTIVATED    = 5 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * The window-deactivated event type. This event is delivered when the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * Window is no longer the active Window. Only a Frame or a Dialog can be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * the active Window. The native windowing system may denote the active
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * Window or its children with special decorations, such as a highlighted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * title bar. The active Window is always either the focused Window, or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * first Frame or Dialog that is an owner of the focused Window.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   120
    @Native public static final int WINDOW_DEACTIVATED  = 6 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * The window-gained-focus event type. This event is delivered when the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * Window becomes the focused Window, which means that the Window, or one
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * of its subcomponents, will receive keyboard events.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   127
    @Native public static final int WINDOW_GAINED_FOCUS = 7 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * The window-lost-focus event type. This event is delivered when a Window
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * is no longer the focused Window, which means keyboard events will no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * longer be delivered to the Window or any of its subcomponents.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   134
    @Native public static final int WINDOW_LOST_FOCUS   = 8 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * The window-state-changed event type.  This event is delivered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * when a Window's state is changed by virtue of it being
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * iconified, maximized etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     */
16734
da1901d79073 8000406: change files using @GenerateNativeHeader to use @Native
dxu
parents: 12317
diff changeset
   142
    @Native public static final int WINDOW_STATE_CHANGED = 9 + WINDOW_FIRST;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * The last number in the range of ids used for window events.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    public static final int WINDOW_LAST         = WINDOW_STATE_CHANGED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * The other Window involved in this focus or activation change. For a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this is the Window that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * lost activation or focus. For a WINDOW_DEACTIVATED or WINDOW_LOST_FOCUS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * event, this is the Window that gained activation or focus. For any other
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * type of WindowEvent, or if the focus or activation change occurs with a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * native application, a Java application in a different VM, or with no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * other Window, null is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @see #getOppositeWindow
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    transient Window opposite;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * TBS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    int oldState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    int newState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * JDK 1.1 serialVersionUID
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    private static final long serialVersionUID = -1567959133147912127L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Constructs a <code>WindowEvent</code> object.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   178
     * <p>This method throws an
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     *
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   182
     * @param source    The <code>Window</code> object
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *                    that originated the event
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   184
     * @param id        An integer indicating the type of event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   185
     *                     For information on allowable values, see
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   186
     *                     the class description for {@link WindowEvent}
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   187
     * @param opposite  The other window involved in the focus or activation
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     *                      change, or <code>null</code>
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   189
     * @param oldState  Previous state of the window for window state change event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   190
     *                  See {@code #getOldState()} for allowable values
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   191
     * @param newState  New state of the window for window state change event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   192
     *                  See {@code #getNewState()} for allowable values
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @throws IllegalArgumentException if <code>source</code> is null
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   194
     * @see #getWindow()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   195
     * @see #getID()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   196
     * @see #getOppositeWindow()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   197
     * @see #getOldState()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   198
     * @see #getNewState()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    public WindowEvent(Window source, int id, Window opposite,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                       int oldState, int newState)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        super(source, id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        this.opposite = opposite;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        this.oldState = oldState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        this.newState = newState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * Constructs a <code>WindowEvent</code> object with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * specified opposite <code>Window</code>. The opposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * <code>Window</code> is the other <code>Window</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * involved in this focus or activation change.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * For a <code>WINDOW_ACTIVATED</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * <code>WINDOW_GAINED_FOCUS</code> event, this is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * <code>Window</code> that lost activation or focus.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * For a <code>WINDOW_DEACTIVATED</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * <code>WINDOW_LOST_FOCUS</code> event, this is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * <code>Window</code> that gained activation or focus.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * If this focus change occurs with a native application, with a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * Java application in a different VM, or with no other
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * <code>Window</code>, then the opposite Window is <code>null</code>.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   224
     * <p>This method throws an
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     *
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   228
     * @param source     The <code>Window</code> object that
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     *                   originated the event
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   230
     * @param id        An integer indicating the type of event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   231
     *                     For information on allowable values, see
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   232
     *                     the class description for {@link WindowEvent}.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   233
     *                  It is expected that this constructor will not
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   234
     *                  be used for other then
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   235
     *                  {@code WINDOW_ACTIVATED},{@code WINDOW_DEACTIVATED},
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   236
     *                  {@code WINDOW_GAINED_FOCUS}, or {@code WINDOW_LOST_FOCUS}.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   237
     *                  {@code WindowEvent} types,
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   238
     *                  because the opposite <code>Window</code> of other event types
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   239
     *                  will always be {@code null}.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   240
     * @param opposite   The other <code>Window</code> involved in the
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     *                   focus or activation change, or <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * @throws IllegalArgumentException if <code>source</code> is null
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   243
     * @see #getWindow()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   244
     * @see #getID()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   245
     * @see #getOppositeWindow()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    public WindowEvent(Window source, int id, Window opposite) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        this(source, id, opposite, 0, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * Constructs a <code>WindowEvent</code> object with the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * previous and new window states.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   255
     * <p>This method throws an
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     *
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   259
     * @param source    The <code>Window</code> object
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     *                  that originated the event
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   261
     * @param id        An integer indicating the type of event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   262
     *                     For information on allowable values, see
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   263
     *                     the class description for {@link WindowEvent}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     *                  It is expected that this constructor will not
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   265
     *                  be used for other then
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   266
     *                  {@code WINDOW_STATE_CHANGED}
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   267
     *                  {@code WindowEvent}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     *                  types, because the previous and new window
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     *                  states are meaningless for other event types.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   270
     * @param oldState  An integer representing the previous window state.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   271
     *                  See {@code #getOldState()} for allowable values
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   272
     * @param newState  An integer representing the new window state.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   273
     *                  See {@code #getNewState()} for allowable values
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * @throws IllegalArgumentException if <code>source</code> is null
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   275
     * @see #getWindow()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   276
     * @see #getID()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   277
     * @see #getOldState()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   278
     * @see #getNewState()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    public WindowEvent(Window source, int id, int oldState, int newState) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
        this(source, id, null, oldState, newState);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     * Constructs a <code>WindowEvent</code> object.
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   287
     * <p>This method throws an
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     *
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   291
     * @param source The <code>Window</code> object that originated the event
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   292
     * @param id     An integer indicating the type of event.
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   293
     *                     For information on allowable values, see
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   294
     *                     the class description for {@link WindowEvent}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * @throws IllegalArgumentException if <code>source</code> is null
440
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   296
     * @see #getWindow()
a3dac373f62d 6520716: event classes lack info about parameters
dav
parents: 2
diff changeset
   297
     * @see #getID()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
    public WindowEvent(Window source, int id) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        this(source, id, null, 0, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * Returns the originator of the event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * @return the Window object that originated the event
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
    public Window getWindow() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
        return (source instanceof Window) ? (Window)source : null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * Returns the other Window involved in this focus or activation change.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * For a WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this is the Window
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * that lost activation or focus. For a WINDOW_DEACTIVATED or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     * WINDOW_LOST_FOCUS event, this is the Window that gained activation or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * focus. For any other type of WindowEvent, or if the focus or activation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * change occurs with a native application, with a Java application in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * different VM or context, or with no other Window, null is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * @return the other Window involved in the focus or activation change, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     *         null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    public Window getOppositeWindow() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
        if (opposite == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
            return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
        return (SunToolkit.targetToAppContext(opposite) ==
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
                AppContext.getAppContext())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
            ? opposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
            : null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     * For <code>WINDOW_STATE_CHANGED</code> events returns the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * previous state of the window. The state is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * represented as a bitwise mask.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     * <li><code>NORMAL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     * <br>Indicates that no state bits are set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * <li><code>ICONIFIED</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     * <li><code>MAXIMIZED_HORIZ</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * <li><code>MAXIMIZED_VERT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     * <li><code>MAXIMIZED_BOTH</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * <br>Concatenates <code>MAXIMIZED_HORIZ</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * and <code>MAXIMIZED_VERT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * @return a bitwise mask of the previous window state
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * @see java.awt.Frame#getExtendedState()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    public int getOldState() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
        return oldState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     * For <code>WINDOW_STATE_CHANGED</code> events returns the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
     * new state of the window. The state is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
     * represented as a bitwise mask.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * <li><code>NORMAL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * <br>Indicates that no state bits are set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * <li><code>ICONIFIED</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * <li><code>MAXIMIZED_HORIZ</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * <li><code>MAXIMIZED_VERT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * <li><code>MAXIMIZED_BOTH</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * <br>Concatenates <code>MAXIMIZED_HORIZ</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * and <code>MAXIMIZED_VERT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * @return a bitwise mask of the new window state
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * @see java.awt.Frame#getExtendedState()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
    public int getNewState() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
        return newState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     * Returns a parameter string identifying this event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     * This method is useful for event-logging and for debugging.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     * @return a string identifying the event and its attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
    public String paramString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
        String typeStr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
        switch(id) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
          case WINDOW_OPENED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
              typeStr = "WINDOW_OPENED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
          case WINDOW_CLOSING:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
              typeStr = "WINDOW_CLOSING";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
          case WINDOW_CLOSED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
              typeStr = "WINDOW_CLOSED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
          case WINDOW_ICONIFIED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
              typeStr = "WINDOW_ICONIFIED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
          case WINDOW_DEICONIFIED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
              typeStr = "WINDOW_DEICONIFIED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
          case WINDOW_ACTIVATED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
              typeStr = "WINDOW_ACTIVATED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
          case WINDOW_DEACTIVATED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
              typeStr = "WINDOW_DEACTIVATED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
          case WINDOW_GAINED_FOCUS:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
              typeStr = "WINDOW_GAINED_FOCUS";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
          case WINDOW_LOST_FOCUS:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
              typeStr = "WINDOW_LOST_FOCUS";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
          case WINDOW_STATE_CHANGED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
              typeStr = "WINDOW_STATE_CHANGED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
          default:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
              typeStr = "unknown type";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
        typeStr += ",opposite=" + getOppositeWindow()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
            + ",oldState=" + oldState + ",newState=" + newState;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
        return typeStr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
}