jdk/src/java.desktop/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java
author ddehaven
Tue, 19 Aug 2014 10:32:16 -0700
changeset 26037 508779ce6619
parent 26001 jdk/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java@991e1be0b235
parent 25859 jdk/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java@3317bb8137f4
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23697
e556a715949f 8034169: Fix serial lint warnings in javax.swing
darcy
parents: 5506
diff changeset
     2
 * Copyright (c) 2000, 2014, 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: 1639
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: 1639
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: 1639
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1639
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1639
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
package javax.swing;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
import java.awt.FocusTraversalPolicy;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Component;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.Container;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.Window;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.HashMap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.HashSet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.io.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * A FocusTraversalPolicy which provides support for legacy applications which
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * handle focus traversal via JComponent.setNextFocusableComponent or by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * installing a custom DefaultFocusManager. If a specific traversal has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * been hard coded, then that traversal is provided either by the custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * DefaultFocusManager, or by a wrapped FocusTraversalPolicy instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * @author David Mendenhall
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 */
23697
e556a715949f 8034169: Fix serial lint warnings in javax.swing
darcy
parents: 5506
diff changeset
    45
@SuppressWarnings("serial") // JDK-implementation class
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
final class LegacyGlueFocusTraversalPolicy extends FocusTraversalPolicy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    private transient FocusTraversalPolicy delegatePolicy;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    private transient DefaultFocusManager delegateManager;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
1301
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
    52
    private HashMap<Component, Component> forwardMap = new HashMap<Component, Component>(),
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
    53
        backwardMap = new HashMap<Component, Component>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    LegacyGlueFocusTraversalPolicy(FocusTraversalPolicy delegatePolicy) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        this.delegatePolicy = delegatePolicy;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    LegacyGlueFocusTraversalPolicy(DefaultFocusManager delegateManager) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        this.delegateManager = delegateManager;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    void setNextFocusableComponent(Component left, Component right) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        forwardMap.put(left, right);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        backwardMap.put(right, left);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    void unsetNextFocusableComponent(Component left, Component right) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        forwardMap.remove(left);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        backwardMap.remove(right);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    public Component getComponentAfter(Container focusCycleRoot,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                                       Component aComponent) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        Component hardCoded = aComponent, prevHardCoded;
1301
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
    74
        HashSet<Component> sanity = new HashSet<Component>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        do {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
            prevHardCoded = hardCoded;
1301
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
    78
            hardCoded = forwardMap.get(hardCoded);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            if (hardCoded == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                if (delegatePolicy != null &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                    prevHardCoded.isFocusCycleRoot(focusCycleRoot)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                    return delegatePolicy.getComponentAfter(focusCycleRoot,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                                                            prevHardCoded);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                } else if (delegateManager != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                    return delegateManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                        getComponentAfter(focusCycleRoot, aComponent);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                    return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            if (sanity.contains(hardCoded)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                // cycle detected; bail
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            sanity.add(hardCoded);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        } while (!accept(hardCoded));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        return hardCoded;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    public Component getComponentBefore(Container focusCycleRoot,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                                        Component aComponent) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        Component hardCoded = aComponent, prevHardCoded;
1301
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
   103
        HashSet<Component> sanity = new HashSet<Component>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        do {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            prevHardCoded = hardCoded;
1301
15e81207e1f2 6727662: Code improvement and warnings removing from swing packages
rupashka
parents: 2
diff changeset
   107
            hardCoded = backwardMap.get(hardCoded);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            if (hardCoded == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                if (delegatePolicy != null &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                    prevHardCoded.isFocusCycleRoot(focusCycleRoot)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                    return delegatePolicy.getComponentBefore(focusCycleRoot,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                                                       prevHardCoded);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                } else if (delegateManager != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    return delegateManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                        getComponentBefore(focusCycleRoot, aComponent);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                    return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            if (sanity.contains(hardCoded)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                // cycle detected; bail
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            sanity.add(hardCoded);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        } while (!accept(hardCoded));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        return hardCoded;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public Component getFirstComponent(Container focusCycleRoot) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        if (delegatePolicy != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
            return delegatePolicy.getFirstComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        } else if (delegateManager != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
            return delegateManager.getFirstComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    public Component getLastComponent(Container focusCycleRoot) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        if (delegatePolicy != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
            return delegatePolicy.getLastComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        } else if (delegateManager != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            return delegateManager.getLastComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    public Component getDefaultComponent(Container focusCycleRoot) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        if (delegatePolicy != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            return delegatePolicy.getDefaultComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            return getFirstComponent(focusCycleRoot);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    private boolean accept(Component aComponent) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        if (!(aComponent.isVisible() && aComponent.isDisplayable() &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
              aComponent.isFocusable() && aComponent.isEnabled())) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        // Verify that the Component is recursively enabled. Disabling a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        // heavyweight Container disables its children, whereas disabling
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        // a lightweight Container does not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        if (!(aComponent instanceof Window)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            for (Container enableTest = aComponent.getParent();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                 enableTest != null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                 enableTest = enableTest.getParent())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                if (!(enableTest.isEnabled() || enableTest.isLightweight())) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                if (enableTest instanceof Window) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                }
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
        return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    private void writeObject(ObjectOutputStream out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        out.defaultWriteObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        if (delegatePolicy instanceof Serializable) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
            out.writeObject(delegatePolicy);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
            out.writeObject(null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        if (delegateManager instanceof Serializable) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            out.writeObject(delegateManager);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            out.writeObject(null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    private void readObject(ObjectInputStream in)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    {
26001
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   197
        ObjectInputStream.GetField f = in.readFields();
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   198
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   199
        @SuppressWarnings("unchecked")
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   200
        HashMap<Component, Component>  newForwardMap =
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   201
                (HashMap<Component, Component> ) f.get("forwardMap", null);
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   202
        if (newForwardMap == null) {
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   203
            throw new InvalidObjectException("Null forwardMap");
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   204
        }
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   205
        forwardMap = newForwardMap;
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   206
        @SuppressWarnings("unchecked")
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   207
        HashMap<Component, Component> newBackwardMap =
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   208
                (HashMap<Component, Component>) f.get("backwardMap", null);
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   209
        if (newBackwardMap == null) {
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   210
            throw new InvalidObjectException("Null backwardMap");
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   211
        }
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   212
        backwardMap = newBackwardMap;
991e1be0b235 8038937: Validate fields on Swing classes deserialization
alexsch
parents: 23697
diff changeset
   213
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        delegatePolicy = (FocusTraversalPolicy)in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        delegateManager = (DefaultFocusManager)in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
}