hudson.model
Class ViewDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<View>
      extended by hudson.model.ViewDescriptor
All Implemented Interfaces:
Saveable
Direct Known Subclasses:
AllView.DescriptorImpl, ListView.DescriptorImpl, MyView.DescriptorImpl, ProxyView.DescriptorImpl, TreeView.DescriptorImpl

public abstract class ViewDescriptor
extends Descriptor<View>

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
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
protected ViewDescriptor()
           
protected ViewDescriptor(Class<? extends View> clazz)
           
 
Method Summary
 AutoCompletionCandidates doAutoCompleteCopyNewItemFrom(String value)
          Auto-completion for the "copy from" field in the new job page.
 List<Descriptor<ListViewColumn>> getColumnsDescriptors()
          Possible ListViewColumnDescriptors that can be used with this view.
abstract  String getDisplayName()
          Returns the human-readable name of this type of view.
 List<Descriptor<ViewJobFilter>> getJobFiltersDescriptors()
          Possible ViewJobFilter types that can be used with this view.
 String getNewViewDetailPage()
          Jelly fragment included in the "new view" page.
 boolean isInstantiable()
          Some special views are not instantiable, and for those this method returns false.
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewDescriptor

protected ViewDescriptor(Class<? extends View> clazz)

ViewDescriptor

protected ViewDescriptor()
Method Detail

getDisplayName

public abstract String 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".

Specified by:
getDisplayName in class Descriptor<View>

isInstantiable

public boolean isInstantiable()
Some special views are not instantiable, and for those this method returns false.


getNewViewDetailPage

public final String getNewViewDetailPage()
Jelly fragment included in the "new view" page.


doAutoCompleteCopyNewItemFrom

public AutoCompletionCandidates doAutoCompleteCopyNewItemFrom(@QueryParameter
                                                              String value)
Auto-completion for the "copy from" field in the new job page.


getColumnsDescriptors

public List<Descriptor<ListViewColumn>> getColumnsDescriptors()
Possible ListViewColumnDescriptors that can be used with this view.


getJobFiltersDescriptors

public List<Descriptor<ViewJobFilter>> getJobFiltersDescriptors()
Possible ViewJobFilter types that can be used with this view.



Copyright © 2004-2013. All Rights Reserved.