buoy.internal

Class EventLinkAdapter

Implemented Interfaces:
FocusListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, WindowListener

public class EventLinkAdapter
extends java.lang.Object
implements FocusListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, WindowListener

This class handles interaction with the AWT event model. Its job is to implement every listener interface, then generate and dispatch appropriate event objects.
Author:
Peter Eastman

Constructor Summary

EventLinkAdapter(Widget widget)
Create a new adapter for a particular Widget.

Method Summary

void
focusGained(FocusEvent ev)
void
focusLost(FocusEvent ev)
void
keyPressed(KeyEvent ev)
void
keyReleased(KeyEvent ev)
void
keyTyped(KeyEvent ev)
void
mouseClicked(MouseEvent ev)
void
mouseDragged(MouseEvent ev)
void
mouseEntered(MouseEvent ev)
void
mouseExited(MouseEvent ev)
void
mouseMoved(MouseEvent ev)
void
mousePressed(MouseEvent ev)
void
mouseReleased(MouseEvent ev)
void
mouseWheelMoved(MouseWheelEvent ev)
void
newEventType(Class eventType)
This is called when a new event link is added to a Widget.
void
windowActivated(WindowEvent ev)
void
windowClosed(WindowEvent ev)
void
windowClosing(WindowEvent ev)
void
windowDeactivated(WindowEvent ev)
void
windowDeiconified(WindowEvent ev)
void
windowIconified(WindowEvent ev)
void
windowOpened(WindowEvent ev)

Constructor Details

EventLinkAdapter

public EventLinkAdapter(Widget widget)
Create a new adapter for a particular Widget.

Method Details

focusGained

public void focusGained(FocusEvent ev)

focusLost

public void focusLost(FocusEvent ev)

keyPressed

public void keyPressed(KeyEvent ev)

keyReleased

public void keyReleased(KeyEvent ev)

keyTyped

public void keyTyped(KeyEvent ev)

mouseClicked

public void mouseClicked(MouseEvent ev)

mouseDragged

public void mouseDragged(MouseEvent ev)

mouseEntered

public void mouseEntered(MouseEvent ev)

mouseExited

public void mouseExited(MouseEvent ev)

mouseMoved

public void mouseMoved(MouseEvent ev)

mousePressed

public void mousePressed(MouseEvent ev)

mouseReleased

public void mouseReleased(MouseEvent ev)

mouseWheelMoved

public void mouseWheelMoved(MouseWheelEvent ev)

newEventType

public void newEventType(Class eventType)
This is called when a new event link is added to a Widget. It checks to see whether this adapter has already been added as a listener for that event type, and if not, it adds itself.

windowActivated

public void windowActivated(WindowEvent ev)

windowClosed

public void windowClosed(WindowEvent ev)

windowClosing

public void windowClosing(WindowEvent ev)

windowDeactivated

public void windowDeactivated(WindowEvent ev)

windowDeiconified

public void windowDeiconified(WindowEvent ev)

windowIconified

public void windowIconified(WindowEvent ev)

windowOpened

public void windowOpened(WindowEvent ev)

Written by Peter Eastman.