public class CommandNotificationHandler extends Object implements csbase.logic.NotificationHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CommandListener listener)
Cadastra um novo listener à lista de listeners cadastrados.
|
static CommandNotificationHandler |
getInstance()
Obtém a instância única do
CommandNotificationHandler. |
void |
gotNotification(csbase.logic.Notification data)
Trata o evento da chegada de uma
NotificationData. |
void |
removeListener(CommandListener listener)
Remove um listener da lista de listeners cadastrados.
|
public static CommandNotificationHandler getInstance()
CommandNotificationHandler.CommandNotificationHandler.public void gotNotification(csbase.logic.Notification data)
NotificationData.gotNotification in interface csbase.logic.NotificationHandlerdata - informações sobre o comandopublic void addListener(CommandListener listener)
listener - listenerpublic void removeListener(CommandListener listener)
listener - listenerCopyright © 2018. All rights reserved.