|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.gui.conflict.pair.ListMerger.AdjustmentSynchronizer
class ListMerger.AdjustmentSynchronizer
Synchronizes scrollbar adjustments between a set of
Adjustables. Whenever the adjustment of one of
the registerd Adjustables is updated the adjustment of
the other registered Adjustables is adjusted too.
| Field Summary | |
|---|---|
private java.util.HashMap<java.awt.Adjustable,java.lang.Boolean> |
enabledMap
|
private java.util.Observable |
observable
|
private java.util.ArrayList<java.awt.Adjustable> |
synchronizedAdjustables
|
| Constructor Summary | |
|---|---|
ListMerger.AdjustmentSynchronizer()
|
|
| Method Summary | |
|---|---|
protected void |
adapt(javax.swing.JCheckBox view,
java.awt.Adjustable adjustable)
wires a JCheckBox to the adjustment synchronizer, in such a way that:
state changes in the checkbox control whether the adjustable participates
in synchronized adjustment
state changes in this ListMerger.AdjustmentSynchronizer are reflected in the
JCheckBox
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
event handler for AdjustmentEvents |
protected boolean |
isParticipatingInSynchronizedScrolling(java.awt.Adjustable adjustable)
returns true if an adjustable is participating in synchronized scrolling |
void |
participateInSynchronizedScrolling(java.awt.Adjustable adjustable)
registers an Adjustable for participation in synchronized
scrolling. |
protected void |
setParticipatingInSynchronizedScrolling(java.awt.Adjustable adjustable,
boolean isParticipating)
sets whether adjustable participates in adjustment synchronization or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.ArrayList<java.awt.Adjustable> synchronizedAdjustables
private final java.util.HashMap<java.awt.Adjustable,java.lang.Boolean> enabledMap
private final java.util.Observable observable
| Constructor Detail |
|---|
public ListMerger.AdjustmentSynchronizer()
| Method Detail |
|---|
public void participateInSynchronizedScrolling(java.awt.Adjustable adjustable)
Adjustable for participation in synchronized
scrolling.
adjustable - the adjustablepublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
AdjustmentEvents
adjustmentValueChanged in interface java.awt.event.AdjustmentListener
protected void setParticipatingInSynchronizedScrolling(java.awt.Adjustable adjustable,
boolean isParticipating)
adjustable - the adjustable
protected boolean isParticipatingInSynchronizedScrolling(java.awt.Adjustable adjustable)
throws java.lang.IllegalStateException
adjustable - the adjustable
java.lang.IllegalStateException - thrown, if adjustable is not registered for synchronized scrolling
protected void adapt(javax.swing.JCheckBox view,
java.awt.Adjustable adjustable)
throws java.lang.IllegalStateException
JCheckBox to the adjustment synchronizer, in such a way that:
ListMerger.AdjustmentSynchronizer are reflected in the
JCheckBox
view - the checkbox to control whether an adjustable participates in synchronized
adjustmentadjustable - the adjustable
java.lang.IllegalArgumentException - thrown, if view is null
java.lang.IllegalArgumentException - thrown, if adjustable is null
java.lang.IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||