public interface DynamicMenuContent
Presenter.Popup. If the presenters return an instance of
DynamicMenuContent, then the framework code will use it's methods to populate the menu and keep it uptodate.
|Modifier and Type||Field and Description|
Marker for actions which should be hidden rather than merely disabled.
static final String HIDE_WHEN_DISABLED
Utilities.actionsToPopup(Action,Lookup)will skip over any disabled actions which have this property set to true, unless they implement
Presenter.Popup. This is a convenient way to make context menu items disappear when disabled; for more complex cases you still need to have a popup presenter with dynamic menu content.
synchMenuPresenters()method. If you want different behaviour for menu and popup, use a different implementation returned by
JComponent synchMenuPresenters(JComponent items)
items- the previously used menuitems returned by previous call to
Built on May 26 2015. | Portions Copyright 1997-2015 Oracle. All rights reserved.