Examples of LayoutBase


Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            RenderUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (final UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              final LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            EncodeUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (final UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              final LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            EncodeUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (final UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              final LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            EncodeUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (final UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              final LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            EncodeUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

    } else if (parent.getAttributes().get("tobago.panel") != null
         && parent.getAttributes().get("tobago.panel") instanceof UIExtensionPanel) {
       parent = (UIComponent) parent.getAttributes().get("tobago.panel");
    }
    if (parent instanceof LayoutBase) {
      final LayoutBase component = (LayoutBase) parent;

      if (parent instanceof LayoutComponent && columnSpan != null) {
        if (columnSpan.isLiteral()) {
          ((LayoutComponent) component).setColumnSpan(Integer.valueOf(columnSpan.getValue()));
        } else {
          parent.setValueExpression(Attributes.COLUMN_SPAN,
              columnSpan.getValueExpression(faceletContext, Integer.TYPE));
        }
      }

      if (parent instanceof LayoutComponent && rowSpan != null) {
        if (rowSpan.isLiteral()) {
          ((LayoutComponent) component).setRowSpan(Integer.valueOf(rowSpan.getValue()));
        } else {
          parent.setValueExpression(Attributes.ROW_SPAN,
              rowSpan.getValueExpression(faceletContext, Integer.TYPE));
        }
      }

      if (width != null) {
        if (width.isLiteral()) {
          component.setWidth(Measure.valueOf(width.getValue()));
        } else {
          parent.setValueExpression(Attributes.WIDTH,
              width.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (height != null) {
        if (height.isLiteral()) {
          component.setHeight(Measure.valueOf(height.getValue()));
        } else {
          parent.setValueExpression(Attributes.HEIGHT,
              height.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (minimumWidth != null) {
        if (minimumWidth.isLiteral()) {
          component.setMinimumWidth(Measure.valueOf(minimumWidth.getValue()));
        } else {
          parent.setValueExpression(Attributes.MINIMUM_WIDTH,
              minimumWidth.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (minimumHeight != null) {
        if (minimumHeight.isLiteral()) {
          component.setMinimumHeight(Measure.valueOf(minimumHeight.getValue()));
        } else {
          parent.setValueExpression(Attributes.MINIMUM_HEIGHT,
              minimumHeight.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (preferredWidth != null) {
        if (preferredWidth.isLiteral()) {
          component.setPreferredWidth(Measure.valueOf(preferredWidth.getValue()));
        } else {
          parent.setValueExpression(Attributes.PREFERRED_WIDTH,
              preferredWidth.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (preferredHeight != null) {
        if (preferredHeight.isLiteral()) {
          component.setPreferredHeight(Measure.valueOf(preferredHeight.getValue()));
        } else {
          parent.setValueExpression(Attributes.PREFERRED_HEIGHT,
              preferredHeight.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (maximumWidth != null) {
        if (maximumWidth.isLiteral()) {
          component.setMaximumWidth(Measure.valueOf(maximumWidth.getValue()));
        } else {
          parent.setValueExpression(Attributes.MAXIMUM_WIDTH,
              maximumWidth.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (maximumHeight != null) {
        if (maximumHeight.isLiteral()) {
          component.setMaximumHeight(Measure.valueOf(maximumHeight.getValue()));
        } else {
          parent.setValueExpression(Attributes.MAXIMUM_HEIGHT,
              maximumHeight.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (marginLeft != null) {
        if (marginLeft.isLiteral()) {
          component.setMarginLeft(Measure.valueOf(marginLeft.getValue()));
        } else {
          parent.setValueExpression(Attributes.MARGIN_LEFT,
              marginLeft.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (marginRight != null) {
        if (marginRight.isLiteral()) {
          component.setMarginRight(Measure.valueOf(marginRight.getValue()));
        } else {
          parent.setValueExpression(Attributes.MARGIN_RIGHT,
              marginRight.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (marginTop != null) {
        if (marginTop.isLiteral()) {
          component.setMarginTop(Measure.valueOf(marginTop.getValue()));
        } else {
          parent.setValueExpression(Attributes.MARGIN_TOP,
              marginTop.getValueExpression(faceletContext, Measure.class));
        }
      }

      if (marginBottom != null) {
        if (marginBottom.isLiteral()) {
          component.setMarginBottom(Measure.valueOf(marginBottom.getValue()));
        } else {
          parent.setValueExpression(Attributes.MARGIN_BOTTOM,
              marginBottom.getValueExpression(faceletContext, Measure.class));
        }
      }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            RenderUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            RenderUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            RenderUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutBase

          for (UIComponent grandKid : children) {
            // set height to 0 to prevent use of layoutheight from parent
            grandKid.getAttributes().put(Attributes.LAYOUT_HEIGHT, HEIGHT_0);
            // XXX hotfix
            if (grandKid instanceof LayoutBase) {
              LayoutBase base = (LayoutBase) grandKid;
              if (base.getLeft() != null) {
                base.setLeft(null);
              }
              if (base.getTop() != null) {
                base.setTop(null);
              }
            }
            RenderUtils.prepareRendererAll(facesContext, grandKid);
            RenderUtils.encode(facesContext, grandKid);
          }
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.