src/java.desktop/share/classes/java/awt/ScrollPaneAdjustable.java
author darcy
Tue, 24 Sep 2019 18:25:54 -0700
changeset 58309 c6f8b2c3dc66
parent 47216 71c04702a3d5
permissions -rw-r--r--
8231334: Suppress warnings on non-serializable instance fields in client libs serializable classes Reviewed-by: prr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
22584
eed64ee05369 8032733: Fix cast lint warnings in client libraries
darcy
parents: 21278
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: 2
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: 2
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: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
package java.awt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
10097
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
    27
import sun.awt.AWTAccessor;
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
    28
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.event.AdjustmentEvent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.event.AdjustmentListener;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.awt.peer.ScrollPanePeer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.io.Serializable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * This class represents the state of a horizontal or vertical
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    37
 * scrollbar of a {@code ScrollPane}.  Objects of this class are
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    38
 * returned by {@code ScrollPane} methods.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * @since       1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
public class ScrollPaneAdjustable implements Adjustable, Serializable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    45
     * The {@code ScrollPane} this object is a scrollbar of.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    private ScrollPane sp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * Orientation of this scrollbar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * @see #getOrientation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * @see java.awt.Adjustable#HORIZONTAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     * @see java.awt.Adjustable#VERTICAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    private int orientation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * The value of this scrollbar.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    62
     * {@code value} should be greater than {@code minimum}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    63
     * and less than {@code maximum}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * @see #getValue
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * @see #setValue
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    private int value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * The minimum value of this scrollbar.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    73
     * This value can only be set by the {@code ScrollPane}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * <strong>ATTN:</strong> In current implementation
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    76
     * {@code minimum} is always {@code 0}.  This field can
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    77
     * only be altered via {@code setSpan} method and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    78
     * {@code ScrollPane} always calls that method with
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    79
     * {@code 0} for the minimum.  {@code getMinimum} method
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    80
     * always returns {@code 0} without checking this field.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * @see #getMinimum
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * @see #setSpan(int, int, int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    private int minimum;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * The maximum value of this scrollbar.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
    90
     * This value can only be set by the {@code ScrollPane}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * @see #getMaximum
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * @see #setSpan(int, int, int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    private int maximum;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * The size of the visible portion of this scrollbar.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   100
     * This value can only be set by the {@code ScrollPane}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @see #getVisibleAmount
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * @see #setSpan(int, int, int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    private int visibleAmount;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   109
     * The adjusting status of the {@code Scrollbar}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * True if the value is in the process of changing as a result of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * actions being taken by the user.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * @see #getValueIsAdjusting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * @see #setValueIsAdjusting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    private transient boolean isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * The amount by which the scrollbar value will change when going
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * up or down by a line.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * This value should be a non negative integer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * @see #getUnitIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * @see #setUnitIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    private int unitIncrement  = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * The amount by which the scrollbar value will change when going
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * up or down by a page.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * This value should be a non negative integer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @see #getBlockIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * @see #setBlockIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    private int blockIncrement = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
58309
c6f8b2c3dc66 8231334: Suppress warnings on non-serializable instance fields in client libs serializable classes
darcy
parents: 47216
diff changeset
   141
    @SuppressWarnings("serial") // Not statically typed as Serializable
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    private AdjustmentListener adjustmentListener;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   145
     * Error message for {@code AWTError} reported when one of
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * the public but unsupported methods is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    private static final String SCROLLPANE_ONLY =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        "Can be set by scrollpane only";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * Initialize JNI field and method ids.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    private static native void initIDs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    static {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        Toolkit.loadLibraries();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        if (!GraphicsEnvironment.isHeadless()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            initIDs();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        }
10097
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   162
        AWTAccessor.setScrollPaneAdjustableAccessor(new AWTAccessor.ScrollPaneAdjustableAccessor() {
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   163
            public void setTypedValue(final ScrollPaneAdjustable adj,
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   164
                                      final int v, final int type) {
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   165
                adj.setTypedValue(v, type);
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   166
            }
67449ffe5991 6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents: 5506
diff changeset
   167
        });
2
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 = -3359745691033257079L;
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 new object to represent specified scrollabar
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   178
     * of the specified {@code ScrollPane}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * Only ScrollPane creates instances of this class.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   180
     * @param sp           {@code ScrollPane}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   181
     * @param l            {@code AdjustmentListener} to add upon creation.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * @param orientation  specifies which scrollbar this object represents,
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   183
     *                     can be either  {@code Adjustable.HORIZONTAL}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   184
     *                     or {@code Adjustable.VERTICAL}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        this.sp = sp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        this.orientation = orientation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        addAdjustmentListener(l);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * This is called by the scrollpane itself to update the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   194
     * {@code minimum}, {@code maximum} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   195
     * {@code visible} values.  The scrollpane is the only one
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * that should be changing these since it is the source of these
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    void setSpan(int min, int max, int visible) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        // adjust the values to be reasonable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        minimum = min;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        maximum = Math.max(max, minimum + 1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        visibleAmount = Math.min(visible, maximum - minimum);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        visibleAmount = Math.max(visibleAmount, 1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        blockIncrement = Math.max((int)(visible * .90), 1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        setValue(value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * Returns the orientation of this scrollbar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @return    the orientation of this scrollbar, either
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   212
     *            {@code Adjustable.HORIZONTAL} or
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   213
     *            {@code Adjustable.VERTICAL}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    public int getOrientation() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        return orientation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * This method should <strong>NOT</strong> be called by user code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * This method is public for this class to properly implement
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   222
     * {@code Adjustable} interface.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     *
20172
f48935a247ec 8025218: [javadoc] some errors in java/awt classes
yan
parents: 10097
diff changeset
   224
     * @throws AWTError Always throws an error when called.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    public void setMinimum(int min) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        throw new AWTError(SCROLLPANE_ONLY);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    public int getMinimum() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        // XXX: This relies on setSpan always being called with 0 for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        // the minimum (which is currently true).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        return 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * This method should <strong>NOT</strong> be called by user code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * This method is public for this class to properly implement
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   239
     * {@code Adjustable} interface.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     *
20172
f48935a247ec 8025218: [javadoc] some errors in java/awt classes
yan
parents: 10097
diff changeset
   241
     * @throws AWTError Always throws an error when called.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    public void setMaximum(int max) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        throw new AWTError(SCROLLPANE_ONLY);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    public int getMaximum() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
        return maximum;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    public synchronized void setUnitIncrement(int u) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        if (u != unitIncrement) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
            unitIncrement = u;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
            if (sp.peer != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
                ScrollPanePeer peer = (ScrollPanePeer) sp.peer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
                peer.setUnitIncrement(this, u);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    public int getUnitIncrement() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
        return unitIncrement;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    public synchronized void setBlockIncrement(int b) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
        blockIncrement = b;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
    public int getBlockIncrement() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        return blockIncrement;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * This method should <strong>NOT</strong> be called by user code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * This method is public for this class to properly implement
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   276
     * {@code Adjustable} interface.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     *
20172
f48935a247ec 8025218: [javadoc] some errors in java/awt classes
yan
parents: 10097
diff changeset
   278
     * @throws AWTError Always throws an error when called.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    public void setVisibleAmount(int v) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
        throw new AWTError(SCROLLPANE_ONLY);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    public int getVisibleAmount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        return visibleAmount;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   290
     * Sets the {@code valueIsAdjusting} property.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * @param b new adjustment-in-progress status
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     * @see #getValueIsAdjusting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    public void setValueIsAdjusting(boolean b) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
        if (isAdjusting != b) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
            isAdjusting = b;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
            AdjustmentEvent e =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
                new AdjustmentEvent(this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
                        AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
                        AdjustmentEvent.TRACK, value, b);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
            adjustmentListener.adjustmentValueChanged(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * Returns true if the value is in the process of changing as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * result of actions being taken by the user.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   311
     * @return the value of the {@code valueIsAdjusting} property
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * @see #setValueIsAdjusting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
    public boolean getValueIsAdjusting() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
        return isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * Sets the value of this scrollbar to the specified value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * If the value supplied is less than the current minimum or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     * greater than the current maximum, then one of those values is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * substituted, as appropriate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * @param v the new value of the scrollbar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
    public void setValue(int v) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        setTypedValue(v, AdjustmentEvent.TRACK);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     * Sets the value of this scrollbar to the specified value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * If the value supplied is less than the current minimum or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     * greater than the current maximum, then one of those values is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * substituted, as appropriate. Also, creates and dispatches
26749
b6598aa90114 8055326: Fix typos in client-related packages
serb
parents: 25859
diff changeset
   337
     * the AdjustmentEvent with specified type and value.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * @param v the new value of the scrollbar
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 20172
diff changeset
   340
     * @param type the type of the scrolling operation occurred
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
    private void setTypedValue(int v, int type) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
        v = Math.max(v, minimum);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
        v = Math.min(v, maximum - visibleAmount);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
        if (v != value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
            value = v;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
            // Synchronously notify the listeners so that they are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
            // guaranteed to be up-to-date with the Adjustable before
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
            // it is mutated again.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
            AdjustmentEvent e =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
                new AdjustmentEvent(this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
                        AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
                        type, value, isAdjusting);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
            adjustmentListener.adjustmentValueChanged(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    public int getValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
        return value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * Adds the specified adjustment listener to receive adjustment
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   365
     * events from this {@code ScrollPaneAdjustable}.
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   366
     * If {@code l} is {@code null}, no exception is thrown
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * and no action is performed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * <p>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * >AWT Threading Issues</a> for details on AWT's threading model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * @param    l   the adjustment listener.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * @see      #removeAdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * @see      #getAdjustmentListeners
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * @see      java.awt.event.AdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * @see      java.awt.event.AdjustmentEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
    public synchronized void addAdjustmentListener(AdjustmentListener l) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
        if (l == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
            return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
        adjustmentListener = AWTEventMulticaster.add(adjustmentListener, l);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     * Removes the specified adjustment listener so that it no longer
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   386
     * receives adjustment events from this {@code ScrollPaneAdjustable}.
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   387
     * If {@code l} is {@code null}, no exception is thrown
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     * and no action is performed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * <p>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     * >AWT Threading Issues</a> for details on AWT's threading model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * @param         l     the adjustment listener.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * @see           #addAdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * @see           #getAdjustmentListeners
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     * @see           java.awt.event.AdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     * @see           java.awt.event.AdjustmentEvent
24865
09b1d992ca72 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
henryjen
parents: 22584
diff changeset
   397
     * @since         1.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
    public synchronized void removeAdjustmentListener(AdjustmentListener l){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        if (l == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
            return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
        adjustmentListener = AWTEventMulticaster.remove(adjustmentListener, l);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * Returns an array of all the adjustment listeners
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   408
     * registered on this {@code ScrollPaneAdjustable}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   410
     * @return all of this {@code ScrollPaneAdjustable}'s
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   411
     *         {@code AdjustmentListener}s
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     *         or an empty array if no adjustment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     *         listeners are currently registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * @see           #addAdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     * @see           #removeAdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     * @see           java.awt.event.AdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     * @see           java.awt.event.AdjustmentEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
    public synchronized AdjustmentListener[] getAdjustmentListeners() {
22584
eed64ee05369 8032733: Fix cast lint warnings in client libraries
darcy
parents: 21278
diff changeset
   422
        return AWTEventMulticaster.getListeners(adjustmentListener,
eed64ee05369 8032733: Fix cast lint warnings in client libraries
darcy
parents: 21278
diff changeset
   423
                                                AdjustmentListener.class);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * Returns a string representation of this scrollbar and its values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     * @return    a string representation of this scrollbar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
    public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
        return getClass().getName() + "[" + paramString() + "]";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     * Returns a string representing the state of this scrollbar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * This method is intended to be used only for debugging purposes,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * and the content and format of the returned string may vary
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * between implementations.  The returned string may be empty but
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 26749
diff changeset
   439
     * may not be {@code null}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * @return      the parameter string of this scrollbar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
    public String paramString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
        return ((orientation == Adjustable.VERTICAL ? "vertical,"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
                                                    :"horizontal,")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
                + "[0.."+maximum+"]"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
                + ",val=" + value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
                + ",vis=" + visibleAmount
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
                + ",unit=" + unitIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
                + ",block=" + blockIncrement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
                + ",isAdjusting=" + isAdjusting);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
}