All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.timepedia.exporter.client.Exportable Maven / Gradle / Ivy

package org.timepedia.exporter.client;

/**
 * Marker interface. To export a class to Javascript, perform the following
 * steps:
 *
 * 
  1. add Exportable as an implemented interface
  2. Choose between a * whitelist or blacklist export policy
  3. If blacklist, add @gwt.export to the * JavaDoc of the class definition and use @gwt.noexport for any methods you do * not wish to be exported. By default, all public methods and static final * fields are exported.
  4. If whitelist, add @gwt.export to each method, field, * constructor you wish to export.
  5. use @gwt.exportPackage foo.bar to * override the generated Javascript package hierarchy
  6. If two methods have * the same export name, you can resolve the conflict by renaming the exported * method, e.g. "@gwt.export addDouble" will export method add(double, double) * as addDouble(double,double)
* *

Finally, somewhere in your entry point class, perform the following: *

Exporter exporter = (Exporter)GWT.create(MyClass.class); * exporter.export(); * * @author Ray Cromwell <[email protected]> */ public interface Exportable { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy