Package limelight.styles.values

Examples of limelight.styles.values.SimpleOnOffValue


{
  public StyleValue compile(Object value)
  {
    String lowerCaseValue = stringify(value).toLowerCase();
    if("on".equals(lowerCaseValue) || "true".equals(lowerCaseValue))
      return new SimpleOnOffValue(true);
    else if("off".equals(lowerCaseValue) || "false".equals(lowerCaseValue))
      return new SimpleOnOffValue(false);
    else
      throw makeError(value);
  }
View Full Code Here

TOP

Related Classes of limelight.styles.values.SimpleOnOffValue

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.