Examples of UISheet


Examples of org.apache.myfaces.tobago.component.UISheet

  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UISheet component = (UISheet) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (columns != null) {
      component.setValueExpression("columns", columns);
    }

    if (showDirectLinks != null) {
      component.setValueExpression("showDirectLinks", showDirectLinks);
    }

    if (showPageRange != null) {
      component.setValueExpression("showPageRange", showPageRange);
    }

    if (value != null) {
      if (!value.isLiteralText()) {
        component.setValueExpression("value", value);
      /*} else {
        component.setValue(value.getExpressionString());*/
      }
    }
    if (forceVerticalScrollbar != null) {
      component.setValueExpression("forceVerticalScrollbar", forceVerticalScrollbar);
    }

    if (stateChangeListener != null) {
      component.addStateChangeListener(new org.apache.myfaces.tobago.event.MethodExpressionStateChangeListener(stateChangeListener));
    }
    if (showRootJunction != null) {
      if (!showRootJunction.isLiteralText()) {
        component.setValueExpression("showRootJunction", showRootJunction);
      } else {
        component.setShowRootJunction(Boolean.parseBoolean(showRootJunction.getExpressionString()));
      }
    }
    if (rows != null) {
      if (!rows.isLiteralText()) {
        component.setValueExpression("rows", rows);
      } else {
        component.setRows(Integer.parseInt(rows.getExpressionString()));
      }
    }
    if (showPagingAlways != null) {
      if (!showPagingAlways.isLiteralText()) {
        component.setValueExpression("showPagingAlways", showPagingAlways);
      } else {
        component.setShowPagingAlways(Boolean.parseBoolean(showPagingAlways.getExpressionString()));
      }
    }
    if (renderedPartially != null) {
      if (!renderedPartially.isLiteralText()) {
        component.setValueExpression("renderedPartially", renderedPartially);
      } else {
        component.setRenderedPartially(splitList(renderedPartially.getExpressionString()));
      }
    }
    if (var != null) {
      component.setVar(var);
    }

    if (state != null) {
      if (!state.isLiteralText()) {
        component.setValueExpression("state", state);
      /*} else {
        component.setState(state.getExpressionString());*/
      }
    }
    if (showRoot != null) {
      if (!showRoot.isLiteralText()) {
        component.setValueExpression("showRoot", showRoot);
      } else {
        component.setShowRoot(Boolean.parseBoolean(showRoot.getExpressionString()));
      }
    }
    if (showRowRange != null) {
      component.setValueExpression("showRowRange", showRowRange);
    }

    if (selectable != null) {
      component.setValueExpression("selectable", selectable);
    }

    if (showHeader != null) {
      if (!showHeader.isLiteralText()) {
        component.setValueExpression("showHeader", showHeader);
      } else {
        component.setShowHeader(Boolean.parseBoolean(showHeader.getExpressionString()));
      }
    }
    if (directLinkCount != null) {
      if (!directLinkCount.isLiteralText()) {
        component.setValueExpression("directLinkCount", directLinkCount);
      } else {
        component.setDirectLinkCount(Integer.parseInt(directLinkCount.getExpressionString()));
      }
    }
    if (sortActionListener != null) {
      component.setSortActionListenerExpression(sortActionListener);
    }
    if (first != null) {
      if (!first.isLiteralText()) {
        component.setValueExpression("first", first);
      } else {
        component.setFirst(Integer.parseInt(first.getExpressionString()));
      }
    }
  }
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.