public interface ViewGroup extends Saveable, ModelObject, AccessControlled
Views.| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete(View view)
Determine whether a view may be deleted.
|
void |
deleteView(View view)
Deletes a view in this group.
|
ItemGroup<? extends TopLevelItem> |
getItemGroup()
Returns the
ItemGroup from which the views in this group should render items. |
View |
getPrimaryView()
If the view group renders one view in its own URL (like Jenkins top page does),
then that view is called the primary view.
|
String |
getUrl()
Returns the path of this group, relative to the context root,
like "foo/bar/zot/".
|
View |
getView(String name)
Gets a view of the given name.
|
List<Action> |
getViewActions()
Returns actions that should be displayed in views.
|
Collection<View> |
getViews()
Gets all the views in this group.
|
ViewsTabBar |
getViewsTabBar()
Gets the TabBar for the views.
|
void |
onViewRenamed(View view,
String oldName,
String newName)
View calls this method when it's renamed. |
getDisplayNamecheckPermission, getACL, hasPermissionboolean canDelete(View view)
void deleteView(View view) throws IOException
IOExceptionCollection<View> getViews()
View getView(String name)
View getPrimaryView()
If the view group doesn't do such rendering, this method can always return null.
This method was added later to ViewGroup, so old plugins might not be implementing this.
To work around this, Views can use View.getOwnerPrimaryView().
String getUrl()
void onViewRenamed(View view, String oldName, String newName)
View calls this method when it's renamed.
This method is intended to work as a notification to the ViewGroup
(so that it can adjust its internal data structure, for example.)
It is the caller's responsibility to ensure that the new name is a legal view name.
ViewsTabBar getViewsTabBar()
ItemGroup<? extends TopLevelItem> getItemGroup()
ItemGroup from which the views in this group should render items.
Generally speaking, Views render a subset of TopLevelItems that belong to this item group.
This method was added later to ViewGroup, so old plugins might not be implementing this.
To work around this, Views can use View.getOwnerItemGroup().
ModifiableItemGroup (if the container allows arbitrary addition)List<Action> getViewActions()
In this interface, the return value is used read-only. This doesn't prevent subtypes from returning modifiable actions, however.
This method was added later to ViewGroup, so old plugins might not be implementing this.
To work around this, Views can use View.getOwnerViewActions().
Actionable.getActions()Copyright © 2019. All rights reserved.