|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.DefaultListSelectionModel | +--FIM.Util.GUI.ReadOnlySelectionModel
This class extends the class DefaultListSelectionModel
, but does only
allow to set the selection if it is not marked as read-only: All requests are ignored then.
Used for read-only list-boxes. They can be scrolled, but the selection cannot be changed.
JList
, Serialized FormFields inherited from class javax.swing.DefaultListSelectionModel |
leadAnchorNotificationEnabled, listenerList |
Fields inherited from interface javax.swing.ListSelectionModel |
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Constructor Summary | |
ReadOnlySelectionModel()
|
Method Summary | |
void |
addSelectionInterval(int index0,
int index1)
Change the selection to be the set union of the current selection and the indices between index0 and index1 inclusive. |
void |
clearSelection()
Change the selection to the empty set. |
void |
insertIndexInterval(int index,
int length,
boolean before)
Insert length indices beginning before/after index. |
boolean |
isReadOnly()
Retrieve the current mode of the selection model. |
void |
removeIndexInterval(int index0,
int index1)
Remove the indices in the interval index0,index1 (inclusive) from the selection model. |
void |
removeSelectionInterval(int index0,
int index1)
Change the selection to be the set difference of the current selection and the indices between index0 and index1 inclusive. |
void |
setAnchorSelectionIndex(int anchorIndex)
Set the anchor selection index. |
void |
setLeadSelectionIndex(int leadIndex)
Set the lead selection index. |
void |
setReadOnly(boolean readOnly)
Sets the current mode of the selection model. |
void |
setSelectionInterval(int index0,
int index1)
Change the selection to be between index0 and index1 inclusive. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ReadOnlySelectionModel()
Method Detail |
public boolean isReadOnly()
true
if the selection cannot be changedpublic void setReadOnly(boolean readOnly)
true
until
it is set again to false
.readOnly
- if true
the selection cannot be changed anymorepublic void clearSelection()
clearSelection
in class DefaultListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in class DefaultListSelectionModel
index0
- one end of the interval.index1
- other end of the intervalpublic void addSelectionInterval(int index0, int index1)
addSelectionInterval
in class DefaultListSelectionModel
index0
- one end of the interval.index1
- other end of the intervalpublic void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in class DefaultListSelectionModel
index0
- one end of the interval.index1
- other end of the intervalpublic void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in class DefaultListSelectionModel
index
- the index before/after which to insertlength
- the number of indices to insertbefore
- if true
, the indices will be inserted before the provided indexpublic void removeIndexInterval(int index0, int index1)
removeIndexInterval
in class DefaultListSelectionModel
index0
- the first index to be removedindex1
- the last index to be removedpublic void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in class DefaultListSelectionModel
anchorIndex
- the anchor selection indexDefaultListSelectionModel.getAnchorSelectionIndex()
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in class DefaultListSelectionModel
leadIndex
- the lead selection indexDefaultListSelectionModel.getLeadSelectionIndex()
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |