jdk/src/share/classes/sun/awt/TimedWindowEvent.java
author anthony
Tue, 12 Aug 2014 14:22:05 +0400
changeset 26342 3637212ae8f2
parent 22636 5bb85dc6771b
permissions -rw-r--r--
8049065: [JLightweightFrame] Support DnD for SwingNode Summary: Delegate DnD operations to LightweightContent when appropriate Reviewed-by: ant, pchelko
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13652
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     1
/*
22636
5bb85dc6771b 8033222: Fix serial lint warnings in sun.awt.*
darcy
parents: 13652
diff changeset
     2
 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
13652
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     4
 *
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    10
 *
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    15
 * accompanied this code).
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    16
 *
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    20
 *
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    23
 * questions.
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    24
 */
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    25
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    26
package sun.awt;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    27
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    28
import java.awt.event.WindowEvent;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    29
import java.awt.Window;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    30
22636
5bb85dc6771b 8033222: Fix serial lint warnings in sun.awt.*
darcy
parents: 13652
diff changeset
    31
@SuppressWarnings("serial") // JDK-implementation class
13652
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    32
public class TimedWindowEvent extends WindowEvent {
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    33
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    34
    private long time;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    35
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    36
    public long getWhen() {
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    37
        return time;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    38
    }
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    39
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    40
    public TimedWindowEvent(Window source, int id, Window opposite, long time) {
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    41
        super(source, id, opposite);
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    42
        this.time = time;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    43
    }
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    44
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    45
    public TimedWindowEvent(Window source, int id, Window opposite,
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    46
                            int oldState, int newState, long time)
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    47
    {
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    48
        super(source, id, opposite, oldState, newState);
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    49
        this.time = time;
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    50
    }
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    51
}
42544e68dc39 6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
diff changeset
    52