public class ListModelEvent
extends java.util.EventObject
ListModel to
ListModelListeners.ListModel,
ListModelListener,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int[] |
deselectedIndices
The deselected indices.
|
protected int |
id
The id of the event.
|
protected int |
itemCountChanged
The item count changed.
|
static int |
LIST_MODEL_FIRST
Marks the first integer id for the range of list model event ids.
|
static int |
LIST_MODEL_LAST
Marks the last integer id for the range of list model event ids.
|
static int |
LIST_MODEL_REPLACED
The list model is replaced.
|
static int |
LIST_MODEL_SELECTION_CHANGED
The selection of the list model is changed.
|
protected int |
replaceBegin
The beginning index to be replaced, inclusive.
|
protected int |
replaceEnd
The ending index to be replaced, exclusive.
|
protected int[] |
selectedIndices
The selected indices.
|
| コンストラクタと説明 |
|---|
ListModelEvent(ListModel model,
int id,
int[] selected,
int[] deselected)
Constructs a list model event with the specified list model (event
source), id, the selected indices, and the deselected indices.
|
ListModelEvent(ListModel model,
int id,
int begin,
int end,
int itemCountChanged)
Constructs a list model event with the specified list model (event
source), id, range to be replaced, and item count changed.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int[] |
getDeselectedIndices()
Returns the deselected indices.
|
int |
getID()
Returns the id of this list model event.
|
int |
getItemCountChanged()
Returns the item count changed.
|
ListModel |
getModel()
Returns the list model (event source) of this list model event.
|
int |
getReplaceBegin()
Returns the beginning index to be replaced, inclusive.
|
int |
getReplaceEnd()
Returns the beginning index to be replaced, exclusive.
|
int[] |
getSelectedIndices()
Returns the selected indices.
|
java.lang.String |
paramString() |
protected int id
protected int[] selectedIndices
protected int[] deselectedIndices
protected int replaceBegin
protected int replaceEnd
protected int itemCountChanged
public static final int LIST_MODEL_FIRST
public static final int LIST_MODEL_LAST
public static final int LIST_MODEL_REPLACED
public static final int LIST_MODEL_SELECTION_CHANGED
public ListModelEvent(ListModel model, int id, int[] selected, int[] deselected)
model - the list model (event source).id - the id.selected - the selected indices.deselected - the deselected indices.java.lang.IllegalArgumentException - if the id is not
LIST_MODEL_SELECTION_CHANGED.public ListModelEvent(ListModel model, int id, int begin, int end, int itemCountChanged)
model - the list model (event source).id - the id.replaceBegin - the beginning index to be replaced, inclusive.replaceEnd - the ending index to be replaced, exclusive.itemCountChanged - the item count changed.java.lang.IllegalArgumentException - if the id is not
LIST_MODEL_REPLACED.public int getID()
public ListModel getModel()
public int[] getSelectedIndices()
public int[] getDeselectedIndices()
public int getReplaceBegin()
public int getReplaceEnd()
public int getItemCountChanged()
public java.lang.String paramString()