3679 * is Serializable; otherwise, <code>null</code> is written.</li>
3680 * </ul>
3681 *
3682 * @param s the <code>ObjectOutputStream</code> to write
3683 * @serialData <code>null</code> terminated sequence of 0 or more pairs;
3684 * the pair consists of a <code>String</code> and <code>Object</code>;
3685 * the <code>String</code> indicates the type of object and
3686 * is one of the following:
3687 * <code>containerListenerK</code> indicating an
3688 * <code>ContainerListener</code> object;
3689 * the <code>Container</code>'s <code>FocusTraversalPolicy</code>,
3690 * or <code>null</code>
3691 *
3692 * @see AWTEventMulticaster#save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
3693 * @see Container#containerListenerK
3694 * @see #readObject(ObjectInputStream)
3695 */
3696 private void writeObject(ObjectOutputStream s) throws IOException {
3697 ObjectOutputStream.PutField f = s.putFields();
3698 f.put("ncomponents", component.size());
3699 f.put("component", getComponentsSync());
3700 f.put("layoutMgr", layoutMgr);
3701 f.put("dispatcher", dispatcher);
3702 f.put("maxSize", maxSize);
3703 f.put("focusCycleRoot", focusCycleRoot);
3704 f.put("containerSerializedDataVersion", containerSerializedDataVersion);
3705 f.put("focusTraversalPolicyProvider", focusTraversalPolicyProvider);
3706 s.writeFields();
3707
3708 AWTEventMulticaster.save(s, containerListenerK, containerListener);
3709 s.writeObject(null);
3710
3711 if (focusTraversalPolicy instanceof java.io.Serializable) {
3712 s.writeObject(focusTraversalPolicy);
3713 } else {
3714 s.writeObject(null);
3715 }
3716 }
3717
3718 /**
3719 * Deserializes this <code>Container</code> from the specified
|
3679 * is Serializable; otherwise, <code>null</code> is written.</li>
3680 * </ul>
3681 *
3682 * @param s the <code>ObjectOutputStream</code> to write
3683 * @serialData <code>null</code> terminated sequence of 0 or more pairs;
3684 * the pair consists of a <code>String</code> and <code>Object</code>;
3685 * the <code>String</code> indicates the type of object and
3686 * is one of the following:
3687 * <code>containerListenerK</code> indicating an
3688 * <code>ContainerListener</code> object;
3689 * the <code>Container</code>'s <code>FocusTraversalPolicy</code>,
3690 * or <code>null</code>
3691 *
3692 * @see AWTEventMulticaster#save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
3693 * @see Container#containerListenerK
3694 * @see #readObject(ObjectInputStream)
3695 */
3696 private void writeObject(ObjectOutputStream s) throws IOException {
3697 ObjectOutputStream.PutField f = s.putFields();
3698 f.put("ncomponents", component.size());
3699 f.put("component", component.toArray(EMPTY_ARRAY));
3700 f.put("layoutMgr", layoutMgr);
3701 f.put("dispatcher", dispatcher);
3702 f.put("maxSize", maxSize);
3703 f.put("focusCycleRoot", focusCycleRoot);
3704 f.put("containerSerializedDataVersion", containerSerializedDataVersion);
3705 f.put("focusTraversalPolicyProvider", focusTraversalPolicyProvider);
3706 s.writeFields();
3707
3708 AWTEventMulticaster.save(s, containerListenerK, containerListener);
3709 s.writeObject(null);
3710
3711 if (focusTraversalPolicy instanceof java.io.Serializable) {
3712 s.writeObject(focusTraversalPolicy);
3713 } else {
3714 s.writeObject(null);
3715 }
3716 }
3717
3718 /**
3719 * Deserializes this <code>Container</code> from the specified
|