Examples of ObjectLiteral


Examples of org.wicketstuff.openlayers.js.ObjectLiteral

 
  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

Examples of org.wicketstuff.openlayers.js.ObjectLiteral

  {

    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

Examples of org.wicketstuff.openlayers.js.ObjectLiteral

  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

Examples of prefuse.data.expression.ObjectLiteral

    /**
     * Create a new GroupExpression over the given group name.
     * @param group the data group name
     */
    protected GroupExpression(String group) {
        m_group = new ObjectLiteral(group);
    }
View Full Code Here

Examples of prefuse.data.expression.ObjectLiteral

     * @param p the Predicate condition
     * @param val the associated Object value
     */
    public void add(Predicate p, Object val) {
        if ( m_tail == null ) {
            m_tail = new IfExpression(p, new ObjectLiteral(val), m_head);
            m_head = m_tail;
        } else {
            IfExpression ie = new IfExpression(p, new ObjectLiteral(val),
                                               m_tail.getElseExpression());
            m_tail.setElseExpression(ie);
            m_tail = ie;
        }
    }
View Full Code Here

Examples of prefuse.data.expression.ObjectLiteral

        while ( expr instanceof IfExpression ) {
            IfExpression ifex = (IfExpression)expr;
            Predicate test = (Predicate)ifex.getTestPredicate();
            if ( p.equals(test) ) {
                Expression elseex = ifex.getElseExpression();
                ifex.setElseExpression(new ObjectLiteral(null));
                if ( prev != null ) {
                    prev.setElseExpression(elseex);
                    if ( ifex == m_tail )
                        m_tail = prev;
                } else {
View Full Code Here

Examples of prefuse.data.expression.ObjectLiteral

   
    /**
     * Remove all rules from the predicate chain.
     */
    public void clear() {
        m_head = new ObjectLiteral(null);
        m_tail = null;
    }
View Full Code Here

Examples of prefuse.data.expression.ObjectLiteral

                 {if (true) return new NumericLiteral(Double.parseDouble(t.image));}
      break;
    case STRING:
      t = jj_consume_token(STRING);
                String s = unescape(t.image.substring(1, t.image.length()-1));
                {if (true) return new ObjectLiteral(s);}
      break;
    case TRUE:
      jj_consume_token(TRUE);
             {if (true) return new BooleanLiteral(true);}
      break;
    case FALSE:
      jj_consume_token(FALSE);
              {if (true) return new BooleanLiteral(false);}
      break;
    case NULL:
      jj_consume_token(NULL);
             {if (true) return new ObjectLiteral(null);}
      break;
    default:
      jj_la1[15] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
View Full Code Here

Examples of wicket.contrib.gmap.js.ObjectLiteral

    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();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.