I'll try rephrasing.

Although I hadn't used MenuButtons before, I was aware of the MenuHandler
interface.
As the name suggested it handled Menus, I thought it would define some kind
of a configureMenuButton() method similar to configureMenuBar() and
configureContextMenu().
This is purely based on the class names - MenuBar & MenuButton.

My expectation was that *if* such a method existed, it would be used to
configure the menu to be displayed by a MenuButton prior to the MenuButton's
popup opening.

*If* a MenuHandler implementation contained such a method, I would only
expect that method to be executed in the above scenario, ie when that menu
handler was set for a MenuButton instance.  It would simply be ignored for
any other Components.


I just expected a callback similar to configureContextMenu/configureMenuBar
to exist *somewhere*, and be designed for use in the scenario Edvin
described.  Perhaps it would be defined in a MenuButton.Handler interface,
but the generic 'MenuHandler' name suggested that would  be the obvious
place to look.  Edvin mentioned early on in the thread that it was where he
looked too.

All of this derives from my take on the general consistency throughout
Pivot.

Chris

On 24 June 2011 21:55, Greg Brown <[email protected]> wrote:

> > When Edvin asked the question, my first thought was that MenuButton
> probably had setMenuHandler() method, and MenuHandler had a corresponding
> configureMenuButton() method.
> >
> > Following activation of the MenuButton, the configureMenuButton() would
> be called to populate the menu
>
> OK, but a menu button can be attached to any component. What would it do
> for non-MenuButton components?
>
>
>

Reply via email to