public final class AllEventsFilter extends Object implements IOEventFilter
Since this filter doesn't have any variables, there is a static method
getInstance
which makes it possible to use only one instance of this
class.
Modifier and Type | Method and Description |
---|---|
boolean |
acceptEvent(IOEvent pEvent)
The acceptEvent method will always return true, since the
AllEventsFilter should pass through all events. |
static AllEventsFilter |
getInstance()
Return the global instance of
AllEventsFilter . |
String |
toString() |
public static AllEventsFilter getInstance()
AllEventsFilter
. This can be used by
as many IOEventListeners
as desired.public boolean acceptEvent(IOEvent pEvent)
AllEventsFilter
should pass through all events.acceptEvent
in interface IOEventFilter
pEvent
- the event to check if should be accepted© 1998- 2021 Escenic AS