|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.decorator.SelectionMapper
public class SelectionMapper
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 | |
---|---|
SelectionMapper(FilterPipeline pipeline,
ListSelectionModel selection)
PRE: selection ! |
Method Summary | |
---|---|
void |
clearModelSelection()
|
ListSelectionModel |
getViewSelectionModel()
TODO: temporarily added for testing... |
void |
insertIndexInterval(int start,
int length,
boolean before)
|
void |
lock()
|
void |
removeIndexInterval(int start,
int end)
|
void |
restoreSelection()
|
void |
setFilters(FilterPipeline pipeline)
|
void |
setViewSelectionModel(ListSelectionModel selection)
sets the view selection model. |
void |
unlock()
|
protected void |
updateFromPipelineChanged()
|
protected void |
updateFromViewSelectionChanged(int firstIndex,
int lastIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DefaultListSelectionModel modelSelection
Constructor Detail |
---|
public SelectionMapper(FilterPipeline pipeline, ListSelectionModel selection)
pipeline
- selection
- Method Detail |
---|
public void setViewSelectionModel(ListSelectionModel selection)
selection
- holding selected indices in view coordinatespublic ListSelectionModel getViewSelectionModel()
public void setFilters(FilterPipeline pipeline)
public void restoreSelection()
public void unlock()
public void lock()
public void clearModelSelection()
public void insertIndexInterval(int start, int length, boolean before)
public void removeIndexInterval(int start, int end)
protected void updateFromViewSelectionChanged(int firstIndex, int lastIndex)
protected void updateFromPipelineChanged()
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |