0N/A * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The adjustment event emitted by Adjustable objects like 0N/A * {@link java.awt.Scrollbar} and {@link java.awt.ScrollPane}. 0N/A * When the user changes the value of the scrolling component, 0N/A * it receives an instance of {@code AdjustmentEvent}. * An unspecified behavior will be caused if the {@code id} parameter * of any particular {@code AdjustmentEvent} instance is not * in the range from {@code ADJUSTMENT_FIRST} to {@code ADJUSTMENT_LAST}. * The {@code type} of any {@code AdjustmentEvent} instance takes one of the following * <li> {@code UNIT_INCREMENT} * <li> {@code UNIT_DECREMENT} * <li> {@code BLOCK_INCREMENT} * <li> {@code BLOCK_DECREMENT} * Assigning the value different from listed above will cause an unspecified behavior. * @see java.awt.Adjustable * @see AdjustmentListener * Marks the first integer id for the range of adjustment event ids. * Marks the last integer id for the range of adjustment event ids. * The adjustment value changed event. * The unit increment adjustment type. * The unit decrement adjustment type. * The block decrement adjustment type. * The block increment adjustment type. * The absolute tracking adjustment type. public static final int TRACK =
5;
* The adjustable object that fired the event. * <code>value</code> will contain the new value of the * adjustable object. This value will always be in a * range associated adjustable object. * The <code>adjustmentType</code> describes how the adjustable * object value has changed. * @see #getAdjustmentType * The <code>isAdjusting</code> is true if the event is one * of the series of multiple adjustment events. * @see #getValueIsAdjusting * JDK 1.1 serialVersionUID * Constructs an <code>AdjustmentEvent</code> object with the * specified <code>Adjustable</code> source, event type, * adjustment type, and value. * <p> This method throws an * <code>IllegalArgumentException</code> if <code>source</code> * @param source The <code>Adjustable</code> object where the * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param type An integer indicating the adjustment type. * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param value The current value of the adjustment * @throws IllegalArgumentException if <code>source</code> is null * @see #getAdjustmentType() * Constructs an <code>AdjustmentEvent</code> object with the * specified Adjustable source, event type, adjustment type, and value. * <p> This method throws an * <code>IllegalArgumentException</code> if <code>source</code> * @param source The <code>Adjustable</code> object where the * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param type An integer indicating the adjustment type. * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param value The current value of the adjustment * @param isAdjusting A boolean that equals <code>true</code> if the event is one * of a series of multiple adjusting events, * otherwise <code>false</code> * @throws IllegalArgumentException if <code>source</code> is null * @see #getAdjustmentType() * @see #getValueIsAdjusting() * Returns the <code>Adjustable</code> object where this event originated. * @return the <code>Adjustable</code> object where this event originated * Returns the current value in the adjustment event. * @return the current value in the adjustment event * Returns the type of adjustment which caused the value changed * event. It will have one of the following values: * <li>{@link #UNIT_INCREMENT} * <li>{@link #UNIT_DECREMENT} * <li>{@link #BLOCK_INCREMENT} * <li>{@link #BLOCK_DECREMENT} * @return one of the adjustment values listed above * Returns <code>true</code> if this is one of multiple * @return <code>true</code> if this is one of multiple * adjustment events, otherwise returns <code>false</code> typeStr =
"ADJUSTMENT_VALUE_CHANGED";