package j3deditor.bin.components;


/**
 * The listener interface for receiving <code>SimpleButton</code> events.
 *
 * @author Risto Seene
 * 
 * @see SimpleButton
 * @see SimpleButtonEvent
 */
public interface SimpleButtonListener{

	/**
	 * Invoked when the button is clicked.
	 * 
	 * @param e
	 * 	<code>SimpleButtonEvent</code> that describes the occured event
	 */
	public void buttonClicked(SimpleButtonEvent e);

	/**
	 * Invoked when the cursor is dragged inside buttons bounds.
	 * 
	 * @param e
	 * 	<code>SimpleButtonEvent</code> that describes the occured event
	 */
	public void buttonDragged(SimpleButtonEvent e);

	/**
	 * Invoked when the cursor enters to buttons bounds.
	 * 
	 * @param e
	 * 	<code>SimpleButtonEvent</code> that describes the occured event
	 */
	public void buttonEntered(SimpleButtonEvent e);

	/**
	 * Invoked when the cursor exits from buttons bounds.
	 * 
	 * @param e
	 * 	<code>SimpleButtonEvent</code> that describes the occured event
	 */
	public void buttonExited(SimpleButtonEvent e);

	/**
	 * Invoked when the drag is ended.
	 * 
	 * @param e
	 * 	<code>SimpleButtonEvent</code> that describes the occured event
	 */
	public void buttonDragEnded(SimpleButtonEvent e);

}
