All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.event.ListModelEvent
java.lang.Object
|
+----java.util.EventObject
|
+----jp.kyasu.awt.event.ListModelEvent
- public class ListModelEvent
- extends EventObject
The ListModel event that is originated from a ListModel
to
ListModelListener
s.
- Version:
- 11 Mar 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- ListModel, ListModelListener
-
LIST_MODEL_FIRST
- Marks the first integer id for the range of list model event ids.
-
LIST_MODEL_LAST
- Marks the last integer id for the range of list model event ids.
-
LIST_MODEL_REPLACED
- The list model is replaced.
-
LIST_MODEL_SELECTION_CHANGED
- The selection of the list model is changed.
-
ListModelEvent(ListModel, int, int, int, int)
- Constructs a list model event with the specified list model (event
source), id, range to be replaced, and item count changed.
-
ListModelEvent(ListModel, int, int[], int[])
- Constructs a list model event with the specified list model (event
source), id, the selected indices, and the deselected indices.
-
getDeselectedIndices()
- Returns the deselected indices.
-
getID()
- Returns the id of this list model event.
-
getItemCountChanged()
- Returns the item count changed.
-
getModel()
- Returns the list model (event source) of this list model event.
-
getReplaceBegin()
- Returns the beginning index to be replaced, inclusive.
-
getReplaceEnd()
- Returns the beginning index to be replaced, exclusive.
-
getSelectedIndices()
- Returns the selected indices.
-
paramString()
-
LIST_MODEL_FIRST
public static final int LIST_MODEL_FIRST
- Marks the first integer id for the range of list model event ids.
LIST_MODEL_LAST
public static final int LIST_MODEL_LAST
- Marks the last integer id for the range of list model event ids.
LIST_MODEL_REPLACED
public static final int LIST_MODEL_REPLACED
- The list model is replaced.
LIST_MODEL_SELECTION_CHANGED
public static final int LIST_MODEL_SELECTION_CHANGED
- The selection of the list model is changed.
ListModelEvent
public 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.
- Parameters:
- model - the list model (event source).
- id - the id.
- selected - the selected indices.
- deselected - the deselected indices.
- Throws: IllegalArgumentException
- if the id is not
LIST_MODEL_SELECTION_CHANGED.
ListModelEvent
public 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.
- Parameters:
- 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.
- Throws: IllegalArgumentException
- if the id is not
LIST_MODEL_REPLACED.
getID
public int getID()
- Returns the id of this list model event.
getModel
public ListModel getModel()
- Returns the list model (event source) of this list model event.
getSelectedIndices
public int[] getSelectedIndices()
- Returns the selected indices.
This operation is valid when id is LIST_MODEL_SELECTION_CHANGED.
getDeselectedIndices
public int[] getDeselectedIndices()
- Returns the deselected indices.
This operation is valid when id is LIST_MODEL_SELECTION_CHANGED.
getReplaceBegin
public int getReplaceBegin()
- Returns the beginning index to be replaced, inclusive.
This operation is valid when id is LIST_MODEL_REPLACED.
getReplaceEnd
public int getReplaceEnd()
- Returns the beginning index to be replaced, exclusive.
This operation is valid when id is LIST_MODEL_REPLACED.
getItemCountChanged
public int getItemCountChanged()
- Returns the item count changed.
This operation is valid when id is LIST_MODEL_REPLACED.
paramString
public String paramString()
All Packages Class Hierarchy This Package Previous Next Index