All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.DefaultListSelectionModel

java.lang.Object
   |
   +----com.sun.java.swing.DefaultListSelectionModel

public class DefaultListSelectionModel
extends Object
implements ListSelectionModel, Cloneable

Variable Index

 o selectionListener
 o value

Constructor Index

 o DefaultListSelectionModel()

Method Index

 o addListSelectionListener(ListSelectionListener)
 o addSelectionInterval(int, int)
 o clearSelection()
 o clone()
Returns a clone of the reciever with the same selection.
 o getAnchorSelectionIndex()
 o getLeadSelectionIndex()
 o getMaxSelectionIndex()
 o getMinSelectionIndex()
 o insertIndexInterval(int, int, boolean)
Insert length indices beginning before/after index.
 o isSelectedIndex(int)
 o isSelectionEmpty()
 o notifyValueChangedListeners(int, int)
 o removeIndexInterval(int, int)
Remove the indices in the interval index0,index1 (inclusive) from the selection model.
 o removeListSelectionListener(ListSelectionListener)
 o removeSelectionInterval(int, int)
 o setSelectionInterval(int, int)
 o toString()

Variables

 o value
 protected BitSet value
 o selectionListener
 protected ListSelectionListener selectionListener

Constructors

 o DefaultListSelectionModel
 public DefaultListSelectionModel()

Methods

 o getAnchorSelectionIndex
 public int getAnchorSelectionIndex()
 o getLeadSelectionIndex
 public int getLeadSelectionIndex()
 o getMinSelectionIndex
 public int getMinSelectionIndex()
 o getMaxSelectionIndex
 public int getMaxSelectionIndex()
 o isSelectedIndex
 public boolean isSelectedIndex(int index)
 o isSelectionEmpty
 public boolean isSelectionEmpty()
 o addListSelectionListener
 public void addListSelectionListener(ListSelectionListener l)
 o removeListSelectionListener
 public void removeListSelectionListener(ListSelectionListener l)
 o notifyValueChangedListeners
 protected void notifyValueChangedListeners(int firstIndex,
                                            int lastIndex)
 o clearSelection
 public void clearSelection()
 o setSelectionInterval
 public void setSelectionInterval(int index0,
                                  int index1)
 o addSelectionInterval
 public void addSelectionInterval(int index0,
                                  int index1)
 o removeSelectionInterval
 public void removeSelectionInterval(int index0,
                                     int index1)
 o insertIndexInterval
 public void insertIndexInterval(int index,
                                 int length,
                                 boolean before)
Insert length indices beginning before/after index. This is typically called to sync the selection model with a corresponding change in the data model.

 o removeIndexInterval
 public void removeIndexInterval(int index0,
                                 int index1)
Remove the indices in the interval index0,index1 (inclusive) from the selection model. This is typically called to sync the selection model width a corresponding change in the data model. Note that (as always) index0 need not be <= index1.

 o toString
 public String toString()
Overrides:
toString in class Object
 o clone
 public Object clone() throws CloneNotSupportedException
Returns a clone of the reciever with the same selection. selectionListeners are not duplicated.

Throws: CloneNotSupportedException
if the receiver does not both (a) implement the Cloneable interface and (b) define a clone method.
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index