Examples of Zipper2


Examples of org.ajax4jsf.util.Zipper2

    }

    protected Object deserializeData(byte[] objectArray) {
  Data data = createData();
  if (objectArray != null) {
      Zipper2 zipper2 = new Zipper2(objectArray);
      restoreData(data, zipper2);
  }

  return data;
    }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

   private GradientType gradientType;

   public byte[] toByteArray() {
       if (headerBackgroundColor != null && headerGradientColor != null && gradientType != null) {
     byte[] ret = new byte[7];
     new Zipper2(ret).addColor(headerBackgroundColor.intValue()).addColor(headerGradientColor.intValue()).
     addByte((byte) gradientType.ordinal());
     return ret;
       } else {
     return null;
       }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

 
  @Override
  public byte[] toByteArray() {
            byte[] bs = super.toByteArray();
            byte[] result = new byte[(bs != null ? bs.length : 0) + 4];
      new Zipper2(result).addInt(height).addBytes(bs);

      return result;
  }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

      if (objectArray == null) {
        return null;
      }
     
        MenuNodeImageData mnd = new MenuNodeImageData();
        Zipper2 zipper2 = new Zipper2(objectArray);
        mnd.setGeneralColor(new Integer(zipper2.nextIntColor()));
        mnd.setDisabledColor(new Integer(zipper2.nextIntColor()));
       
      return mnd;
    }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

          tmp = "#4A75B5";
       
        intValue = HtmlColor.decode(tmp).getRGB();
       
        byte[] ret = new byte[6];
        Zipper2 zipper2 = new Zipper2(ret).addColor(intValue);
       
        skinParameter = "tabDisabledTextColor";
        tmp = (String) skin.getParameter(context, skinParameter);
        if (null == tmp || "".equals(tmp)) {
      tmp = (String) defaultSkin.getParameter(context, skinParameter);
    }
        if (tmp == null || "".equals(tmp))
          tmp = "#6A92CF";
        intValue = HtmlColor.decode(tmp).getRGB();
       
        zipper2.addColor(intValue);
       
        return ret;
    }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

  protected Object deserializeData(byte[] objectArray) {
    if (objectArray == null) {
      return null;
    }
   
    return new Integer(new Zipper2(objectArray).nextIntColor());
  }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

      headerTextColor = (String) defaultSkin.getParameter(context, skinParameter);
    }
   
    int intValue = HtmlColor.decode( headerTextColor == null ? "#000000":headerTextColor ).getRGB();
    byte[] ret = new byte[3];
    new Zipper2(ret).addColor(intValue);
   
    return ret;
  }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

  }

  protected Object deserializeData(byte[] objectArray) {
    Data data = new Data();
    if (objectArray != null) {
      Zipper2 zipper2 = new Zipper2(objectArray);
      data.headerBackgroundColor = new Integer(zipper2.nextIntColor());
      data.headerGradientColor = new Integer(zipper2.nextIntColor());
    }

    return data;
  }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

    protected Integer headerBackgroundColor;
    protected Integer headerGradientColor;
    public byte[] toByteArray() {
      if (headerBackgroundColor != null && headerGradientColor != null) {
        byte[] ret = new byte[6];
        new Zipper2(ret).addColor(headerBackgroundColor.intValue()).addColor(headerGradientColor.intValue());
        return ret;
      } else {
        return null;
      }
    }
View Full Code Here

Examples of org.ajax4jsf.util.Zipper2

   
    if (objectArray == null) {
      return null;
    }
   
    return new Zipper2(objectArray).nextColor();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.