|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.eliasbalasis.tibcopagebus4gwt.client.PageBusEvent
public final class PageBusEvent
Instances of this class cannot be created but a new instance is created and passed as parameter to the related event handler (PageBusListener.onPageBusSubscriptionCallback(PageBusEvent))
Use getSubject()
to extract the message's unique identity
Use getMessage(org.juglar.gwt.jsonizer.client.Jsonizer)
method to extract the message data as a java object
Use getSubscriberData(org.juglar.gwt.jsonizer.client.Jsonizer)
method to extract the data associated upon subscription. (PageBusAdapter.PageBusSubscribe(java.lang.String, java.lang.Object, org.juglar.gwt.jsonizer.client.Jsonizer, java.lang.Object, org.juglar.gwt.jsonizer.client.Jsonizer)
)
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Method Summary | |
---|---|
java.lang.Object |
getMessage(org.juglar.gwt.jsonizer.client.Jsonizer jsonizer)
Extracts the java object representation of the message data using a custom marshaller. |
IPageBusAdapter |
getSender()
A reference to the PageBusAdapter instance which fired the event |
java.lang.String |
getSubject()
|
java.lang.Object |
getSubscriberData(org.juglar.gwt.jsonizer.client.Jsonizer jsonizer)
Extracts the java object representation of the subscriber data using a custom marshaller. The marshaller implementation must match the type of the data associated with the message otherwise a related exception will be thrown |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getSubject()
com.mycompany.mypackage.myevent
or com.mycompany.mypackage.mysubpackage.myevents.event1
public IPageBusAdapter getSender()
public java.lang.Object getMessage(org.juglar.gwt.jsonizer.client.Jsonizer jsonizer) throws PageBusAdapterException
jsonizer
- A reference to the marshaller implementation. See PageBusAdapter for more details
PageBusAdapterException
- If conversion to Java object fails the thrown exception is expected to contain
the originating exception (org.juglar.gwt.jsonizer.client.JsonizerException)
representing the error in more detailpublic java.lang.Object getSubscriberData(org.juglar.gwt.jsonizer.client.Jsonizer jsonizer) throws PageBusAdapterException
jsonizer
- A reference to the marshaller implementation. See PageBusAdapter for more details
PageBusAdapterException
- If conversion to Java object fails the thrown exception is expected to contain
the originating exception (org.juglar.gwt.jsonizer.client.JsonizerException)
representing the error in more detail
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |