public class SelectionSynchronizer extends java.lang.Object
SelectionModel
if possible. The
synchronization can be switched on and off using setEnabled(boolean)
.
Note that synchronizing multiple selection models will usually require that the associated sequence data providers of all selection models contain the same number of columns and rows.
Warning: This implementation is not thread save. All registered selection models should only be modified
by the same thread. Its recommended to e.g. use EventQueue.invokeLater(Runnable)
in Swing applications or
similar methods.
Constructor and Description |
---|
SelectionSynchronizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(SelectionModel model) |
void |
clear() |
boolean |
contains(java.lang.Object object) |
boolean |
isEmpty() |
boolean |
isEnabled() |
boolean |
remove(SelectionModel model) |
void |
setEnabled(boolean enabled) |
public SelectionSynchronizer()
public boolean add(SelectionModel model)
public void clear()
public boolean contains(java.lang.Object object)
public boolean isEmpty()
public boolean remove(SelectionModel model)
public boolean isEnabled()
public void setEnabled(boolean enabled)