ItemEvent

Name

ItemEvent

[Graphic: Figure from the text]

Description

ItemEvents are generated by objects that implement the ItemSelectable interface. Choice is one example of such an object.

Class Definition

public class java.awt.event.ItemEvent extends java.awt.AWTEvent {
 // Constants public final static int DESELECTED;
public final static int ITEM_FIRST;
public final static int ITEM_LAST;
public final static int ITEM_STATE_CHANGED;
public final static int SELECTED; // Constructors public ItemEvent (ItemSelectable source, int id, Object item, int stateChange); // Instance Methods public Object getItem();
public ItemSelectable getItemSelectable();
public int getStateChange();
public String paramString();
}

Constants

DESELECTED

public final static int DESELECTED

Indicates that an item was deselected.

ITEM_FIRST

public final static int ITEM_FIRST

Specifies the beginning range of item event ID values.

ITEM_LAST

public final static int ITEM_LAST

Specifies the ending range of item event ID values.

ITEM_STATE_CHANGED

public final static int ITEM_STATE_CHANGED

An event type indicating that an item was selected or deselected.

SELECTED

public final static int SELECTED

Indicates that an item was selected.

Constructors

ItemEvent

public ItemEvent (ItemSelectable source, int id, Object item, int stateChange)

Instance Methods

getItem

public Object getItem()

getItemSelectable

public ItemSelectable getItemSelectable()

getStateChange

public int getStateChange()

paramString

public String paramString()

See Also

AWTEvent, ItemSelectable, ItemListener