All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.JCListEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----java.awt.event.ItemEvent
                           |
                           +----jclass.bwt.JCItemEvent
                                   |
                                   +----jclass.bwt.JCListEvent

public class JCListEvent
extends JCItemEvent
JCListEvent is the selection event posted by a JCList or JCListComponent.

See Also:
JCListAdapter, JCListListener, addItemListener

Variable Index

 o ADDITION
 o INITIAL
Selection types.
 o MODIFICATION

Constructor Index

 o JCListEvent(JCListInterface, Event, int, int, int)
Constructs an object with the specified source, row and selection type.

Method Index

 o getAllowSelection()
Gets the current AllowSelection value.
 o getRow()
Gets the last item selected.
 o getSourceEvent()
Gets the originating event (null if selection was not interactive).
 o getType()
Gets the selection type:

 INITIAL            Initial selection
 MODIFICATION       Modification of an existing selection
 ADDITION           Additional noncontiguous selection
 
 o setAllowSelection(boolean)
Determines whether the selection should be allowed (default: true).

Variables

 o INITIAL
 public static final int INITIAL
Selection types.

 o MODIFICATION
 public static final int MODIFICATION
 o ADDITION
 public static final int ADDITION

Constructors

 o JCListEvent
 public JCListEvent(JCListInterface list,
                    Event ev,
                    int row,
                    int type,
                    int stateChange)
Constructs an object with the specified source, row and selection type.

Parameters:
source - the originating list
id - the event type
item - the item where the event occurred
row - the item's row number
type - the selection type: INITIAL, MODIFICATION or ADDITION
stateChange - the state change type which caused the event: SELECTED or DESELECTED
See Also:
getType

Methods

 o getRow
 public int getRow()
Gets the last item selected.

 o getType
 public int getType()
Gets the selection type:

 INITIAL            Initial selection
 MODIFICATION       Modification of an existing selection
 ADDITION           Additional noncontiguous selection
 

 o getAllowSelection
 public boolean getAllowSelection()
Gets the current AllowSelection value.

See Also:
setAllowSelection
 o setAllowSelection
 public void setAllowSelection(boolean v)
Determines whether the selection should be allowed (default: true).

 o getSourceEvent
 public Event getSourceEvent()
Gets the originating event (null if selection was not interactive).


All Packages  Class Hierarchy  This Package  Previous  Next  Index