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 classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
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.int
increment
(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:UISample
Gets the default display name for the UI sample. This is typically the simple class name of the implementing class.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classUISample
- Returns:
- the display name.
-
getDescription
Description copied from class:UISample
Provides a description for the UI sample. The description is displayed at the top of every UI page for the sample.- Specified by:
getDescription
in classUISample
- Returns:
- the description of the UI sample.
-
getCategory
Description copied from class:UISample
Retrieves the category of this UI sample. Defaults toCategory.COMPONENT
.- Overrides:
getCategory
in classUISample
- Returns:
- the category of the UI sample.
-
increment
@JavaScriptMethod public int increment(int n) The annotation exposes this method to JavaScript proxy.
-