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
-
ADDITION
-
-
INITIAL
- Selection types.
-
MODIFICATION
-
-
JCListEvent(JCListInterface, Event, int, int, int)
- Constructs an object with the specified source, row and selection type.
-
getAllowSelection()
- Gets the current AllowSelection value.
-
getRow()
- Gets the last item selected.
-
getSourceEvent()
- Gets the originating event (null if selection was not interactive).
-
getType()
- Gets the selection type:
INITIAL Initial selection
MODIFICATION Modification of an existing selection
ADDITION Additional noncontiguous selection
-
setAllowSelection(boolean)
- Determines whether the selection should be allowed (default: true).
INITIAL
public static final int INITIAL
- Selection types.
MODIFICATION
public static final int MODIFICATION
ADDITION
public static final int ADDITION
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
getRow
public int getRow()
- Gets the last item selected.
getType
public int getType()
- Gets the selection type:
INITIAL Initial selection
MODIFICATION Modification of an existing selection
ADDITION Additional noncontiguous selection
getAllowSelection
public boolean getAllowSelection()
- Gets the current AllowSelection value.
- See Also:
- setAllowSelection
setAllowSelection
public void setAllowSelection(boolean v)
- Determines whether the selection should be allowed (default: true).
getSourceEvent
public Event getSourceEvent()
- Gets the originating event (null if selection was not interactive).
All Packages Class Hierarchy This Package Previous Next Index