|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsky.monome.event.GenericListenerWithArguments
sky.monome.event.button.ButtonListenerWithArguments<B>
sky.monome.event.button.FilteredButtonListener<B>
B
- Type of button manager that is used with button listeners.public abstract class FilteredButtonListener<B extends ButtonManager<B>>
Filtered button listener. This is a special implementation of the ButtonListener
interface that is specialized in basic filtering of button actions. Implementations of this abstract class will be notified only when the filter value is met.
Field Summary |
---|
Fields inherited from class sky.monome.event.GenericListenerWithArguments |
---|
arguments |
Constructor Summary | |
---|---|
FilteredButtonListener(ButtonEvent.ButtonAction buttonActionFilter,
java.lang.Object... arguments)
Constructs a filtered button listener with specified arguments and the specified filter value. |
|
FilteredButtonListener(java.lang.Object... arguments)
Constructs a filtered button listener with specified arguments. |
Method Summary | |
---|---|
void |
buttonActionned(ButtonEvent<B> buttonEvent)
Invoked when a button actionning occurs. |
abstract void |
filteredButtonActionned(ButtonEvent<B> buttonEvent)
Invoked when a filtered actionning occurs. |
ButtonEvent.ButtonAction |
getButtonActionFilter()
Returns the filter value that will must be met in order to notify implementations of this abstract class that a button has been actionned. |
void |
setButtonActionFilter(ButtonEvent.ButtonAction buttonActionFilter)
Modifies the filter value that will must be met in order to notify implementations of this abstract class that a button has been actionned. |
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 |
Constructor Detail |
---|
public FilteredButtonListener(java.lang.Object... arguments)
ButtonAction.BUTTON_PUSHED
.
arguments
- Arguments which can be used in the filteredButtonActionned(ButtonEvent)
method.
These arguments are optional. The presence of these arguments is due to this class which extends
ButtonListenerWithArguments
.public FilteredButtonListener(ButtonEvent.ButtonAction buttonActionFilter, java.lang.Object... arguments)
buttonActionFilter
- Filter value that will must be met
in order to notify implementations of this abstract class that
a button has been actionned.arguments
- Arguments which can be used in the filteredButtonActionned(ButtonEvent)
method.
These arguments are optional. The presence of these arguments is due to this class which extends
ButtonListenerWithArguments
.Method Detail |
---|
public ButtonEvent.ButtonAction getButtonActionFilter()
public void setButtonActionFilter(ButtonEvent.ButtonAction buttonActionFilter)
buttonActionFilter
- New filter value that will must be met
in order to notify implementations of this abstract class that
a button has been actionned.public void buttonActionned(ButtonEvent<B> buttonEvent)
filteredButtonActionned(ButtonEvent)
method.
buttonEvent
- Informations about the button event.public abstract void filteredButtonActionned(ButtonEvent<B> buttonEvent)
buttonEvent
- Informations about the button event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |