Package ar.com.fdvs.dj.domain

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


    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // Rows content
    Style columnStyleNumbers = new Style();
    columnStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    // Header for number row content
    Style columnStyleNumbersBold = new Style();
    columnStyleNumbersBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleNumbersBold.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnStyleNumbersBold.setBorderBottom(Border.PEN_1_POINT);

    // Rows content
    Style columnStyleText = new Style();
    columnStyleText.setFont(Font.VERDANA_SMALL);
    columnStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Header for String row content
    Style columnStyleTextBold = new Style();
    columnStyleTextBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleTextBold.setHorizontalAlign(HorizontalAlign.LEFT);
    columnStyleTextBold.setBorderBottom(Border.PEN_1_POINT);

    // Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Localized column headers
    String description = Labels.getLabel("common.Description");

    drb.addColumn(description, "braBezeichnung", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
View Full Code Here


    // Localized column headers
    String rigName = Labels.getLabel("listheader_SecRightList_rigName.label");
    String rigType = Labels.getLabel("listheader_SecRightList_rigType.label");

    // Styles: Title
    Style titleStyle = new Style();
    titleStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    Font titleFont = Font.VERDANA_BIG_BOLD;
    titleFont.setUnderline(true);
    titleStyle.setFont(titleFont);
    // titleStyle.setBorderBottom(Border.PEN_1_POINT);

    // Styles: Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // ColumnHeader Style Text (left-align)
    Style columnHeaderStyleText = new Style();
    columnHeaderStyleText.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleText.setHorizontalAlign(HorizontalAlign.LEFT);
    columnHeaderStyleText.setBorderBottom(Border.PEN_1_POINT);

    // ColumnHeader Style Text (right-align)
    Style columnHeaderStyleNumber = new Style();
    columnHeaderStyleNumber.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleNumber.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnHeaderStyleNumber.setBorderBottom(Border.PEN_1_POINT);

    // Footer Style (center-align)
    Style footerStyle = new Style();
    footerStyle.setFont(Font.VERDANA_SMALL);
    footerStyle.getFont().setFontSize(8);
    footerStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    footerStyle.setBorderTop(Border.PEN_1_POINT);

    // Rows content Style (left-align)
    Style columnDetailStyleText = new Style();
    columnDetailStyleText.setFont(Font.VERDANA_SMALL);
    columnDetailStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Rows content Style (right-align)
    Style columnDetailStyleNumbers = new Style();
    columnDetailStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnDetailStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    DynamicReportBuilder drb = new DynamicReportBuilder();
    DynamicReport dr;

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(zksample2title);
    // drb.setSubtitle("DynamicJasper Sample");
    drb.setSubtitleStyle(subtitleStyle);

    drb.setHeaderHeight(20);
    drb.setDetailHeight(15);
    drb.setFooterVariablesHeight(10);
    drb.setMargins(20, 20, 30, 15);

    drb.setDefaultStyles(titleStyle, subtitleStyle, columnHeaderStyleText, columnDetailStyleText);
    drb.setPrintBackgroundOnOddRows(true);

    /**
     * Columns Definitions. A new ColumnBuilder instance for each column.
     */
    // Right name
    AbstractColumn colRightName = ColumnBuilder.getNew().setColumnProperty("rigName", String.class.getName()).build();
    colRightName.setTitle(rigName);
    colRightName.setWidth(60);
    colRightName.setHeaderStyle(columnHeaderStyleText);
    colRightName.setStyle(columnDetailStyleText);
    // Right type
    AbstractColumn colRightType = ColumnBuilder.getNew().setCustomExpression(getMyRightTypExpression()).build();
    colRightType.setTitle(rigType);
    colRightType.setWidth(40);
    colRightType.setHeaderStyle(columnHeaderStyleText);
    colRightType.setStyle(columnDetailStyleText);

    // Add the columns to the report in the whished order
    drb.addColumn(colRightName);
    drb.addColumn(colRightType);

    // TEST
    Style atStyle = new StyleBuilder(true).setFont(Font.VERDANA_SMALL).setTextColor(Color.red).build();
    /**
     * Adding many autotexts in the same position (header/footer and
     * aligment) makes them to be one on top of the other
     */

 
View Full Code Here

    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // Rows content
    Style columnStyleNumbers = new Style();
    columnStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    // Header for number row content
    Style columnStyleNumbersBold = new Style();
    columnStyleNumbersBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleNumbersBold.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnStyleNumbersBold.setBorderBottom(Border.PEN_1_POINT);

    // Rows content
    Style columnStyleText = new Style();
    columnStyleText.setFont(Font.VERDANA_SMALL);
    columnStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Header for String row content
    Style columnStyleTextBold = new Style();
    columnStyleTextBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleTextBold.setHorizontalAlign(HorizontalAlign.LEFT);
    columnStyleTextBold.setBorderBottom(Border.PEN_1_POINT);

    // Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Localized column headers
    String rolShortdescription = Labels.getLabel("listheader_SecRoleList_rolShortdescription.label");
    String rolLongdescription = Labels.getLabel("listheader_SecRoleList_rolLongdescription.label");

View Full Code Here

    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // Rows content
    Style columnStyleNumbers = new Style();
    columnStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    // Header for number row content
    Style columnStyleNumbersBold = new Style();
    columnStyleNumbersBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleNumbersBold.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnStyleNumbersBold.setBorderBottom(Border.PEN_1_POINT);

    // Rows content
    Style columnStyleText = new Style();
    columnStyleText.setFont(Font.VERDANA_SMALL);
    columnStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Header for String row content
    Style columnStyleTextBold = new Style();
    columnStyleTextBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleTextBold.setHorizontalAlign(HorizontalAlign.LEFT);
    columnStyleTextBold.setBorderBottom(Border.PEN_1_POINT);

    // Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Localized column headers
    String filNr = Labels.getLabel("common.Office.ID");
    String filBezeichnung = Labels.getLabel("common.Description.Short");
    String filName1 = Labels.getLabel("common.Name1");
View Full Code Here

  private DynamicReport createLetterHead() {

    FastReportBuilder rb = new FastReportBuilder();

    // TEST
    Style atStyle = new StyleBuilder(true).setFont(Font.COMIC_SANS_SMALL).setTextColor(Color.red).build();
    /**
     * Adding many autotexts in the same position (header/footer and
     * aligment) makes them to be one on top of the other
     */

 
View Full Code Here

    String usrFirstname = Labels.getLabel("common.Firstname");
    String usrEmail = Labels.getLabel("common.Email");
    String usrEnabled = Labels.getLabel("common.Enabled");

    // Styles: Title
    Style titleStyle = new Style();
    titleStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    titleStyle.setFont(Font.VERDANA_BIG_BOLD);

    // Styles: Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // Header Style Text (left)
    Style columnHeaderStyleText = new Style();
    columnHeaderStyleText.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleText.setHorizontalAlign(HorizontalAlign.LEFT);
    columnHeaderStyleText.setBorderBottom(Border.PEN_1_POINT);

    // Header Style Text (left)
    Style columnHeaderStyleNumber = new Style();
    columnHeaderStyleNumber.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleNumber.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnHeaderStyleNumber.setBorderBottom(Border.PEN_1_POINT);

    // Rows content
    Style columnDetailStyleText = new Style();
    columnDetailStyleText.setFont(Font.VERDANA_SMALL);
    columnDetailStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Rows content
    Style columnDetailStyleNumbers = new Style();
    columnDetailStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnDetailStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    DynamicReportBuilder drb = new DynamicReportBuilder();
    DynamicReport dr;

    // Sets the Report Columns, header, Title, Groups, Etc Formats
View Full Code Here

    /**
     * STYLES
     */
    // Styles: Title
    Style titleStyle = new Style();
    titleStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    Font titleFont = Font.VERDANA_BIG_BOLD;
    titleFont.setUnderline(true);
    titleStyle.setFont(titleFont);

    // Styles: Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Styles: Subtitle underlined
    Style subtitleStyleUL = new Style();
    subtitleStyleUL.setHorizontalAlign(HorizontalAlign.LEFT);
    Font subtitleULFont = Font.VERDANA_MEDIUM_BOLD;
    subtitleULFont.setUnderline(true);
    subtitleStyleUL.setFont(titleFont);

    // ColumnHeader Style Text (left-align)
    final Style columnHeaderStyleText = new Style();
    columnHeaderStyleText.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleText.setHorizontalAlign(HorizontalAlign.LEFT);
    columnHeaderStyleText.setBorderBottom(Border.PEN_1_POINT);

    // ColumnHeader Style Text (right-align)
    Style columnHeaderStyleNumber = new Style();
    columnHeaderStyleNumber.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnHeaderStyleNumber.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnHeaderStyleNumber.setBorderBottom(Border.PEN_1_POINT);

    // Footer Style (center-align)
    Style footerStyle = new Style();
    footerStyle.setFont(Font.VERDANA_SMALL);
    footerStyle.getFont().setFontSize(8);
    footerStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    footerStyle.setBorderTop(Border.PEN_1_POINT);

    // Rows content Style (left-align)
    final Style columnDetailStyleText = new Style();
    columnDetailStyleText.setFont(Font.VERDANA_SMALL);
    columnDetailStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Rows content Style (right-align)
    Style columnDetailStyleNumbers = new Style();
    columnDetailStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnDetailStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    // TotalSum (left-right)
    Style footerStyleTotalSumValue = new Style();
    footerStyleTotalSumValue.setFont(Font.VERDANA_MEDIUM_BOLD);
    footerStyleTotalSumValue.setHorizontalAlign(HorizontalAlign.RIGHT);
    footerStyleTotalSumValue.setBorderTop(Border.PEN_1_POINT);

    DynamicReportBuilder drb = new DynamicReportBuilder();
    DynamicReport dr;

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
    // drb.setSubtitle("DynamicJasper Sample");
    drb.setSubtitleStyle(subtitleStyle);

    drb.setHeaderHeight(20);
    drb.setDetailHeight(15);
    drb.setFooterVariablesHeight(10);
    drb.setMargins(20, 20, 30, 15);

    drb.setDefaultStyles(titleStyle, subtitleStyle, columnHeaderStyleText, columnDetailStyleText);
    drb.setPrintBackgroundOnOddRows(true);

    /**
     * Adding many autotexts in the same position (header/footer and
     * aligment) makes them to be one on top of the other
     */
    Style atStyle = new StyleBuilder(true).setFont(Font.COMIC_SANS_SMALL).setTextColor(Color.red).build();

    AutoText created = new AutoText(Labels.getLabel("common.Created") + ": " + ZksampleDateFormat.getDateTimeFormater().format(new Date()), AutoText.POSITION_HEADER, HorizontalBandAlignment.RIGHT);
    created.setWidth(new Integer(120));
    created.setStyle(atStyle);
    drb.addAutoText(created);
View Full Code Here

    /**
     * Set the styles. In a report created with DynamicReportBuilder we do
     * this in an other way.
     */
    // Rows content
    Style columnStyleNumbers = new Style();
    columnStyleNumbers.setFont(Font.VERDANA_SMALL);
    columnStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);

    // Header for number row content
    Style columnStyleNumbersBold = new Style();
    columnStyleNumbersBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleNumbersBold.setHorizontalAlign(HorizontalAlign.RIGHT);
    columnStyleNumbersBold.setBorderBottom(Border.PEN_1_POINT);

    // Rows content
    Style columnStyleText = new Style();
    columnStyleText.setFont(Font.VERDANA_SMALL);
    columnStyleText.setHorizontalAlign(HorizontalAlign.LEFT);

    // Header for String row content
    Style columnStyleTextBold = new Style();
    columnStyleTextBold.setFont(Font.VERDANA_MEDIUM_BOLD);
    columnStyleTextBold.setHorizontalAlign(HorizontalAlign.LEFT);
    columnStyleTextBold.setBorderBottom(Border.PEN_1_POINT);

    // Subtitle
    Style subtitleStyle = new Style();
    subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Localized column headers
    String grpShortdescription = Labels.getLabel("listheader_SecGroupList_grpShortdescription.label");
    String grpLongdescription = Labels.getLabel("listheader_SecGroupList_grpLongdescription.label");

View Full Code Here

     * Here we can additionally if needed get the styles out of the
     * database. Means the customer can customize his styles for the
     * reports.
     */

    Style style;

    // Rows CONTENT for NUMBERS
    style = new Style();
    style.setFont(Font.VERDANA_SMALL);
    style.setHorizontalAlign(HorizontalAlign.RIGHT);
    setColumnStyleNumbers(style);

    // Rows CONTENT for TEXT
    style = new Style();
    style.setFont(Font.VERDANA_SMALL);
    style.setHorizontalAlign(HorizontalAlign.LEFT);
    setColumnStyleText(style);

    // HEADER for NUMBERS row content
    style = new Style();
    style.setFont(Font.VERDANA_MEDIUM_BOLD);
    style.setHorizontalAlign(HorizontalAlign.RIGHT);
    style.setBorderBottom(Border.PEN_1_POINT);
    setHeaderStyleNumbers(style);

    // HEADER for TEXT row content
    style = new Style();
    style.setFont(Font.VERDANA_MEDIUM_BOLD);
    style.setHorizontalAlign(HorizontalAlign.LEFT);
    style.setBorderBottom(Border.PEN_1_POINT);
    setHeaderStyleText(style);

    // SUBTITLE
    style = new Style();
    style.setHorizontalAlign(HorizontalAlign.LEFT);
    style.setFont(Font.VERDANA_MEDIUM_BOLD);
    setSubtitleStyle(style);

    // TITLE
    style = new Style();
    style.setHorizontalAlign(HorizontalAlign.CENTER);
    Font titleFont = Font.VERDANA_BIG_BOLD;
    titleFont.setUnderline(true);
    style.setFont(titleFont);
    setTitleStyle(style);

    // FOOTER
    style = new Style();
    style.setFont(Font.VERDANA_SMALL);
    style.getFont().setFontSize(8);
    style.setHorizontalAlign(HorizontalAlign.CENTER);
    style.setBorderTop(Border.PEN_1_POINT);
    setFooterStyle(style);

  }
View Full Code Here

    super();

    if (blank)
      style = Style.createBlankStyle(null);
    else
      style = new Style();

  }
View Full Code Here

TOP

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

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.