Package hudson.model
Class ViewDescriptor
- Direct Known Subclasses:
AllView.DescriptorImpl
,ListView.DescriptorImpl
,MyView.DescriptorImpl
,ProxyView.DescriptorImpl
Descriptor
for View
.- Since:
- 1.269
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FormValidation
checkDisplayName
(View view, String value) Validation of the display name field.doAutoCompleteCopyNewItemFrom
(String value, ItemGroup<?> container) Auto-completion for the "copy from" field in the new job page.PossibleListViewColumnDescriptor
s that can be used with this view.Returns the human-readable name of this type of view.PossibleViewJobFilter
types that can be used with this view.final String
Jelly fragment included in the "new view" page.boolean
isApplicable
(Class<? extends ViewGroup> ownerType) boolean
isApplicableIn
(ViewGroup owner) boolean
Some special views are not instantiable, and for those this method returns false.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ViewDescriptor
-
ViewDescriptor
protected ViewDescriptor()
-
-
Method Details
-
getDisplayName
Returns the human-readable name of this type of view. Used in the view creation screen. The string should look like "Abc Def Ghi".- Overrides:
getDisplayName
in classDescriptor<View>
-
isInstantiable
public boolean isInstantiable()Some special views are not instantiable, and for those this method returns false. -
getNewViewDetailPage
Jelly fragment included in the "new view" page. -
doAutoCompleteCopyNewItemFrom
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public AutoCompletionCandidates doAutoCompleteCopyNewItemFrom(@QueryParameter String value, @AncestorInPath ItemGroup<?> container) Auto-completion for the "copy from" field in the new job page. -
getColumnsDescriptors
PossibleListViewColumnDescriptor
s that can be used with this view. -
getJobFiltersDescriptors
PossibleViewJobFilter
types that can be used with this view. -
checkDisplayName
Validation of the display name field.- Parameters:
view
- the view to check the new display name of.value
- the proposed new display name.- Returns:
- the validation result.
- Since:
- 2.37
-
isApplicable
Returns true if thisView
type is applicable to the givenViewGroup
type.Default implementation returns
true
always.- Returns:
- true to indicate applicable, in which case the view will be instantiable within the type of owner.
- Since:
- 2.37
-
isApplicableIn
Returns true if thisView
type is applicable in the specificViewGroup
.Default implementation returns
isApplicable(Class)
for theViewGroup
’sObject.getClass()
.- Returns:
- true to indicate applicable, in which case the view will be instantiable within the given owner.
- Since:
- 2.37
-