Class JavaScriptProxy

java.lang.Object
io.jenkins.plugins.designlibrary.UISample
io.jenkins.plugins.designlibrary.JavaScriptProxy
All Implemented Interfaces:
ExtensionPoint, Action, Describable<UISample>, ModelObject

@Extension public class JavaScriptProxy extends UISample
"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
  • Constructor Details

    • JavaScriptProxy

      public JavaScriptProxy()
  • Method Details

    • getIconFileName

      public String getIconFileName()
    • getDisplayName

      @NonNull public String 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 interface Action
      Specified by:
      getDisplayName in interface ModelObject
      Overrides:
      getDisplayName in class UISample
      Returns:
      the display name.
    • getDescription

      public String 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 class UISample
      Returns:
      the description of the UI sample.
    • getCategory

      public Category getCategory()
      Description copied from class: UISample
      Retrieves the category of this UI sample. Defaults to Category.COMPONENT.
      Overrides:
      getCategory in class UISample
      Returns:
      the category of the UI sample.
    • increment

      @JavaScriptMethod public int increment(int n)
      The annotation exposes this method to JavaScript proxy.