@ExportedBean public static class ModelObjectWithContextMenu.MenuItem extends Object
ModelObjectWithContextMenu.ContextMenu
Modifier and Type | Field and Description |
---|---|
String |
displayName
Human readable caption of the menu item.
|
boolean |
header
True to display this item as a section header.
|
String |
icon
Optional URL to the icon image.
|
boolean |
post
True to make a POST request rather than GET.
|
boolean |
requiresConfirmation
True to require confirmation after a click.
|
ModelObjectWithContextMenu.ContextMenu |
subMenu
If this is a submenu, definition of subitems.
|
String |
url
Target of the link.
|
Constructor and Description |
---|
MenuItem() |
MenuItem(String url,
String icon,
String displayName) |
Modifier and Type | Method and Description |
---|---|
ModelObjectWithContextMenu.MenuItem |
withContextRelativeUrl(String url)
Sets the URL by passing in a URL relative to the context path of Jenkins
|
ModelObjectWithContextMenu.MenuItem |
withDisplayName(ModelObject o) |
ModelObjectWithContextMenu.MenuItem |
withDisplayName(String displayName) |
ModelObjectWithContextMenu.MenuItem |
withIcon(BallColor color) |
ModelObjectWithContextMenu.MenuItem |
withIcon(String icon) |
ModelObjectWithContextMenu.MenuItem |
withStockIcon(String icon)
Sets the icon from core's stock icon
|
ModelObjectWithContextMenu.MenuItem |
withUrl(String url) |
@Exported public String url
@Exported public String displayName
@Exported public String icon
@Exported public boolean post
@Exported public boolean requiresConfirmation
@Exported public boolean header
@Exported(inline=true) public ModelObjectWithContextMenu.ContextMenu subMenu
public ModelObjectWithContextMenu.MenuItem withUrl(String url)
public ModelObjectWithContextMenu.MenuItem withContextRelativeUrl(String url)
public ModelObjectWithContextMenu.MenuItem withIcon(String icon)
public ModelObjectWithContextMenu.MenuItem withIcon(BallColor color)
public ModelObjectWithContextMenu.MenuItem withStockIcon(String icon)
icon
- String like "gear.png" that resolves to 24x24 stock icon in the corepublic ModelObjectWithContextMenu.MenuItem withDisplayName(String displayName)
public ModelObjectWithContextMenu.MenuItem withDisplayName(ModelObject o)
Copyright © 2004–2021. All rights reserved.