Package org.apache.myfaces.tobago.layout

Examples of org.apache.myfaces.tobago.layout.Measure.greaterThan()


      if (StringUtils.isNotBlank(value)) {
        StringTokenizer tokenizer = new StringTokenizer(value, ";");
        Measure vertical = Measure.valueOf(tokenizer.nextToken());
        Measure horizontal = Measure.valueOf(tokenizer.nextToken());
        if (vertical.greaterThan(Measure.valueOf(30)) || vertical.lessThan(Measure.valueOf(3))
           || horizontal.greaterThan(Measure.valueOf(30)) || horizontal.lessThan(Measure.valueOf(3))) {
          LOG.error("Ignoring strange values: vertical=" + vertical + " horizontal=" + horizontal);
        } else {
          ClientProperties client = VariableResolverUtils.resolveClientProperties(facesContext);
          client.setVerticalScrollbarWeight(vertical);
          client.setHorizontalScrollbarWeight(horizontal);
View Full Code Here


      LOG.error("20; // FIXME: make dynamic (was removed by changing the layout");
      final Measure rowPadding = getCustomMeasure(facesContext, sheet, "rowPadding");
      Measure heightNeeded = getFooterHeight(facesContext, sheet)
              .add(rowPadding.add(20/*fixme*/).multiply(rows))
              .add(20); // FIXME: make dynamic (was removed by changing the layouting
      return heightNeeded.greaterThan(style.getHeight());
    } else {
      return false;
    }
  }

View Full Code Here

    for (BankHead head : heads) {
      size = size.add(head.getCurrent());
    }
    size = size.add(getMarginEnd(orientation));
    size = size.add(LayoutUtils.getPaddingEnd(orientation, getLayoutContainer()));
    if (size.greaterThan(LayoutUtils.getCurrentSize(orientation, getLayoutContainer()))) {
      grid.setOverflow(true, orientation);
    }
  }

  public void postProcessing(Orientation orientation) {
View Full Code Here

      final Measure rowPadding = renderer.getCustomMeasure(facesContext, sheet, "rowPadding");
      LOG.error("20; // FIXME: make dynamic (was removed by changing the layout");
      Measure heightNeeded = getFooterHeight(facesContext, sheet)
              .add(rowPadding.add(20/*fixme*/).multiply(rows))
              .add(20); // FIXME: make dynamic (was removed by changing the layouting
      return heightNeeded.greaterThan(sheet.getCurrentHeight());
    } else {
      return false;
    }
  }

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.