Package org.jcsp.awt
Class FocusEventHandler
java.lang.Object
org.jcsp.awt.FocusEventHandler
- All Implemented Interfaces:
FocusListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutput
The Channel action event notifications are sent down. -
Constructor Summary
ConstructorsConstructorDescriptionFocusEventHandler
(ChannelOutput event) constructs a new FocusEventHandler with the specified output Channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when the Component the event handler is listening to Gains the input Focus.void
Invoked when the Component the event handler is listening to Gains the input Focus.
-
Field Details
-
event
The Channel action event notifications are sent down.
-
-
Constructor Details
-
FocusEventHandler
constructs a new FocusEventHandler with the specified output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Details
-
focusGained
Invoked when the Component the event handler is listening to Gains the input Focus. Notifies the event process that a FocusEvent has occurred by sending the FocusEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
focusGained
in interfaceFocusListener
- Parameters:
e
- The parameters associated with this event
-
focusLost
Invoked when the Component the event handler is listening to Gains the input Focus. Notifies the event process that a FocusEvent has occurred by sending the FocusEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
focusLost
in interfaceFocusListener
- Parameters:
e
- The parameters associated with this event
-