public class DesktopLauncherEventHandler extends OpenBusEventHandler
| Constructor and Description |
|---|
DesktopLauncherEventHandler(DesktopLauncher application)
Construtor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fireDesktopShutdownEvent(String desktopId)
Envia pedido de shutdown do desktop-filho.
|
boolean |
fireDesktopVisibilityEvent(boolean flag)
Envia mensagem de visibilidde do desktop
|
protected void |
fireLauncherEndEvent()
Envia evento de encerramento do launcher.
|
boolean |
fireRemoteApplication(String appId)
Envia evento para disparo de aplicação.
|
boolean |
fireRemoteProject(String projectId)
Envia evento para disparo de aplicação.
|
protected DesktopLauncher |
getApplication()
Consulta o atributo (ver documentação de
application). |
protected String |
getClassValueText(Object value)
Obtem um texto representativo da classe do valor.
|
protected String |
getSonId()
Busca (na aplicação) o id do cliente a ser lançado.
|
protected String |
getString(String tag)
Monta um texto de internacionalização.
|
protected String |
getValueText(Object value)
Obtem um texto representativo do valor.
|
void |
init()
Faz a ação inicial (depois da aplicação lançada).
|
protected boolean |
isEventFromMySonId(String sourceId)
Indica que a fonte do evento não é do desktop lançado.
|
boolean |
isNewApplicationReady()
Consulta o atributo (ver documentação de
newApplicationReady). |
boolean |
isNewDesktopReady()
Consulta o atributo (ver documentação de
newDesktopReady). |
boolean |
isNewProjectReady()
Consulta o atributo (ver documentação de
newProjectReady). |
void |
logReceivedEvent(boolean treated,
String sourceId,
String destId,
String type,
Object value)
Método redefinível para gerar log do tratador.
|
void |
logSentEvent(boolean treated,
String sourceId,
String destId,
String type,
Object value)
Método redefinível para gerar log do tratador.
|
boolean |
receiveEventWithBooleanValue(String sourceId,
String destId,
String type,
boolean booleanValue)
Recebe mensagem com valor booleano.
|
boolean |
receiveEventWithNoValue(String sourceId,
String destId,
String type)
Recebe mensagem sem valor
|
boolean |
receiveEventWithStringValue(String sourceId,
String destId,
String type,
String stringValue)
Recebe mensagem com valor string.
|
void |
shutdown()
Faz a ação final (aplicação sendo fechada).
|
protected void |
unlinkToOpenBus()
Desliga conexão com OpenBus.
|
getClientInstanceId, getFatherClientInstanceId, isAnonymousId, isEventFromFatherAndToMe, isEventFromIdentifiedSourceAndToMe, isMyFatherId, isMyId, sendEventWithBooleanValue, sendEventWithNoValue, sendEventWithStringValuepublic DesktopLauncherEventHandler(DesktopLauncher application)
application - a aplicação.public final boolean fireDesktopVisibilityEvent(boolean flag)
flag - indicativopublic final boolean fireRemoteApplication(String appId)
appId - id da aplicação.public final boolean fireRemoteProject(String projectId)
projectId - id do projetoprotected final DesktopLauncher getApplication()
application).protected final String getClassValueText(Object value)
value - o valorprotected final String getSonId()
protected final String getString(String tag)
tag - a tag.protected final String getValueText(Object value)
value - valorpublic final void init()
protected final boolean isEventFromMySonId(String sourceId)
sourceId - id da fontepublic final boolean isNewApplicationReady()
newApplicationReady).public final boolean isNewProjectReady()
newProjectReady).public final boolean isNewDesktopReady()
newDesktopReady).public void logReceivedEvent(boolean treated,
String sourceId,
String destId,
String type,
Object value)
logReceivedEvent in interface OpenBusEventReceiverInterfacelogReceivedEvent in class OpenBusEventHandlertreated - indicativo de tratamentosourceId - id da fonte.destId - id do destino.type - tipovalue - valorpublic void logSentEvent(boolean treated,
String sourceId,
String destId,
String type,
Object value)
logSentEvent in interface OpenBusEventSenderInterfacelogSentEvent in class OpenBusEventHandlertreated - indicativo de tratamentosourceId - id da fonte.destId - id do destino.type - tipovalue - valorpublic boolean receiveEventWithBooleanValue(String sourceId, String destId, String type, boolean booleanValue)
receiveEventWithBooleanValue in interface OpenBusEventReceiverInterfacereceiveEventWithBooleanValue in class OpenBusEventHandlersourceId - id do remetentedestId - id do destinatáriotype - tipobooleanValue - valor booleano.public boolean receiveEventWithNoValue(String sourceId, String destId, String type)
receiveEventWithNoValue in interface OpenBusEventReceiverInterfacereceiveEventWithNoValue in class OpenBusEventHandlersourceId - id do remetentedestId - id do destinatáriotype - tipopublic boolean receiveEventWithStringValue(String sourceId, String destId, String type, String stringValue)
receiveEventWithStringValue in interface OpenBusEventReceiverInterfacereceiveEventWithStringValue in class OpenBusEventHandlersourceId - id do remetentedestId - id do destinatáriotype - tipostringValue - valor stringpublic void shutdown()
throws Exception
Exception - em caso de erro de comunicação.protected final void fireLauncherEndEvent()
protected final void unlinkToOpenBus()
throws csbase.exception.CSBaseException,
RemoteException
csbase.exception.CSBaseException - em caso de exceção com OpenBusRemoteException - em caso de falha de execução remota.public final boolean fireDesktopShutdownEvent(String desktopId)
desktopId - id do desktop a ser morto.Copyright © 2019. All rights reserved.