T
- the type of the notified InputHandler
@ParametersAreNonnullByDefault public abstract class AbstractInputNotifier<T extends InputHandler> extends Object implements InputNotifier<T>
InputNotifier
that provides overall behavior for the management of handlers.Constructor and Description |
---|
AbstractInputNotifier()
Constructs a new
AbstractInputNotifier . |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(T handler)
Adds an
InputHandler that will be notified. |
Iterable<T> |
getHandlers()
Returns all registered handlers.
|
boolean |
hasHandler()
Defines if this notifier has at least one
InputHandler to notify. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
notifyAttribute, notifyCharacters, notifyEndDocument, notifyEndElement, notifyReference, notifyStartDocument, notifyStartElement
public AbstractInputNotifier()
AbstractInputNotifier
.public void addHandler(T handler)
InputHandler
that will be notified.
If the handler
is null
, it will be ignored.
addHandler
in interface InputNotifier<T extends InputHandler>
handler
- the handler to addpublic boolean hasHandler()
InputNotifier
InputHandler
to notify.hasHandler
in interface InputNotifier<T extends InputHandler>
true
if this notifier has at least one handler to notify.public Iterable<T> getHandlers()
InputNotifier
getHandlers
in interface InputNotifier<T extends InputHandler>
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.