hudson.console
Class ConsoleAnnotationDescriptor
java.lang.Object
hudson.model.Descriptor<ConsoleNote<?>>
hudson.console.ConsoleAnnotationDescriptor
- All Implemented Interfaces:
- ExtensionPoint, Saveable
- Direct Known Subclasses:
- ExpandableDetailsNote.DescriptorImpl, HudsonExceptionNote.DescriptorImpl, HyperlinkNote.DescriptorImpl, Maven3MojoNote.DescriptorImpl, MavenErrorNote.DescriptorImpl, MavenMojoNote.DescriptorImpl, MavenWarningNote.DescriptorImpl
public abstract class ConsoleAnnotationDescriptor
- extends Descriptor<ConsoleNote<?>>
- implements ExtensionPoint
Descriptor for ConsoleNote
.
- Since:
- 1.349
- Author:
- Kohsuke Kawaguchi
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 |
ConsoleAnnotationDescriptor
public ConsoleAnnotationDescriptor(Class<? extends ConsoleNote<?>> clazz)
ConsoleAnnotationDescriptor
public ConsoleAnnotationDescriptor()
getDisplayName
public abstract String getDisplayName()
- Human readable name of this kind of configurable object.
Users use this name to enable/disable annotations.
- Specified by:
getDisplayName
in class Descriptor<ConsoleNote<?>>
hasScript
public boolean hasScript()
- Returns true if this descriptor has a JavaScript to be inserted on applicable console page.
hasStylesheet
public boolean hasStylesheet()
- Returns true if this descriptor has a stylesheet to be inserted on applicable console page.
doScriptJs
@WebMethod(name="script.js")
public void doScriptJs(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
doStyleCss
@WebMethod(name="style.css")
public void doStyleCss(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
all
public static DescriptorExtensionList<ConsoleNote<?>,ConsoleAnnotationDescriptor> all()
- Returns all the registered
ConsoleAnnotationDescriptor
descriptors.
Copyright © 2004-2013. All Rights Reserved.