Package org.ajax4jsf.util.style

Examples of org.ajax4jsf.util.style.CSSFormat


    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here


    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here

    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here

    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here

    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here

    return (UIPanelMenu) parent;
  }
 
  public String getHideStyle(FacesContext context, UIComponent component) {
    if (!(component.getParent() instanceof UIPanelMenu)) {
      CSSFormat format = new CSSFormat();
      format.add("display", "none");
      if(component.getParent() instanceof UIPanelMenuGroup) {
        UIPanelMenuGroup parent = (UIPanelMenuGroup)component.getParent();
        PanelMenuGroupRenderer renderer = (PanelMenuGroupRenderer) context.getRenderKit().getRenderer(parent.getFamily(), parent.getRendererType());
        try {
          if ( renderer.isOpened(context, parent) ){
            return "";
          } else
            return format.toString();
        } catch (IOException e) {
          e.printStackTrace();
        }
      } else return format.toString();
    }
    return "";
  }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.util.style.CSSFormat

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.