Package ar.com.fdvs.dj.domain

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


   * @param djHyperLink
   * @param image
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignImage image, String name) {
    StringExpression hce = djlink.getExpression();
   
    String text = ExpressionUtils.createCustomExpressionInvocationText(name);
    LayoutUtils.registerCustomExpressionParameter(design, name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    image.setHyperlinkReferenceExpression(hlpe);
    image.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?

    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
      String tooltipParameterName = "hyperlink_tooltip_" +name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design, tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      image.setHyperlinkTooltipExpression(tooltipExp);
   
   
View Full Code Here


   * @param textField
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignTextField textField, String name) {
//    DJHyperLink djlink = column.getLink();
    StringExpression hce = djlink.getExpression();
   
//    String hceParameterName = "hyperlink_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
    String text = ExpressionUtils.createCustomExpressionInvocationText2(name);
    LayoutUtils.registerCustomExpressionParameter(design,name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    textField.setHyperlinkReferenceExpression(hlpe);
    textField.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?
   
   
    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
//      String tooltipParameterName = "hyperlink_tooltip_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
      String tooltipParameterName = "tooltip_" + name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText2(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design,tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      textField.setHyperlinkTooltipExpression(tooltipExp);
    }
  }
View Full Code Here

   * @param djHyperLink
   * @param image
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignImage image, String name) {
    StringExpression hce = djlink.getExpression();
   
    String text = ExpressionUtils.createCustomExpressionInvocationText(name);
    LayoutUtils.registerCustomExpressionParameter(design, name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    image.setHyperlinkReferenceExpression(hlpe);
    image.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?

    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
      String tooltipParameterName = "hyperlink_tooltip_" +name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design, tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      image.setHyperlinkTooltipExpression(tooltipExp);
   
   
View Full Code Here

   * @param textField
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignTextField textField, String name) {
//    DJHyperLink djlink = column.getLink();
    StringExpression hce = djlink.getExpression();
   
//    String hceParameterName = "hyperlink_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
    String text = ExpressionUtils.createCustomExpressionInvocationText(name);
    LayoutUtils.registerCustomExpressionParameter(design,name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    textField.setHyperlinkReferenceExpression(hlpe);
    textField.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?
   
   
    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
//      String tooltipParameterName = "hyperlink_tooltip_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
      String tooltipParameterName = "tooltip_" + name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design,tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      textField.setHyperlinkTooltipExpression(tooltipExp);
    }
  }
View Full Code Here

   * @param djHyperLink
   * @param image
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignImage image, String name) {
    StringExpression hce = djlink.getExpression();
   
    String text = ExpressionUtils.createCustomExpressionInvocationText(name);
    LayoutUtils.registerCustomExpressionParameter(design, name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    image.setHyperlinkReferenceExpression(hlpe);
    image.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?

    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
      String tooltipParameterName = "hyperlink_tooltip_" +name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design, tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      image.setHyperlinkTooltipExpression(tooltipExp);
   
   
View Full Code Here

   * @param textField
   * @param column
   */
  public static void applyHyperLinkToElement(DynamicJasperDesign design, DJHyperLink djlink, JRDesignTextField textField, String name) {
//    DJHyperLink djlink = column.getLink();
    StringExpression hce = djlink.getExpression();
   
//    String hceParameterName = "hyperlink_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
    String text = ExpressionUtils.createCustomExpressionInvocationText2(name);
    LayoutUtils.registerCustomExpressionParameter(design,name,hce);
    JRDesignExpression hlpe = new JRDesignExpression();
    hlpe.setValueClassName(hce.getClassName());
   
    hlpe.setText(text);
    textField.setHyperlinkReferenceExpression(hlpe);
    textField.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future?
   
   
    if (djlink.getTooltip() != null){
      StringExpression sExp = djlink.getTooltip();
//      String tooltipParameterName = "hyperlink_tooltip_column_" +column.getTextForExpression().replaceAll("[\\$\\{\\}]", "_");
      String tooltipParameterName = "tooltip_" + name;
      String tooltipText = ExpressionUtils.createCustomExpressionInvocationText2(tooltipParameterName);
      LayoutUtils.registerCustomExpressionParameter(design,tooltipParameterName,sExp);
      JRDesignExpression tooltipExp = new JRDesignExpression();
      tooltipExp.setValueClassName(sExp.getClassName());
      tooltipExp.setText(tooltipText);
     
      textField.setHyperlinkTooltipExpression(tooltipExp);
    }
  }
View Full Code Here

 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignLinePlot linePlot = (JRDesignLinePlot) plot;
   
    StringExpression categoryAxisLabelExp = getCategoryAxisFormat().getLabelExpression();
    if (categoryAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisLabel_" + name, categoryAxisLabelExp);
      linePlot.setCategoryAxisLabelExpression(exp);
    }
    if (getCategoryAxisFormat().getTickLabelMask() != null)
      linePlot.setCategoryAxisTickLabelMask(getCategoryAxisFormat().getTickLabelMask())
    if (getCategoryAxisFormat().getLabelColor() != null)
      linePlot.setCategoryAxisLabelColor(getCategoryAxisFormat().getLabelColor());
    if (getCategoryAxisFormat().getLabelFont() != null)
      linePlot.setCategoryAxisLabelFont(getCategoryAxisFormat().getLabelFont().transform());
    if (getCategoryAxisFormat().getLineColor() != null)
      linePlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      linePlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      linePlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      linePlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      linePlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      linePlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
View Full Code Here

 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignBar3DPlot barPlot = (JRDesignBar3DPlot) plot;

    StringExpression categoryAxisLabelExp = getCategoryAxisFormat().getLabelExpression();
    if (categoryAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisLabel_" + name, categoryAxisLabelExp);
      barPlot.setCategoryAxisLabelExpression(exp);
    }
    if (getCategoryAxisFormat().getTickLabelMask() != null)
      barPlot.setCategoryAxisTickLabelMask(getCategoryAxisFormat().getTickLabelMask())
    if (getCategoryAxisFormat().getLabelColor() != null)
      barPlot.setCategoryAxisLabelColor(getCategoryAxisFormat().getLabelColor());
    if (getCategoryAxisFormat().getLabelFont() != null)
      barPlot.setCategoryAxisLabelFont(getCategoryAxisFormat().getLabelFont().transform());
    if (getCategoryAxisFormat().getLineColor() != null)
      barPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      barPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      barPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      barPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      barPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      barPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
View Full Code Here

 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignAreaPlot areaPlot = (JRDesignAreaPlot) plot;
   
    StringExpression categoryAxisLabelExp = getCategoryAxisFormat().getLabelExpression();
    if (categoryAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisLabel_" + name, categoryAxisLabelExp);
      areaPlot.setCategoryAxisLabelExpression(exp);
    }
    if (getCategoryAxisFormat().getTickLabelMask() != null)
      areaPlot.setCategoryAxisTickLabelMask(getCategoryAxisFormat().getTickLabelMask())
    if (getCategoryAxisFormat().getLabelColor() != null)
      areaPlot.setCategoryAxisLabelColor(getCategoryAxisFormat().getLabelColor());
    if (getCategoryAxisFormat().getLabelFont() != null)
      areaPlot.setCategoryAxisLabelFont(getCategoryAxisFormat().getLabelFont().transform());
    if (getCategoryAxisFormat().getLineColor() != null)
      areaPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      areaPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      areaPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      areaPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      areaPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      areaPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
View Full Code Here

 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignBarPlot barPlot = (JRDesignBarPlot) plot;

    StringExpression categoryAxisLabelExp = getCategoryAxisFormat().getLabelExpression();
    if (categoryAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisLabel_" + name, categoryAxisLabelExp);
      barPlot.setCategoryAxisLabelExpression(exp);
    }
    if (getCategoryAxisFormat().getTickLabelMask() != null)
      barPlot.setCategoryAxisTickLabelMask(getCategoryAxisFormat().getTickLabelMask())
    if (getCategoryAxisFormat().getLabelColor() != null)
      barPlot.setCategoryAxisLabelColor(getCategoryAxisFormat().getLabelColor());
    if (getCategoryAxisFormat().getLabelFont() != null)
      barPlot.setCategoryAxisLabelFont(getCategoryAxisFormat().getLabelFont().transform());
    if (getCategoryAxisFormat().getLineColor() != null)
      barPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      barPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      barPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      barPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      barPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      barPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.StringExpression

Copyright © 2018 www.massapicom. 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.