Package io.jenkins.plugins.designlibrary
Class JavaScriptProxy
java.lang.Object
io.jenkins.plugins.designlibrary.UISample
io.jenkins.plugins.designlibrary.JavaScriptProxy
- All Implemented Interfaces:
ExtensionPoint,Action,Describable<UISample>,ModelObject
"Export" Java objects to JavaScript in the browser as a proxy object, so that
you can make ajax-calls to the server later.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the category of this UI sample.Provides a description for the UI sample.Gets the default display name for the UI sample.intincrement(int n) The annotation exposes this method to JavaScript proxy.Methods inherited from class io.jenkins.plugins.designlibrary.UISample
getAll, getDescriptor, getGrouped, getNextPage, getPreviousPage, getPrismConfiguration, getSince, getUrlName
-
Constructor Details
-
JavaScriptProxy
public JavaScriptProxy()
-
-
Method Details
-
getIconFileName
-
getDisplayName
Description copied from class:UISampleGets the default display name for the UI sample. This is typically the simple class name of the implementing class.- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classUISample- Returns:
- the display name.
-
getDescription
Description copied from class:UISampleProvides a description for the UI sample. The description is displayed at the top of every UI page for the sample.- Specified by:
getDescriptionin classUISample- Returns:
- the description of the UI sample.
-
getCategory
Description copied from class:UISampleRetrieves the category of this UI sample. Defaults toCategory.COMPONENT.- Overrides:
getCategoryin classUISample- Returns:
- the category of the UI sample.
-
increment
@JavaScriptMethod public int increment(int n) The annotation exposes this method to JavaScript proxy.
-