Package limelight.styles.values

Examples of limelight.styles.values.SimpleFontStyleValue


  public StyleValue compile(Object value)
  {
    String lowerCase = stringify(value).toLowerCase().trim();

    if("plain".equals(lowerCase))
      return new SimpleFontStyleValue("plain");
    else
    {
      String[] tokens = lowerCase.split(" ");
      for(String token : tokens)
      {
        if(!"bold".equals(token) && !"italic".equals(token))
          throw makeError(value);
      }
      return new SimpleFontStyleValue(lowerCase);
    }

  }
View Full Code Here

TOP

Related Classes of limelight.styles.values.SimpleFontStyleValue

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.