Please enable JavaScript.
Coggle requires JavaScript to display documents.
Delegationt* - Coggle Diagram
Delegationt*
-
In the delegation model, an event is an object that describes a state change in a source. It
-
-
pressing a button, entering a character via the keyboard, selecting an item in a list, and
-
with a user interface. For example, an event may be generated when a timer expires, a
counter exceeds a value, a software or hardware failure occurs, or an operation is
-
EVENT
-
-
-
The listener simply waits until it receives an event. Once it is obtained, It processes this
-
-
-
-
-
-
-
-
Here, src is the object that generates this event. EventObject contains two methods:
-
-
-
An ActionEvent is generated when a button is pressed, a list item is double-clicked, or a
-
used to identify any modifiers associated with an action event: ALT_MASK,
CTRL_MASK, META_MASK, and SHIFT_MASK.
ActionEvent has these three constructors: ActionEvent(Object src,
int type, String cmd) ActionEvent(Object src, int type,
String cmd, int modifiers)
ActionEvent(Object src, int type, String cmd, long when, int modifiers) Here, src is a
-
type, and its command string is cmd. The argument modifiers indicates which modifier
keys (ALT, CTRL, META, and/or SHIFT) were pressed when the event was generated.
-
-
The ComponentEvent Class A ComponentEvent is generated when the size, position, or
-
-
-
-
-