Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## charva.awt.event
Class ItemEvent

    java.lang.Object
      java.util.EventObject
          charva.awt.event.AWTEvent
              charva.awt.event.ItemEvent

All Implemented Interfaces:
  java.io.Serializable

public class ItemEvent
extends AWTEvent

An event which indicates that an item was selected or deselected.

See Also:
  Serialized Form

Field Summary
`static int` | `DESELECTED`
`static int` | `SELECTED`

Fields inherited from class charva.awt.event.AWTEvent
`ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED`

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`ItemEvent(Component source_, java.lang.Object item_, int statechange_)` Constructs an ItemEvent object.

Method Summary
`void` | `consume()` Provides a way to flag the event as having been consumed, so that it never reaches its destination component.
`java.lang.Object` | `getItem()` Get the item affected by the event.
`int` | `getStateChange()`
`boolean` | `isConsumed()`

Methods inherited from class charva.awt.event.AWTEvent
`getID`

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### SELECTED

    public static final int SELECTED

See Also:
  Constant Field Values

### DESELECTED

    public static final int DESELECTED

See Also:
  Constant Field Values

Constructor Detail

### ItemEvent

    public ItemEvent(Component source_,
                     java.lang.Object item_,
                     int statechange_)

  Constructs an ItemEvent object.

Parameters:
  `source_` - The object (such as a List) that originated the event.
  `item_` - The object affected by the event.
  `statechange_` - An integer that indicates whether the item was selected or deselected.

Method Detail

### consume

    public void consume()

  Provides a way to flag the event as having been consumed, so that it never reaches its destination component.

### isConsumed

    public boolean isConsumed()

### getItem

    public java.lang.Object getItem()

  Get the item affected by the event.

### getStateChange

    public int getStateChange()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD