org.jdesktop.swingx.decorator
Class SelectionMapper
java.lang.Object
org.jdesktop.swingx.decorator.SelectionMapper
public class SelectionMapper
- extends java.lang.Object
Responsible for keeping track of selection in model coordinates.
updates view selection on pipeline change.
updates model selection on view selection change.
- Author:
- Jeanette Winzenburg
Field Summary |
protected javax.swing.DefaultListSelectionModel |
modelSelection
selection in model coordinates. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modelSelection
protected javax.swing.DefaultListSelectionModel modelSelection
- selection in model coordinates.
SelectionMapper
public SelectionMapper(FilterPipeline pipeline,
javax.swing.ListSelectionModel selection)
- PRE: selection != null;
- Parameters:
pipeline
- selection
-
setViewSelectionModel
public void setViewSelectionModel(javax.swing.ListSelectionModel selection)
- sets the view selection model. Must not be null.
- Parameters:
selection
- holding selected indices in view coordinates
setFilters
public void setFilters(FilterPipeline pipeline)
restoreSelection
public void restoreSelection()
unlock
public void unlock()
lock
public void lock()
clearModelSelection
public void clearModelSelection()
insertIndexInterval
public void insertIndexInterval(int start,
int length,
boolean before)
removeIndexInterval
public void removeIndexInterval(int start,
int end)
updateFromViewSelectionChanged
protected void updateFromViewSelectionChanged(int firstIndex,
int lastIndex)
updateFromPipelineChanged
protected void updateFromPipelineChanged()
Copyright © 2005 Sun Microsystems All Rights Reserved.