Examples of ExValue


Examples of org.zkoss.zk.xel.ExValue

          throw new IllegalArgumentException("String is expected, not "+nm);
        if (!(val instanceof String))
          throw new IllegalArgumentException("String is expected, not "+val);

        _attrs.add(new Object[] {
          nm, new ExValue((String)val, String.class)});
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

  public WidgetAttribute(EvaluatorRef evalr, String name, String value, ConditionImpl cond) {
    if (name == null || value == null || (evalr == null && cond != null))
      throw new IllegalArgumentException();
    _evalr = evalr;
    _name = name;
    _value = value != null ? new ExValue(value, String.class): null;
    _cond = cond;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

    if (name == null || name.length() == 0 || value == null)
      throw new IllegalArgumentException();

    _name = name;
    _evalr = evalr;
    _value = new ExValue(value, Object.class);
    _append = append != null ? new ExValue(append, Boolean.class): null;
    _cond = cond;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

  public WidgetListener(EvaluatorRef evalr, String name, String script, ConditionImpl cond) {
    if (name == null || script == null || (evalr == null && cond != null))
      throw new IllegalArgumentException();
    _evalr = evalr;
    _name = name;
    _script = script != null ? new ExValue(script, String.class): null;
    _cond = cond;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

   * @param contentType the content type. It may coontain EL expressions.
   * @since 3.0.0
   */
  public void setContentType(String contentType) {
    _contentType = contentType != null && contentType.length() > 0 ?
      new ExValue(contentType, String.class): null;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

   * @param docType the doc type. It may coontain EL expressions.
   * @since 3.0.0
   */
  public void setDocType(String docType) {
    _docType = docType != null && docType.length() > 0 ?
      new ExValue(docType, String.class): null;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

   * <p>Default: null (i.e., nothing generated)
   * @since 3.0.0
   */
  public void setFirstLine(String firstLine) {
    _firstLine = firstLine != null && firstLine.length() > 0 ?
      new ExValue(firstLine, String.class): null;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

        return; //nothing to
      _rootAttrs = new LinkedHashMap();
    }

    if (value == null) _rootAttrs.remove(name);
    else _rootAttrs.put(name, new ExValue(value, String.class));
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

   * @param cond the condition.
   * Note: If null (not specified), it is considered effective.
   */
  public void setIf(String cond) {
    _if = cond != null && cond.length() > 0 ?
      new ExValue(cond, Boolean.class): null;
  }
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

   * @param cond the condition.
   * Note: If null (not specified), it is considered ineffective.
   */
  public void setUnless(String cond) {
    _unless = cond != null && cond.length() > 0 ?
      new ExValue(cond, Boolean.class): null;
  }
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.