Monday, February 22, 2016

EventBus and orientation changes for devices

Hello all,

           I just started to work with EventBus and don't feel it well. I have to implement code that detects device orientation change (landscape or portrait) and re-draw UI depending on that change. I have found example at GWT samples (MobileWebApp), but implementation is a bit hard to understand. Shouldn't EventBus fire such events by itself ? Why do I need interfaces like Command and ComandSet and 2 different commands when it should be necessary just 1 event (orientationChanged) and property isPortrait (true/false)?  General explanation would be very helpful.

Thank you.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment