Examples of ExValue


Examples of org.zkoss.zk.xel.ExValue

    return _molds != null ?
      _molds.keySet(): (Collection)Collections.EMPTY_LIST;
  }
  public String getWidgetClass(Component comp, String moldName) {
    if (_molds != null) {
      final ExValue wc = (ExValue)_molds.get(moldName);
      if (wc != null) {
        final String s = (String)wc.getValue(_evalr, comp);
        if (s != null)
          return s;
      }
    }
    return getDefaultWidgetClass(comp);
View Full Code Here

Examples of org.zkoss.zk.xel.ExValue

  }
  public String getDefaultWidgetClass() {
    return getDefaultWidgetClass(null);
  }
  public void setDefaultWidgetClass(String widgetClass) {
    final ExValue oldwc = _defWgtClass;
    _defWgtClass = new ExValue(widgetClass, String.class);

    //replace mold's widget class if it is the old default one
    if (oldwc != null && _molds != null)
      for (Iterator it = _molds.entrySet().iterator(); it.hasNext();) {
        final Map.Entry me = (Map.Entry)it.next();
        if (oldwc.equals(me.getValue()))
          me.setValue(_defWgtClass);
      }
  }
View Full Code Here

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

Examples of org.zkoss.zk.xel.ExValue

      //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

Examples of org.zkoss.zk.xel.ExValue

   * 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

Examples of org.zkoss.zk.xel.ExValue

    _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

Examples of org.zkoss.zk.xel.ExValue

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

Examples of org.zkoss.zk.xel.ExValue

      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

Examples of org.zkoss.zk.xel.ExValue

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

Examples of org.zkoss.zk.xel.ExValue

  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
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.