All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JListSelectionModel
java.lang.Object
|
+----com.sun.java.swing.JListSelectionModel
- public class JListSelectionModel
- extends Object
- implements ListSelectionModel
-
selectionListener
-
-
value
-
-
JListSelectionModel()
-
-
addListSelectionListener(ListSelectionListener)
-
-
addSelectionInterval(int, int)
-
-
clearSelection()
-
-
getAnchorSelectionIndex()
-
-
getLeadSelectionIndex()
-
-
getMaxSelectionIndex()
-
-
getMinSelectionIndex()
-
-
insertIndexInterval(int, int, boolean)
-
Insert length indices beginning before/after index.
-
isSelectedIndex(int)
-
-
isSelectionEmpty()
-
-
notifyValueChangedListeners(int, int)
-
-
removeIndexInterval(int, int)
-
Remove the indices in the interval index0,index1 (inclusive) from
the selection model.
-
removeListSelectionListener(ListSelectionListener)
-
-
removeSelectionInterval(int, int)
-
-
setSelectionInterval(int, int)
-
value
protected BitSet value
selectionListener
protected ListSelectionListener selectionListener
JListSelectionModel
public JListSelectionModel()
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
getLeadSelectionIndex
public int getLeadSelectionIndex()
getMinSelectionIndex
public int getMinSelectionIndex()
getMaxSelectionIndex
public int getMaxSelectionIndex()
isSelectedIndex
public boolean isSelectedIndex(int index)
isSelectionEmpty
public boolean isSelectionEmpty()
addListSelectionListener
public void addListSelectionListener(ListSelectionListener l)
removeListSelectionListener
public void removeListSelectionListener(ListSelectionListener l)
notifyValueChangedListeners
protected void notifyValueChangedListeners(int firstIndex,
int lastIndex)
clearSelection
public void clearSelection()
setSelectionInterval
public void setSelectionInterval(int index0,
int index1)
addSelectionInterval
public void addSelectionInterval(int index0,
int index1)
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
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.
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.
All Packages Class Hierarchy This Package Previous Next Index