ch.aplu.jgamegrid
Interface GGButtonListener

All Superinterfaces:
java.util.EventListener

public interface GGButtonListener
extends java.util.EventListener

Declarations of the notification method called when a push button is pressed, released or clicked using the left mouse button. The order of events is: pressed, released, clicked. If the button is not released within a short time span or the button is released with the mouse cursor outside the button, the click event is not generated. The callbacks are executed in a separate thread, so some synchronization may be necessary to prevent concurrency problems.


Method Summary
 void buttonClicked(GGButton button)
          Event callback method called when the button is clicked.
 void buttonPressed(GGButton button)
          Event callback method called when the button is pressed.
 void buttonReleased(GGButton button)
          Event callback method called when the button is released.
 

Method Detail

buttonPressed

void buttonPressed(GGButton button)
Event callback method called when the button is pressed.

Parameters:
button - the GGButton reference of the button that caused the event

buttonReleased

void buttonReleased(GGButton button)
Event callback method called when the button is released.

Parameters:
button - the GGButton reference of the button that caused the event

buttonClicked

void buttonClicked(GGButton button)
Event callback method called when the button is clicked.

Parameters:
button - the GGButton reference of the button that caused the event