this.icon = icon;
}
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();
}