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 ListModelListeners.

Version:
11 Mar 1998
Author:
Kazuki YASUMATSU
See Also:
ListModel, ListModelListener

Variable Index

 o LIST_MODEL_FIRST
Marks the first integer id for the range of list model event ids.
 o LIST_MODEL_LAST
Marks the last integer id for the range of list model event ids.
 o LIST_MODEL_REPLACED
The list model is replaced.
 o LIST_MODEL_SELECTION_CHANGED
The selection of the list model is changed.

Constructor Index

 o 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.
 o 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.

Method Index

 o getDeselectedIndices()
Returns the deselected indices.
 o getID()
Returns the id of this list model event.
 o getItemCountChanged()
Returns the item count changed.
 o getModel()
Returns the list model (event source) of this list model event.
 o getReplaceBegin()
Returns the beginning index to be replaced, inclusive.
 o getReplaceEnd()
Returns the beginning index to be replaced, exclusive.
 o getSelectedIndices()
Returns the selected indices.
 o paramString()

Variables

 o LIST_MODEL_FIRST
 public static final int LIST_MODEL_FIRST
Marks the first integer id for the range of list model event ids.

 o LIST_MODEL_LAST
 public static final int LIST_MODEL_LAST
Marks the last integer id for the range of list model event ids.

 o LIST_MODEL_REPLACED
 public static final int LIST_MODEL_REPLACED
The list model is replaced.

 o LIST_MODEL_SELECTION_CHANGED
 public static final int LIST_MODEL_SELECTION_CHANGED
The selection of the list model is changed.

Constructors

 o 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.
 o 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.

Methods

 o getID
 public int getID()
Returns the id of this list model event.

 o getModel
 public ListModel getModel()
Returns the list model (event source) of this list model event.

 o getSelectedIndices
 public int[] getSelectedIndices()
Returns the selected indices. This operation is valid when id is LIST_MODEL_SELECTION_CHANGED.

 o getDeselectedIndices
 public int[] getDeselectedIndices()
Returns the deselected indices. This operation is valid when id is LIST_MODEL_SELECTION_CHANGED.

 o getReplaceBegin
 public int getReplaceBegin()
Returns the beginning index to be replaced, inclusive. This operation is valid when id is LIST_MODEL_REPLACED.

 o getReplaceEnd
 public int getReplaceEnd()
Returns the beginning index to be replaced, exclusive. This operation is valid when id is LIST_MODEL_REPLACED.

 o getItemCountChanged
 public int getItemCountChanged()
Returns the item count changed. This operation is valid when id is LIST_MODEL_REPLACED.

 o paramString
 public String paramString()

All Packages  Class Hierarchy  This Package  Previous  Next  Index