Package jenkins.model
Interface ModelObjectWithContextMenu
-
- All Superinterfaces:
ModelObject
- All Known Implementing Classes:
AbstractBuild,AbstractCloudComputer,AbstractCloudImpl,AbstractItem,AbstractProject,AbstractTopLevelItem,Actionable,Build,Cloud,Computer,FreeStyleBuild,FreeStyleProject,Hudson,Hudson.MasterComputer,Jenkins,Jenkins.MasterComputer,Job,Label,LabelAtom,LabelExpression,LabelExpression.And,LabelExpression.Binary,LabelExpression.Iff,LabelExpression.Implies,LabelExpression.Not,LabelExpression.Or,LabelExpression.Paren,ManageJenkinsAction,Project,Queue.BlockedItem,Queue.BuildableItem,Queue.Item,Queue.LeftItem,Queue.NotWaitingItem,Queue.WaitingItem,Run,SlaveComputer,User,ViewJob
public interface ModelObjectWithContextMenu extends ModelObject
ModelObjectthat has context menu in the breadcrumb.When the user is visiting a particular page, all the ancestor objects that has
ModelObjectappears in the breadcrumbs. Among those which that also implementsModelObjectWithContextMenushows the drop-down menu for providing quicker access to the actions to those objects.- Author:
- Kohsuke Kawaguchi
- See Also:
ModelObjectWithChildren
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classModelObjectWithContextMenu.ContextMenuData object that represents the context menu.static interfaceModelObjectWithContextMenu.ContextMenuVisibilityAllows an action to decide whether it will be visible in a context menu.static classModelObjectWithContextMenu.MenuItemMenu item inModelObjectWithContextMenu.ContextMenustatic classModelObjectWithContextMenu.MenuItemType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelObjectWithContextMenu.ContextMenudoContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)Generates the context menu.-
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
-
-
-
Method Detail
-
doContextMenu
ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
Generates the context menu. The typical implementation isreturn new ContextMenu().from(this,request,response);, which implements the default behaviour. SeeModelObjectWithContextMenu.ContextMenu.from(ModelObjectWithContextMenu, StaplerRequest, StaplerResponse)for more details of what it does. This should suit most implementations.- Throws:
Exception
-
-