Examples of AUIRow


Examples of com.liferay.faces.alloy.component.AUIRow

  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {

    super.encodeBegin(facesContext, uiComponent);

    AUIRow auiRow = (AUIRow) uiComponent;

    ResponseWriter responseWriter = facesContext.getResponseWriter();
    responseWriter.startElement(StringPool.DIV, uiComponent);

    String id = uiComponent.getClientId(facesContext);
    responseWriter.writeAttribute(StringPool.ID, id, null);

    StringBuilder classNames = new StringBuilder();

    classNames.append("row");

    if (auiRow.isFluid()) {
      classNames.append("-fluid");
    }

    String cssClass = auiRow.getCssClass();

    if ((cssClass != null) && (cssClass.length() > 0)) {
      classNames.append(StringPool.SPACE);
      classNames.append(cssClass);
    }

    String styleClass = auiRow.getStyleClass();

    if ((styleClass != null) && (styleClass.length() > 0)) {
      classNames.append(StringPool.SPACE);
      classNames.append(styleClass);
    }
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.