Groovy Documentation

com.wordpress.tipsforjava.swing
[Java] Class SplitPaneSynchronizer

java.lang.Object
  com.wordpress.tipsforjava.swing.SplitPaneSynchronizer
All Implemented Interfaces:
PropertyChangeListener

public class SplitPaneSynchronizer
extends Object

Convenience class to synchronize the divider location of related JSplitPanes. Any number of split panes can be synchronized. Synchronization will occur when:

Authors:
Rob Camick
Darryl Burke


Field Summary
private static String DIVIDER_LOCATION

private ArrayList splitPanes

 
Constructor Summary
SplitPaneSynchronizer(JSplitPane... splitPanes)

 
Method Summary
void addSplitPane(JSplitPane splitPane)

void propertyChange(PropertyChangeEvent e)

void removeSplitPane(JSplitPane splitPane)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

DIVIDER_LOCATION

private static final String DIVIDER_LOCATION


splitPanes

private ArrayList splitPanes


 
Constructor Detail

SplitPaneSynchronizer

public SplitPaneSynchronizer(JSplitPane... splitPanes)


 
Method Detail

addSplitPane

public void addSplitPane(JSplitPane splitPane)


propertyChange

public void propertyChange(PropertyChangeEvent e)


removeSplitPane

public void removeSplitPane(JSplitPane splitPane)


 

Groovy Documentation