ks.common.controller
Class SolitaireReleasedAdapter

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byks.common.controller.SolitaireReleasedAdapter
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class SolitaireReleasedAdapter
extends java.awt.event.MouseAdapter

Default released adapter for use by all solitaire plug-ins.

The SolitaireReleasedAdapter is programmed to send back to the dragSource any objects that were in progress when the mouse button was released over the container.

Since:
V2.0.2

Constructor Summary
SolitaireReleasedAdapter(Solitaire theGame)
          SolitaireReleasedAdapter constructor comment.
 
Method Summary
 void mouseReleased(java.awt.event.MouseEvent me)
          Coordinate reaction to the completion of a Drag Event that must be canceled.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mousePressed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolitaireReleasedAdapter

public SolitaireReleasedAdapter(Solitaire theGame)
SolitaireReleasedAdapter constructor comment.

Method Detail

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Coordinate reaction to the completion of a Drag Event that must be canceled.

It would have been a bit of a challenge to construct the appropriate move, because cards can be dragged both from the WastePile and the BuildablePileView. Since V1.6 of Kombat Solitaire, a dragged widget can be returned to its originating source; this makes life easier for the solitaire developer.

Parameters:
me - java.awt.event.MouseEvent