Package org.jcsp.awt
Class ComponentEventHandler
- java.lang.Object
-
- org.jcsp.awt.ComponentEventHandler
-
- All Implemented Interfaces:
java.awt.event.ComponentListener
,java.util.EventListener
class ComponentEventHandler extends java.lang.Object implements java.awt.event.ComponentListener
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelOutput
event
The Channel action event notifications are sent down.
-
Constructor Summary
Constructors Constructor Description ComponentEventHandler(ChannelOutput event)
constructs a new ComponentEventHandler with the specified event output Channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
componentHidden(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is hidden.void
componentMoved(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is moved.void
componentResized(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is resized.void
componentShown(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is shown.
-
-
-
Field Detail
-
event
private ChannelOutput event
The Channel action event notifications are sent down.
-
-
Constructor Detail
-
ComponentEventHandler
public ComponentEventHandler(ChannelOutput event)
constructs a new ComponentEventHandler with the specified event output Channel.- Parameters:
event
- The Channel to send the event notification down
-
-
Method Detail
-
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is resized. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentResized
in interfacejava.awt.event.ComponentListener
- Parameters:
e
- The parameters associated with this event
-
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is moved. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentMoved
in interfacejava.awt.event.ComponentListener
- Parameters:
e
- The parameters associated with this event
-
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is shown. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentShown
in interfacejava.awt.event.ComponentListener
- Parameters:
e
- The parameters associated with this event
-
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
Invoked when the component the event handler is listening to is hidden. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.- Specified by:
componentHidden
in interfacejava.awt.event.ComponentListener
- Parameters:
e
- The parameters associated with this event
-
-