public static class PopupMenuUtils.ComponentPopupMenuInvoker extends PopupMenuUtils.PopupMenuInvokerWrapper
PopupMenuInvokerWrapper
for Component
s.
Calls the method ExtensionPopupMenuComponent#isEnableForComponent(Component)
, with the wrapped object as
parameter.
Constructor and Description |
---|
ComponentPopupMenuInvoker(Component component)
Constructs a
ComponentPopupMenuInvoker with the given component as the wrapped object. |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnable(ExtensionPopupMenuComponent menuComponent)
Tells whether the given
menuComponent is enable for the wrapped object. |
getComponent
public ComponentPopupMenuInvoker(Component component)
ComponentPopupMenuInvoker
with the given component
as the wrapped object.component
- the component that will be wrappedIllegalArgumentException
- if the given component
is nullpublic boolean isEnable(ExtensionPopupMenuComponent menuComponent)
PopupMenuUtils.PopupMenuInvokerWrapper
menuComponent
is enable for the wrapped object.isEnable
in class PopupMenuUtils.PopupMenuInvokerWrapper
menuComponent
- the menu component that will be testedtrue
if the menu component is enable for this wrapped object, false
otherwise.