static {
   _propMap.put("dir", PropEnum.DIR);
   _propMap.put("errorClass", PropEnum.ERROR_CLASS);
   _propMap.put("errorStyle", PropEnum.ERROR_STYLE);
   _propMap.put("fatalClass", PropEnum.FATAL_CLASS);
   _propMap.put("fatalStyle", PropEnum.FATAL_STYLE);
   _propMap.put("infoClass", PropEnum.INFO_CLASS);
   _propMap.put("infoStyle", PropEnum.INFO_STYLE);
   _propMap.put("lang", PropEnum.LANG);
   _propMap.put("style", PropEnum.STYLE);
   _propMap.put("styleClass", PropEnum.STYLE_CLASS);
   _propMap.put("title", PropEnum.TITLE);
   _propMap.put("tooltip", PropEnum.TOOLTIP);
   _propMap.put("warnClass", PropEnum.WARN_CLASS);
   _propMap.put("warnStyle", PropEnum.WARN_STYLE);
 }
Beispiel #2
0
  /** Sets the value expression with the given name. */
  @Override
  public void setValueExpression(String name, ValueExpression expr) {
    PropEnum prop = _propMap.get(name);

    if (prop != null) {
      switch (prop) {
        case DIR:
          if (expr != null && expr.isLiteralText()) {
            _dir = Util.evalString(expr);
            return;
          } else _dirExpr = expr;
          break;

        case ESCAPE:
          if (expr != null && expr.isLiteralText()) {
            _escape = Util.evalBoolean(expr);
            return;
          } else _escapeExpr = expr;
          break;

        case LANG:
          if (expr != null && expr.isLiteralText()) {
            _lang = Util.evalString(expr);
            return;
          } else _langExpr = expr;
          break;

        case STYLE:
          if (expr != null && expr.isLiteralText()) {
            _style = Util.evalString(expr);
            return;
          } else _styleExpr = expr;
          break;

        case STYLE_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _styleClass = Util.evalString(expr);
            return;
          } else _styleClassExpr = expr;
          break;

        case TITLE:
          if (expr != null && expr.isLiteralText()) {
            _title = Util.evalString(expr);
            return;
          } else _titleExpr = expr;
          break;
      }
    }

    super.setValueExpression(name, expr);
  }
Beispiel #3
0
 static {
   _propMap.put("dir", PropEnum.DIR);
   _propMap.put("escape", PropEnum.ESCAPE);
   _propMap.put("lang", PropEnum.LANG);
   _propMap.put("style", PropEnum.STYLE);
   _propMap.put("styleClass", PropEnum.STYLE_CLASS);
   _propMap.put("title", PropEnum.TITLE);
 }
  /** Returns the value expression with the given name. */
  @Override
  public ValueExpression getValueExpression(String name) {
    PropEnum prop = _propMap.get(name);

    if (prop != null) {
      switch (prop) {
        case DIR:
          return _dirExpr;
        case ERROR_CLASS:
          return _errorClassExpr;
        case ERROR_STYLE:
          return _errorStyleExpr;
        case FATAL_CLASS:
          return _fatalClassExpr;
        case FATAL_STYLE:
          return _fatalStyleExpr;
        case INFO_CLASS:
          return _infoClassExpr;
        case INFO_STYLE:
          return _infoStyleExpr;
        case LANG:
          return _langExpr;
        case STYLE:
          return _styleExpr;
        case STYLE_CLASS:
          return _styleClassExpr;
        case TITLE:
          return _titleExpr;
        case WARN_CLASS:
          return _warnClassExpr;
        case WARN_STYLE:
          return _warnStyleExpr;
        case TOOLTIP:
          return _tooltipExpr;
      }
    }

    return super.getValueExpression(name);
  }
Beispiel #5
0
  /** Returns the value expression with the given name. */
  @Override
  public ValueExpression getValueExpression(String name) {
    PropEnum prop = _propMap.get(name);

    if (prop != null) {
      switch (prop) {
        case DIR:
          return _dirExpr;
        case ESCAPE:
          return _escapeExpr;
        case LANG:
          return _langExpr;
        case STYLE:
          return _styleExpr;
        case STYLE_CLASS:
          return _styleClassExpr;
        case TITLE:
          return _titleExpr;
      }
    }

    return super.getValueExpression(name);
  }
  /** Sets the value expression with the given name. */
  @Override
  public void setValueExpression(String name, ValueExpression expr) {
    PropEnum prop = _propMap.get(name);

    if (prop != null) {
      switch (prop) {
        case DIR:
          if (expr != null && expr.isLiteralText()) {
            _dir = Util.evalString(expr);
            return;
          } else _dirExpr = expr;
          break;

        case ERROR_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _errorClass = Util.evalString(expr);
            return;
          } else _errorClassExpr = expr;
          break;

        case ERROR_STYLE:
          if (expr != null && expr.isLiteralText()) {
            _errorStyle = Util.evalString(expr);
            return;
          } else _errorStyleExpr = expr;
          break;

        case FATAL_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _fatalClass = Util.evalString(expr);
            return;
          } else _fatalClassExpr = expr;
          break;

        case FATAL_STYLE:
          if (expr != null && expr.isLiteralText()) {
            _fatalStyle = Util.evalString(expr);
            return;
          } else _fatalStyleExpr = expr;
          break;

        case INFO_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _infoClass = Util.evalString(expr);
            return;
          } else _infoClassExpr = expr;
          break;

        case INFO_STYLE:
          if (expr != null && expr.isLiteralText()) {
            _infoStyle = Util.evalString(expr);
            return;
          } else _infoStyleExpr = expr;
          break;

        case LANG:
          if (expr != null && expr.isLiteralText()) {
            _lang = Util.evalString(expr);
            return;
          } else _langExpr = expr;
          break;

        case STYLE:
          if (expr != null && expr.isLiteralText()) {
            _style = Util.evalString(expr);
            return;
          } else _styleExpr = expr;
          break;

        case STYLE_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _styleClass = Util.evalString(expr);
            return;
          } else _styleClassExpr = expr;
          break;

        case TITLE:
          if (expr != null && expr.isLiteralText()) {
            _title = Util.evalString(expr);
            return;
          } else _titleExpr = expr;
          break;

        case TOOLTIP:
          if (expr != null && expr.isLiteralText()) {
            _tooltip = Util.evalBoolean(expr);
            return;
          } else _tooltipExpr = expr;
          break;

        case WARN_CLASS:
          if (expr != null && expr.isLiteralText()) {
            _warnClass = Util.evalString(expr);
            return;
          } else _warnClassExpr = expr;
          break;

        case WARN_STYLE:
          if (expr != null && expr.isLiteralText()) {
            _warnStyle = Util.evalString(expr);
            return;
          } else _warnStyleExpr = expr;
          break;
      }
    }

    super.setValueExpression(name, expr);
  }