Examples of DJLabel


Examples of ar.com.fdvs.dj.domain.DJLabel

        band.addElement(rect);
      }
     
      LayoutUtils.moveBandsElemnts(crosst.getHeight(), band);
      band.addElement(crosst);
      DJLabel caption = djcross.getCaption();
      if (caption!=null){
        JRDesignExpression captExp = null;
        if (caption.isJasperExpression()) //a text with things like "$F{myField}"
          captExp = ExpressionUtils.createStringExpression(caption.getText());
        else if (caption.getLabelExpression() != null){
          String name = "expression_for_label_at_header_of_group[" + getReport().getColumnsGroups().indexOf(columnsGroup)+"]_crosstab["+columnsGroup.getHeaderCrosstabs().indexOf(djcross)+"]";
          LayoutUtils.registerCustomExpressionParameter((DynamicJasperDesign) getDesign(), name , caption.getLabelExpression());
          captExp =   ExpressionUtils.createExpression(ExpressionUtils.createCustomExpressionInvocationText(name), caption.getLabelExpression().getClassName()) ;
          log.debug(ExpressionUtils.createCustomExpressionInvocationText(name));
        } else //a simple text
          captExp = ExpressionUtils.createStringExpression("\""+ Utils.escapeTextForExpression(caption.getText())+ "\"");
       
        JRDesignTextField captTf = new JRDesignTextField();
        captTf.setExpression(captExp );
        captTf.setHeight(caption.getHeight());
        captTf.setWidth(getReport().getOptions().getPrintableWidth());
        LayoutUtils.moveBandsElemnts(caption.getHeight(), band);
        band.addElement(captTf);
      }

      if (djcross.getTopSpace() != 0){
        LayoutUtils.moveBandsElemnts(djcross.getTopSpace(), band);
View Full Code Here

Examples of ar.com.fdvs.dj.domain.DJLabel

        band.addElement(rect);
      }
     
      LayoutUtils.moveBandsElemnts(crosst.getHeight(), band);
      band.addElement(crosst);
      DJLabel caption = djcross.getCaption();
      if (caption!=null){
        JRDesignExpression captExp = null;
        if (caption.isJasperExpression()) //a text with things like "$F{myField}"
          captExp = ExpressionUtils.createStringExpression(caption.getText());
        else if (caption.getLabelExpression() != null){
          String name = "expression_for_label_at_header_of_group[" + getReport().getColumnsGroups().indexOf(columnsGroup)+"]_crosstab["+columnsGroup.getHeaderCrosstabs().indexOf(djcross)+"]";
          LayoutUtils.registerCustomExpressionParameter((DynamicJasperDesign) getDesign(), name , caption.getLabelExpression());
          captExp =   ExpressionUtils.createExpression(ExpressionUtils.createCustomExpressionInvocationText(name), caption.getLabelExpression().getClassName()) ;
          log.debug(ExpressionUtils.createCustomExpressionInvocationText(name));
        } else //a simple text
          captExp = ExpressionUtils.createStringExpression("\""+ Utils.escapeTextForExpression(caption.getText())+ "\"");
       
        JRDesignTextField captTf = new JRDesignTextField();
        captTf.setExpression(captExp );
        captTf.setHeight(caption.getHeight());
        captTf.setWidth(getReport().getOptions().getPrintableWidth());
        LayoutUtils.moveBandsElemnts(caption.getHeight(), band);
        band.addElement(captTf);
      }

      if (djcross.getTopSpace() != 0){
        LayoutUtils.moveBandsElemnts(djcross.getTopSpace(), band);
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.