Package org.richfaces.component

Examples of org.richfaces.component.LayoutPosition


  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here


  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

        } else {
            writer.write(".rf-pg{margin:auto 10px;width:auto;}\n");
        }
        // Calculate sidebar width
        if (component.getFacet("sidebar") != null) {
            LayoutPosition sidebarPosition = page.getSidebarPosition();
            if (LayoutPosition.right.equals(sidebarPosition)) {
                writer
                        .write(".rf-pg-m{float:left;margin-right:-30em;}\n");
            } else {
                writer
View Full Code Here

// -------------------------- OTHER METHODS --------------------------

    public String layoutStyle(FacesContext context, AbstractLayoutPanel panel) {
        StringBuilder style = new StringBuilder();
        LayoutPosition position = panel.getPosition();
        Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
        Object parentLayout = requestMap.get(LayoutRenderer.LAYOUT_STRUCTURE_ATTRIBUTE);
        LayoutStructure structure;
        if (null != parentLayout && parentLayout instanceof LayoutStructure) {
            structure = (LayoutStructure) parentLayout;
View Full Code Here

    }
  }

  public String layoutStyle(FacesContext context, UILayoutPanel panel) {
    StringBuilder style = new StringBuilder();
    LayoutPosition position = panel.getPosition();
    Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
    Object parentLayout = requestMap.get(LayoutRenderer.LAYOUT_STRUCTURE_ATTRIBUTE);
    LayoutStructure structure;
    if (null != parentLayout && parentLayout instanceof LayoutStructure) {
      structure = (LayoutStructure) parentLayout;     
View Full Code Here

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  if (this._position != null) {
    return this._position;
  }
  ValueExpression ve = getValueExpression("position");
  if (ve != null) {
      LayoutPosition value = null;
     
      try {
      value = (LayoutPosition) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

TOP

Related Classes of org.richfaces.component.LayoutPosition

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.