org.beanfabrics.swing.list
Class BnListSelectionModel

java.lang.Object
  extended by org.beanfabrics.swing.list.BnListSelectionModel
All Implemented Interfaces:
javax.swing.ListSelectionModel

public class BnListSelectionModel
extends java.lang.Object
implements javax.swing.ListSelectionModel

The BnListSelectionModel is a ListSelectionModel that decorates a IListPM.


Field Summary
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
BnListSelectionModel(IListPM<? extends PresentationModel> aList)
           
 
Method Summary
 void addListSelectionListener(javax.swing.event.ListSelectionListener l)
          
 void addSelectionInterval(int index0, int index1)
          
 void clearSelection()
          
 void dismiss()
          Disconnect this object from the underlying IListPM.
protected  void fireValueChanged(int beginIndex, int length)
           
protected  void fireValueChangedBetween(int index0, int index1)
           
 int getAnchorSelectionIndex()
          
 int getLeadSelectionIndex()
          
 int getMaxSelectionIndex()
          
 int getMinSelectionIndex()
          
 int getSelectionMode()
          
 boolean getValueIsAdjusting()
          
 void insertIndexInterval(int index, int length, boolean before)
          
 boolean isSelectedIndex(int index)
          
 boolean isSelectionEmpty()
          
protected  void markDirty(int index)
           
 void removeIndexInterval(int index0, int index1)
          
 void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
          
 void removeSelectionInterval(int index0, int index1)
          
 void setAnchorSelectionIndex(int index)
          
 void setLeadSelectionIndex(int index)
          
 void setSelectionInterval(int index0, int index1)
          
 void setSelectionMode(int selectionMode)
          
 void setValueIsAdjusting(boolean valueIsAdjusting)
          
protected  void updateLeadAnchorIndices(int index0, int index1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BnListSelectionModel

public BnListSelectionModel(IListPM<? extends PresentationModel> aList)
Method Detail

dismiss

public void dismiss()
Disconnect this object from the underlying IListPM.


addListSelectionListener

public void addListSelectionListener(javax.swing.event.ListSelectionListener l)

Specified by:
addListSelectionListener in interface javax.swing.ListSelectionModel

removeListSelectionListener

public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)

Specified by:
removeListSelectionListener in interface javax.swing.ListSelectionModel

getSelectionMode

public int getSelectionMode()

Specified by:
getSelectionMode in interface javax.swing.ListSelectionModel

setSelectionMode

public void setSelectionMode(int selectionMode)

Specified by:
setSelectionMode in interface javax.swing.ListSelectionModel

getValueIsAdjusting

public boolean getValueIsAdjusting()

Specified by:
getValueIsAdjusting in interface javax.swing.ListSelectionModel

setValueIsAdjusting

public void setValueIsAdjusting(boolean valueIsAdjusting)

Specified by:
setValueIsAdjusting in interface javax.swing.ListSelectionModel

getMaxSelectionIndex

public int getMaxSelectionIndex()

Specified by:
getMaxSelectionIndex in interface javax.swing.ListSelectionModel

getMinSelectionIndex

public int getMinSelectionIndex()

Specified by:
getMinSelectionIndex in interface javax.swing.ListSelectionModel

getAnchorSelectionIndex

public int getAnchorSelectionIndex()

Specified by:
getAnchorSelectionIndex in interface javax.swing.ListSelectionModel

setAnchorSelectionIndex

public void setAnchorSelectionIndex(int index)

Specified by:
setAnchorSelectionIndex in interface javax.swing.ListSelectionModel

getLeadSelectionIndex

public int getLeadSelectionIndex()

Specified by:
getLeadSelectionIndex in interface javax.swing.ListSelectionModel

setLeadSelectionIndex

public void setLeadSelectionIndex(int index)

Specified by:
setLeadSelectionIndex in interface javax.swing.ListSelectionModel

isSelectedIndex

public boolean isSelectedIndex(int index)

Specified by:
isSelectedIndex in interface javax.swing.ListSelectionModel

isSelectionEmpty

public boolean isSelectionEmpty()

Specified by:
isSelectionEmpty in interface javax.swing.ListSelectionModel

clearSelection

public void clearSelection()

Specified by:
clearSelection in interface javax.swing.ListSelectionModel

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)

Specified by:
setSelectionInterval in interface javax.swing.ListSelectionModel

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)

Specified by:
addSelectionInterval in interface javax.swing.ListSelectionModel

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)

Specified by:
removeSelectionInterval in interface javax.swing.ListSelectionModel

insertIndexInterval

public void insertIndexInterval(int index,
                                int length,
                                boolean before)

Specified by:
insertIndexInterval in interface javax.swing.ListSelectionModel

removeIndexInterval

public void removeIndexInterval(int index0,
                                int index1)

Specified by:
removeIndexInterval in interface javax.swing.ListSelectionModel

fireValueChangedBetween

protected void fireValueChangedBetween(int index0,
                                       int index1)

fireValueChanged

protected void fireValueChanged(int beginIndex,
                                int length)

updateLeadAnchorIndices

protected void updateLeadAnchorIndices(int index0,
                                       int index1)

markDirty

protected void markDirty(int index)