org.tanager.ui
Class CMouseDoubleClickListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.tanager.ui.CMouseDoubleClickListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class CMouseDoubleClickListener
extends java.awt.event.MouseAdapter

This class encapsulates the concept of an action to be taken when the mouse is double clicked.

Version:
$Revision: 1.2.2.2 $
Author:
Bob Lavey

Field Summary
private  IMouseDoubleClickCallback theCallback_
           Represents the callback to the IMouseClickListener implementor.
 
Constructor Summary
CMouseDoubleClickListener(IMouseDoubleClickCallback callback)
           This is the only contructor allowed for a CMouseClickListener object.
 
Method Summary
protected  IMouseDoubleClickCallback getTheCallback()
           Poseidon-generated accessor method.
 void mouseClicked(java.awt.event.MouseEvent e)
           This method is called whenever the mouse is clicked.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theCallback_

private IMouseDoubleClickCallback theCallback_

Represents the callback to the IMouseClickListener implementor.

Constructor Detail

CMouseDoubleClickListener

public CMouseDoubleClickListener(IMouseDoubleClickCallback callback)

This is the only contructor allowed for a CMouseClickListener object. This constructor initializes the super class and the association with the callback implementor.

Semantics:
  1. initialize the association with the callback implementor

Parameters:
callback - a reference to the IMouseClickCallback implementor
Method Detail

getTheCallback

protected IMouseDoubleClickCallback getTheCallback()

Poseidon-generated accessor method.

Returns:
the IMouseClickCallback implementor

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)

This method is called whenever the mouse is clicked.

Semantics:
  1. if the left mouse button (button 1) was clicked twice
    1. call the callback implementor's mouseDoubleClicked() method

    Specified by:
    mouseClicked in interface java.awt.event.MouseListener
    Overrides:
    mouseClicked in class java.awt.event.MouseAdapter
    Parameters:
    e - the mouse event that occurred