Posting a message to a component

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


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.