jenkins.plugins.ui_samples
Class JavaScriptProxy

java.lang.Object
  extended by jenkins.plugins.ui_samples.UISample
      extended by jenkins.plugins.ui_samples.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

Nested Class Summary
static class JavaScriptProxy.DescriptorImpl
           
 
Nested classes/interfaces inherited from class jenkins.plugins.ui_samples.UISample
UISample.SourceFile
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
JavaScriptProxy()
           
 
Method Summary
 String getDescription()
          Returns a paragraph of natural text that describes this sample.
 int increment(int n)
          The annotation exposes this method to JavaScript proxy.
 
Methods inherited from class jenkins.plugins.ui_samples.UISample
all, doSourceFile, getDescriptor, getDisplayName, getIconFileName, getSourceFiles, getUrlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptProxy

public JavaScriptProxy()
Method Detail

getDescription

public String getDescription()
Description copied from class: UISample
Returns a paragraph of natural text that describes this sample. Interpreted as HTML.

Specified by:
getDescription in class UISample

increment

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



Copyright © 2004-2012. All Rights Reserved.