API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.widget.builtin. JOTGoogleMapWidget View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTWidgetBase
          JOTWidgetNoAjaxBase
              JOTTitledBoxWidget
                  JOTGoogleMapWidget
Implements
Subclasses
Description
public class JOTGoogleMapWidget
A widget that renders a google map for one address Expectes the following widgte args: - address - address need to be encoded using JOTWidgetBase.encodeCommas() - gkey: your google Map API key
See also:   
Constructors
public JOTGoogleMapWidget ()
Methods
Hide/Show inherited methods
public String addGoogleMarker (String address, String letter)
public void customizeProperties () [Inherited From JOTTitledBoxWidget] [Specified in JOTWidgetBase]
publicstatic String decodeCommas (String value) [Inherited From JOTWidgetBase]
  Put the commas back after parsing the args.
public void dumpWidgetProperties () [Inherited From JOTWidgetBase]
publicstatic String encodeCommas (String value) [Inherited From JOTWidgetBase]
  When passing arguments to a widget they are comma separated, do if an arg value contains a comma this causes problems, so use encodeCommas(argValue) to encode the commas in your args value.
public void executeAjaxCall (JOTFlowRequest request, HttpServletResponse response) throws Exception [Inherited From JOTWidgetBase]
public String getAjaxAction () [Inherited From JOTWidgetNoAjaxBase]
public String getAjaxCallbackJavascript () [Inherited From JOTWidgetNoAjaxBase] [Specified in JOTWidgetBase]
public String getGoogleInit ()
public String getGoogleMapCanvas (String width, String height)
public String getGoogleScriptString (String googleKey)
public String getHeight () [Inherited From JOTTitledBoxWidget]
public int getId () [Inherited From JOTWidgetBase]
public String getJscriptCallbackFunctionName () [Inherited From JOTWidgetBase]
public String getJscriptFuncName () [Inherited From JOTWidgetBase]
public String getLinkToGoogle (String address)
protectedsynchronized int getNextUniqueId () [Inherited From JOTWidgetBase]
  We want each widget in the "page" to have a unique id, to avoid issues with same widget several time in same page So we create a unique id in the request scope which shoudl provide what we wat here.
public String getOverflow () [Inherited From JOTTitledBoxWidget]
public JOTWidgetBaseProperties getProperties () [Inherited From JOTWidgetBase]
public String getShortName () [Specified in JOTWidgetBase]
public String getTitle () [Specified in JOTTitledBoxWidget]
public String getWidth () [Inherited From JOTTitledBoxWidget]
public void init (HttpServletRequest request, HttpServletResponse response) [Inherited From JOTWidgetBase]
  "Manual" constructor
public void init (JOTView view) [Inherited From JOTWidgetBase]
Standard widdget constructor, calls customizeProperties
public boolean isAjaxEnabled () [Inherited From JOTWidgetNoAjaxBase]
protected Hashtable parseArgs (String args) [Inherited From JOTWidgetBase]
  Parse the args String
public void parseProperties (JOTFlowRequest request) [Inherited From JOTWidgetBase]
public void prepareViewData () throws Exception [Inherited From JOTWidgetBase]
  Will be called when the ajax call is made.
public String render (String args) [Inherited From JOTWidgetBase]
  Will be called by jot, when a widget is found in a view.
public String renderBoxContent (Hashtable args) [Specified in JOTTitledBoxWidget]
public String renderPropertiesScreen (int id) [Inherited From JOTWidgetBase]
public String renderWidget (Hashtable options) [Inherited From JOTTitledBoxWidget] [Specified in JOTWidgetBase]
public boolean validatePermissions ()
public Hashtable widgetAjaxCall (JOTFlowRequest request) [Inherited From JOTWidgetNoAjaxBase] [Specified in JOTWidgetBase]
Fields
Hide/Show inherited fields
protectedfinalstatic Pattern ARG_PATTERN [Inherited From JOTWidgetBase]
public JOTWidgetBaseProperties properties [Inherited From JOTWidgetBase]
public JOTFlowRequest request [Inherited From JOTWidgetBase]
public HttpServletResponse response [Inherited From JOTWidgetBase]
public HttpSession session [Inherited From JOTWidgetBase]
public int uniqueId [Inherited From JOTWidgetBase]
protected JOTView view [Inherited From JOTWidgetBase]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar