Ignore:
Timestamp:
2013-08-14T03:24:08+02:00 (13 years ago)
Author:
Don-vip
Message:

sonar - move duplicated class between history and conflict to util

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/AdjustmentSynchronizer.java

    r6145 r6147  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.gui.history;
     2package org.openstreetmap.josm.gui.util;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     
    1919
    2020/**
    21  * Synchronizes scrollbar adjustments between a set of
    22  * {@link Adjustable}s. Whenever the adjustment of one of
    23  * the registerd Adjustables is updated the adjustment of
    24  * the other registered Adjustables is adjusted too.
    25  *
     21 * Synchronizes scrollbar adjustments between a set of {@link Adjustable}s.
     22 * Whenever the adjustment of one of the registered Adjustables is updated
     23 * the adjustment of the other registered Adjustables is adjusted too.
     24 * @since 6147
    2625 */
    2726public class AdjustmentSynchronizer implements AdjustmentListener {
     
    3231    private final Observable observable;
    3332
     33    /**
     34     * Constructs a new {@code AdjustmentSynchronizer}
     35     */
    3436    public AdjustmentSynchronizer() {
    3537        synchronizedAdjustables = new ArrayList<Adjustable>();
     
    3941
    4042    /**
    41      * registers an {@link Adjustable} for participation in synchronized
    42      * scrolling.
     43     * Registers an {@link Adjustable} for participation in synchronized scrolling.
    4344     *
    4445     * @param adjustable the adjustable
     
    5556
    5657    /**
    57      * event handler for {@link AdjustmentEvent}s
    58      *
     58     * Event handler for {@link AdjustmentEvent}s
    5959     */
    6060    @Override
     
    7070
    7171    /**
    72      * sets whether adjustable participates in adjustment synchronization
    73      * or not
     72     * Sets whether adjustable participates in adjustment synchronization or not
    7473     *
    7574     * @param adjustable the adjustable
     
    8584
    8685    /**
    87      * returns true if an adjustable is participating in synchronized scrolling
     86     * Returns true if an adjustable is participating in synchronized scrolling
    8887     *
    8988     * @param adjustable the adjustable
     
    9998
    10099    /**
    101      * wires a {@link JCheckBox} to  the adjustment synchronizer, in such a way  that:
     100     * Wires a {@link JCheckBox} to  the adjustment synchronizer, in such a way that:
    102101     * <li>
    103102     *   <ol>state changes in the checkbox control whether the adjustable participates
     
    107106     * </li>
    108107     *
    109      *
    110      * @param view  the checkbox to control whether an adjustable participates in synchronized
    111      *      adjustment
     108     * @param view  the checkbox to control whether an adjustable participates in synchronized adjustment
    112109     * @param adjustable the adjustable
    113110     * @exception IllegalArgumentException thrown, if view is null
    114111     * @exception IllegalArgumentException thrown, if adjustable is null
    115112     */
    116     protected void adapt(final JCheckBox view, final Adjustable adjustable) throws IllegalStateException {
     113    public void adapt(final JCheckBox view, final Adjustable adjustable)  {
    117114        CheckParameterUtil.ensureParameterNotNull(adjustable, "adjustable");
    118115        CheckParameterUtil.ensureParameterNotNull(view, "view");
Note: See TracChangeset for help on using the changeset viewer.