public interface ModelObjectWithContextMenu extends ModelObject
ModelObject
that has context menu in the breadcrumb.
When the user is visiting a particular page, all the ancestor objects that has ModelObject
appears in the breadcrumbs. Among those which that also implements ModelObjectWithContextMenu
shows the drop-down menu for providing quicker access to the actions to those objects.
ModelObjectWithChildren
Modifier and Type | Interface and Description |
---|---|
static class |
ModelObjectWithContextMenu.ContextMenu
Data object that represents the context menu.
|
static interface |
ModelObjectWithContextMenu.ContextMenuVisibility
Allows an action to decide whether it will be visible in a context menu.
|
static class |
ModelObjectWithContextMenu.MenuItem
Menu item in
ModelObjectWithContextMenu.ContextMenu |
Modifier and Type | Method and Description |
---|---|
ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates the context menu.
|
getDisplayName
ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
return new ContextMenu().from(this,request,response);
,
which implements the default behaviour. See ModelObjectWithContextMenu.ContextMenu.from(ModelObjectWithContextMenu, StaplerRequest, StaplerResponse)
for more details of what it does. This should suit most implementations.Exception
Copyright © 2004–2021. All rights reserved.