Package org.wicketstuff.openlayers.js

Examples of org.wicketstuff.openlayers.js.ObjectLiteral


  protected String getJSOptionsMap (Map<String, String>options) {
   
    if (options == null || options.size() == 0)
      return null;

    ObjectLiteral builder = new ObjectLiteral();
   
    for (String key : options.keySet()) {
   
      builder.set(key, options.get(key));
     
    }
   
    return builder.toJS();
  }
View Full Code Here


 
  private Icon icon = null;

  public String getJSconstructor()
  {
    ObjectLiteral literal = new ObjectLiteral();

    if (title != null)
    {
      literal.setString("title", title);
    }
    if (!clickable)
    {
      literal.set("clickable", "false");
    }
    if (draggable)
    {
      literal.set("draggable", "true");
    }
    if (!bouncy)
    {
      literal.set("bouncy", "false");
    }
    if (autoPan)
    {
      literal.set("autoPan", "true");
    }
    if(icon != null)
    {
      literal.set("icon", icon.getJSconstructor());
    }

    return literal.toJS();
  }
View Full Code Here

  {

    if (options == null || options.size() == 0)
      return null;

    ObjectLiteral builder = new ObjectLiteral();

    for (Map.Entry<String, String> entry : options.entrySet())
    {

      builder.set(entry.getKey(), entry.getValue());

    }

    return builder.toJS();
  }
View Full Code Here

  private Icon icon = null;

  public String getJSconstructor()
  {
    ObjectLiteral literal = new ObjectLiteral();

    if (title != null)
    {
      literal.setString("title", title);
    }
    if (!clickable)
    {
      literal.set("clickable", "false");
    }
    if (draggable)
    {
      literal.set("draggable", "true");
    }
    if (!bouncy)
    {
      literal.set("bouncy", "false");
    }
    if (autoPan)
    {
      literal.set("autoPan", "true");
    }
    if (icon != null)
    {
      literal.set("icon", icon.getJSconstructor());
    }

    return literal.toJS();
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers.js.ObjectLiteral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.