Examples of SeparatorData


Examples of org.richfaces.renderkit.html.images.BevelSeparatorImage.SeparatorData

    HtmlSeparator separator = new HtmlSeparator();
   
    byte [] data = (byte []) img.getDataToStore(facesContext, separator);
    assertNotNull(data);
   
    SeparatorData separatorData = (SeparatorData)img.deserializeData(data);
   
    assertNotNull(separatorData);
   
    assertEquals(level3D, separatorData.getLevel3D());
    assertEquals(color1, new Color(separatorData.getBgColor()))
    assertEquals(color2, new Color(separatorData.getGradColor()));
  }
View Full Code Here

Examples of org.richfaces.renderkit.html.images.ToolBarSeparatorImage.SeparatorData

   
    HtmlToolBar toolBar = new HtmlToolBar();
   
    byte [] data = (byte []) img.getDataToStore(facesContext, toolBar);
    assertNotNull(data);
    SeparatorData separatorData = (SeparatorData)img.deserializeData(data);   
   
    assertNotNull(separatorData);
    assertEquals(color1, new Color(separatorData.getHeaderBackgroundColor()));
    assertEquals(color2, new Color(separatorData.getHeaderGradientColor()));
    assertEquals(color3, new Color(separatorData.getHeaderTextColor()));
    assertEquals(Integer.parseInt(headerSizeFont), separatorData.getFontSize());
   
  }
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.