Package org.zkoss.zk.xel

Examples of org.zkoss.zk.xel.ExValue


   * EL expressions are allowed.
   * @since 5.0.2
   */
  public void setWidgetClass(String wgtcls) {
    _wgtcls = wgtcls != null && wgtcls.length() > 0 ?
      new ExValue(wgtcls, String.class): null;
  }
View Full Code Here


      //forEach="" means to iterate a single-element array and the value
      //is empty
    _forEachInfo = _forEach == null ? null:
      new ExValue[] {
        begin != null && begin.length() > 0 ?
          new ExValue(begin, Integer.class): null,
        end != null && end.length() > 0 ?
          new ExValue(end, Integer.class): null};
  }
View Full Code Here

   * a class name,  or a component instance.
   * @since 3.6.0
   */
  public void setImplementation(String expr) {
    _impl = expr != null && expr.length() > 0 ?
      new ExValue(expr, Object.class): null;
  }
View Full Code Here

    _evalr = evalr;
    _name = name;

    _cond = cond;
    _navval = navval;
    _value = navval != null ? null: new ExValue(value, Object.class);
      //type will be fixed when mapped to a method
  }
View Full Code Here

        return cls;
      } catch (ClassNotFoundException ex) {
        throw new ClassNotFoundException("Class not found: "+clsnm, ex);
      }
    } else {
      return new ExValue(clsnm, String.class);
    }
  }
View Full Code Here

      throw new IllegalArgumentException("null");

    //TODO: use url's extension to determine zslang
    _evalr = evalr;
    _zslang = zslang;
    _url = new ExValue(url, String.class);
    _cnt = null;
    _locator = locator;
    _cond = cond;
  }
View Full Code Here

        _mapper = cls;
      } catch (ClassNotFoundException ex) {
        throw new ClassNotFoundException("Class not found: "+clsnm, ex);
      }
    } else {
      _mapper = new ExValue(clsnm, String.class);
    }
  }
View Full Code Here

  private final ConditionImpl _cond;

  public ForwardInfo(String uri, ConditionImpl cond) {
    if (uri == null || uri.length() == 0)
      throw new IllegalArgumentException();
    _uri = new ExValue(uri, String.class);
    _cond = cond;
  }
View Full Code Here

          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

  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

TOP

Related Classes of org.zkoss.zk.xel.ExValue

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.