sky.monome.event.button
Class ButtonListenerWithArguments<B extends ButtonManager<B>>


java.lang.Object

  extended by sky.monome.event.GenericListenerWithArguments

      extended by sky.monome.event.button.ButtonListenerWithArguments<B>

Type Parameters:
B - Type of button manager that is used with button listeners.
All Implemented Interfaces:
java.util.EventListener, ButtonListener<B>
Direct Known Subclasses:
FilteredButtonListener

public abstract class ButtonListenerWithArguments<B extends ButtonManager<B>>
extends GenericListenerWithArguments
implements ButtonListener<B>

Listener that listens to button events. Arguments can be given at the construction time and can be used internally.

Author:
PJ Skyman

Field Summary
 
Fields inherited from class sky.monome.event.GenericListenerWithArguments
arguments
 
Constructor Summary
ButtonListenerWithArguments(java.lang.Object... arguments)
          Constructs a button listener with specified arguments.
 
Method Summary
 
Methods inherited from class sky.monome.event.GenericListenerWithArguments
getArgument, getArgument, getArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sky.monome.event.button.ButtonListener
buttonActionned
 

Constructor Detail

ButtonListenerWithArguments


public ButtonListenerWithArguments(java.lang.Object... arguments)
Constructs a button listener with specified arguments.

Parameters:
arguments - Arguments to give to this button listener for future internal use.