Package org.jfree.layouting.input.style.values

Examples of org.jfree.layouting.input.style.values.CSSStringValue


  {
    final CSSNumericValue nval;
    if (value instanceof CSSStringValue)
    {
      // I shouldn't do this, but ..
      final CSSStringValue strVal = (CSSStringValue) value;
      nval = FunctionUtilities.parseNumberValue(strVal.getValue());
    }
    else if (value instanceof CSSNumericValue == false)
    {
      throw new FunctionEvaluationException("Expected a number");
    }
View Full Code Here


      if (CSSValueResolverUtility.isURI(item))

      {

        CSSStringValue svalue = (CSSStringValue) item;

        try

        {

          ResourceKey sourceURL = process.getResourceManager().deriveKey

                  (baseURL, svalue.getValue());

          // todo: We have to rethink the image feeding ..

//          backgroundSpecification.setBackgroundImage
View Full Code Here

    if (content instanceof CSSStringValue)

    {

      CSSStringValue sval = (CSSStringValue) content;

      if (CSSStringType.STRING.equals(sval.getType()))

      {

        return new StaticTextToken(sval.getValue());

      }

      else
View Full Code Here

      else if (value instanceof CSSStringValue)

      {

        CSSStringValue strval = (CSSStringValue) value;

        return new StaticTextToken(strval.getValue());

      }

      else if (value instanceof CSSRawValue)
View Full Code Here

      {
        contentList.add(new CSSConstant(value.getStringValue()));
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_URI)
      {
        final CSSStringValue uriValue = CSSValueFactory.createUriValue(value);
        if (uriValue == null)
        {
          return null;
        }
        contentList.add(uriValue);
View Full Code Here

  protected CSSValue lookupValue(final LexicalUnit value)
  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
    {
      return new CSSStringValue(CSSStringType.STRING, value.getStringValue());
    }
    return super.lookupValue(value);
  }
View Full Code Here

        }
        contentList.add(o);
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
      {
        contentList.add(new CSSStringValue(CSSStringType.STRING, value.getStringValue()));
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_URI)
      {
        final CSSStringValue uriValue = CSSValueFactory.createUriValue(value);
        if (uriValue == null)
        {
          return null;
        }
        contentList.add(uriValue);
View Full Code Here

    tokenMapping.put(ContentValues.NO_CLOSE_QUOTE, new CloseQuoteToken(true));



    final CSSStringValue param =

        new CSSStringValue(CSSStringType.STRING, "list-item");

    listCounter = new CSSFunctionValue("counter", new CSSValue[]{param});


View Full Code Here

      if (content instanceof CSSStringValue)

      {

        CSSStringValue sval = (CSSStringValue) content;

        if (CSSStringType.STRING.equals(sval.getType()))

        {

          return new StaticTextToken(sval.getValue());

        }

        else
View Full Code Here

  protected CSSValue parseFirstPosition(final LexicalUnit value)
  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
    {
      return new CSSStringValue (CSSStringType.STRING, value.getStringValue());
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.input.style.values.CSSStringValue

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.