41 * spared the details of processing individual mouse movements and mouse
42 * clicks, and can instead process a "meaningful" (semantic) event like
43 * "item selected" or "item deselected".
44 * <p>
45 * An unspecified behavior will be caused if the {@code id} parameter
46 * of any particular {@code ItemEvent} instance is not
47 * in the range from {@code ITEM_FIRST} to {@code ITEM_LAST}.
48 * <p>
49 * The {@code stateChange} of any {@code ItemEvent} instance takes one of the following
50 * values:
51 * <ul>
52 * <li> {@code ItemEvent.SELECTED}
53 * <li> {@code ItemEvent.DESELECTED}
54 * </ul>
55 * Assigning the value different from listed above will cause an unspecified behavior.
56 *
57 * @author Carl Quinn
58 *
59 * @see java.awt.ItemSelectable
60 * @see ItemListener
61 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/itemlistener.html">Tutorial: Writing an Item Listener</a>
62 *
63 * @since 1.1
64 */
65 public class ItemEvent extends AWTEvent {
66
67 /**
68 * The first number in the range of ids used for item events.
69 */
70 public static final int ITEM_FIRST = 701;
71
72 /**
73 * The last number in the range of ids used for item events.
74 */
75 public static final int ITEM_LAST = 701;
76
77 /**
78 * This event id indicates that an item's state changed.
79 */
80 public static final int ITEM_STATE_CHANGED = ITEM_FIRST; //Event.LIST_SELECT
81
|
41 * spared the details of processing individual mouse movements and mouse
42 * clicks, and can instead process a "meaningful" (semantic) event like
43 * "item selected" or "item deselected".
44 * <p>
45 * An unspecified behavior will be caused if the {@code id} parameter
46 * of any particular {@code ItemEvent} instance is not
47 * in the range from {@code ITEM_FIRST} to {@code ITEM_LAST}.
48 * <p>
49 * The {@code stateChange} of any {@code ItemEvent} instance takes one of the following
50 * values:
51 * <ul>
52 * <li> {@code ItemEvent.SELECTED}
53 * <li> {@code ItemEvent.DESELECTED}
54 * </ul>
55 * Assigning the value different from listed above will cause an unspecified behavior.
56 *
57 * @author Carl Quinn
58 *
59 * @see java.awt.ItemSelectable
60 * @see ItemListener
61 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/itemlistener.html">Tutorial: Writing an Item Listener</a>
62 *
63 * @since 1.1
64 */
65 public class ItemEvent extends AWTEvent {
66
67 /**
68 * The first number in the range of ids used for item events.
69 */
70 public static final int ITEM_FIRST = 701;
71
72 /**
73 * The last number in the range of ids used for item events.
74 */
75 public static final int ITEM_LAST = 701;
76
77 /**
78 * This event id indicates that an item's state changed.
79 */
80 public static final int ITEM_STATE_CHANGED = ITEM_FIRST; //Event.LIST_SELECT
81
|