| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.decorator.DefaultSelectionMapper
public class DefaultSelectionMapper
Responsible for keeping track of selection in model coordinates.
updates view selection on pipeline change. updates model selection on view selection change.
| Field Summary | |
|---|---|
protected  DefaultListSelectionModel | 
modelSelection
selection in model coordinates.  | 
| Constructor Summary | |
|---|---|
DefaultSelectionMapper(FilterPipeline pipeline,
                       ListSelectionModel selection)
PRE: selection != null;  | 
|
| Method Summary | |
|---|---|
 void | 
clearModelSelection()
 | 
 ListSelectionModel | 
getViewSelectionModel()
 | 
 void | 
insertIndexInterval(int start,
                    int length,
                    boolean before)
Adjust the model by adding the specified rows.  | 
 boolean | 
isEnabled()
 | 
protected  void | 
mapTowardsView()
Populate view selection from model selection.  | 
 void | 
removeIndexInterval(int start,
                    int end)
Adjust the model by removing the specified rows.  | 
 void | 
setEnabled(boolean enabled)
Toggle whether selection mapping is active.  | 
 void | 
setFilters(FilterPipeline pipeline)
Install the new filter pipeline and map the newly filtered data towards the view.  | 
 void | 
setViewSelectionModel(ListSelectionModel viewSelectionModel)
sets the view selection model.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final DefaultListSelectionModel modelSelection
| Constructor Detail | 
|---|
public DefaultSelectionMapper(FilterPipeline pipeline,
                              ListSelectionModel selection)
pipeline - selection - | Method Detail | 
|---|
public void setViewSelectionModel(ListSelectionModel viewSelectionModel)
setViewSelectionModel in interface SelectionMapperviewSelectionModel - holding selected indices in view coordinatespublic ListSelectionModel getViewSelectionModel()
getViewSelectionModel in interface SelectionMapperpublic void setFilters(FilterPipeline pipeline)
SelectionMapper
setFilters in interface SelectionMapperprotected void mapTowardsView()
public void setEnabled(boolean enabled)
setEnabled in interface SelectionMapperpublic boolean isEnabled()
isEnabled in interface SelectionMapperpublic void clearModelSelection()
clearModelSelection in interface SelectionMapper
public void insertIndexInterval(int start,
                                int length,
                                boolean before)
SelectionMapper
insertIndexInterval in interface SelectionMapper
public void removeIndexInterval(int start,
                                int end)
SelectionMapper
removeIndexInterval in interface SelectionMapper
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||