Package limelight.styles.abstrstyling

Examples of limelight.styles.abstrstyling.StyleValue


  public String toString()
  {
    StringBuilder buffer = new StringBuilder(super.toString());
    for(int i = 0; i < styles.length; i++)
    {
      StyleValue style = styles[i];
      if(style != null)
      {
        StyleAttribute attribute = Style.STYLE_LIST.get(i);
        buffer.append("\n\t").append(attribute.name).append(": ").append(style);
      }
View Full Code Here


    styles = new StyleValue[STYLE_COUNT];
  }

  protected StyleValue get(int key)
  {
    StyleValue style = styles[key];
    return style == null ? null : style;
  }
View Full Code Here

  public void put(StyleAttribute attribute, Object value)
  {
    if(value == null)
      return;

    StyleValue compiledValue = attribute.compile(value);

    StyleValue originalValue = styles[attribute.index];
    styles[attribute.index] = compiledValue;
    if(!Util.equal(originalValue, compiledValue))
      recordChange(attribute, compiledValue);
  }
View Full Code Here

  }

  @Override
  protected void putCompiled(StyleAttribute attribute, StyleValue compiledValue)
  {
    StyleValue originalValue = styles[attribute.index];
    if(!Util.equal(originalValue, compiledValue))
    {
      styles[attribute.index] = compiledValue;
      notifyObserversOfChange(attribute, compiledValue);
    }
View Full Code Here

TOP

Related Classes of limelight.styles.abstrstyling.StyleValue

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.