Package org.richfaces.skin

Examples of org.richfaces.skin.Skin$Preferable


    }

    @PostConstructResource
    public void initialize() {
        FacesContext context = FacesContext.getCurrentInstance();
        Skin skin = SkinFactory.getInstance(context).getSkin(context);
        Skin defaultSkin = SkinFactory.getInstance(context).getDefaultSkin(context);

        this.headerTextColor = skin.getColorParameter(context, Skin.HEADER_TEXT_COLOR);
        if (this.headerTextColor == null) {
            this.headerTextColor = defaultSkin.getColorParameter(context, Skin.HEADER_TEXT_COLOR);
        }
    }
View Full Code Here


    }

    @PostConstructResource
    public final void initialize() {
        FacesContext context = FacesContext.getCurrentInstance();
        Skin skin = SkinFactory.getInstance(context).getSkin(context);
        Skin defaultSkin = SkinFactory.getInstance(context).getDefaultSkin(context);

        this.headerTextColor = skin.getColorParameter(context, Skin.HEADER_BACKGROUND_COLOR);
        if (this.headerTextColor == null) {
            this.headerTextColor = defaultSkin.getColorParameter(context, Skin.HEADER_BACKGROUND_COLOR);
        }

        this.headerBackgroundColor = skin.getColorParameter(context, Skin.SELECT_CONTROL_COLOR);
        if (this.headerBackgroundColor == null) {
            this.headerBackgroundColor = defaultSkin.getColorParameter(context, Skin.SELECT_CONTROL_COLOR);
        }
    }
View Full Code Here

  protected Class getComponentClass() {
    return org.richfaces.component.UIToolTip.class;
  }

  public String getBgColor(FacesContext context, UIComponent component){
    Skin skin = getSkin(context);
    String color = (String) skin.getParameter(context,"headerBackgroundColor");
    return color;
  }
View Full Code Here

    String color = (String) skin.getParameter(context,"headerBackgroundColor");
    return color;
  }

  public String getColor(FacesContext context, UIComponent component){
    Skin skin = getSkin(context);
    String color = (String) skin.getParameter(context,"headerTextColor");
    return color;
  }
View Full Code Here

  protected Class getComponentClass() {
    return org.richfaces.component.UIToolTip.class;
  }

  public String getBgColor(FacesContext context, UIComponent component){
    Skin skin = getSkin(context);
    String color = (String) skin.getParameter(context,"headerBackgroundColor");
    return color;
  }
View Full Code Here

    String color = (String) skin.getParameter(context,"headerBackgroundColor");
    return color;
  }

  public String getColor(FacesContext context, UIComponent component){
    Skin skin = getSkin(context);
    String color = (String) skin.getParameter(context,"headerTextColor");
    return color;
  }
View Full Code Here

                                     final UIComponent component) {
        String opacity = (String) component.getAttributes().get("shadowOpacity");
        String filterOpacity;

        if (null == opacity) {
            Skin skin = SkinFactory.getInstance().getSkin(context);
            opacity = (String) skin.getParameter(context, "shadowOpacity");
        }
        try {
            Double op = Double.valueOf(opacity);
            filterOpacity = Integer.toString(op.intValue() * 10);
            opacity = Double.toString(op.doubleValue() / 10);
View Full Code Here

  protected Dimension getDimensions(ResourceContext resourceContext) {
    return DIMENSIONS;
  }
 
  protected Object getDataToStore(FacesContext context, Object data) {
    Skin skin = SkinFactory.getInstance().getSkin(context);
    Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
   
    byte [] ret = new byte[3];
    Color color = null;
    Zipper2 zipper = new Zipper2(ret);
   
    String htmlColor = (String) skin.getParameter(context, COLOR_SKIN_PARAM);
    if (null == htmlColor || "".equals(htmlColor))
      htmlColor = (String) defaultSkin.getParameter(context, COLOR_SKIN_PARAM);
   
    if (htmlColor == null) {
      htmlColor = DEFAULT_HTML_COLOR;
    }
   
View Full Code Here

  protected Object getDataToStore(FacesContext context, Object data) {
    return storeData(context, ICON_COLOR, BACKGROUND_COLOR, BORDER_COLOR);
  }
   
  protected Object storeData(FacesContext context, String colorSkinParam, String backgroundSkinParam, String borderSkinParam) {
    Skin skin = SkinFactory.getInstance().getSkin(context);
    Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
   
    byte [] ret = new byte[9];
   
    Color color = null;
    Zipper2 zipper = new Zipper2(ret);
   
    String color1 = (String) skin.getParameter(context, colorSkinParam);
    if (null == color1 || "".equals(color1))
      color1 = (String) defaultSkin.getParameter(context, colorSkinParam);
   
    if (color1 == null) {
      color1 = "#FFFFFF";
    }
   
    color = HtmlColor.decode(color1);
   
    zipper.addColor(color);
   
    String color2 = (String) skin.getParameter(context, backgroundSkinParam);
    if (null == color2 || "".equals(color2))
      color2 = (String) defaultSkin.getParameter(context, backgroundSkinParam);
   
    if (color2 == null) {
      color2 = "#000000";
    }
   
    color = HtmlColor.decode(color2);
    zipper.addColor(color);
   
    String color3 = (String) skin.getParameter(context, borderSkinParam);
    if (null == color3 || "".equals(color3))
      color3 = (String) defaultSkin.getParameter(context, backgroundSkinParam);
   
    if (color3 == null) {
      color3 = "#000000";
    }
   
View Full Code Here

TOP

Related Classes of org.richfaces.skin.Skin$Preferable

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.