Posting a message to a component


#1

Why is MessageListener inherited protected? Is there another mechanism to send arbitrary messages to components?

TIA
/R


#2

It’s protected, not private, so you can still override handleMessage() if you need to. Be sure to call the superclass’s version though, as it relies on messages for various tasks.

Or if you just need a simple callback, you can use postCommandMessage instead.


#3