Java HorizontalAlign类代码示例

本文整理汇总了Java中ar.com.fdvs.dj.domain.constants.HorizontalAlign的典型用法代码示例。如果您正苦于以下问题:Java HorizontalAlign类的具体用法?Java HorizontalAlign怎么用?Java HorizontalAlign使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java HorizontalAlign类代码示例

HorizontalAlign类属于ar.com.fdvs.dj.domain.constants包,在下文中一共展示了HorizontalAlign类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ReportExportPdf

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
private ReportExportPdf(Builder builder) {
	columnKeys = builder.columnKeys;
	columnLabels = builder.columnLabels;
	useConditionalStyles = builder.useConditionalStyles;
	data = builder.data;
	params = builder.params;

	headerStyle = new StyleBuilder(false, "headerStyle").setBackgroundColor(new Color(238, 239, 239))
			.setPaddingBottom(4).setFont(new Font(8, "SansSerif", true)).setTextColor(new Color(88, 88, 90))
			.setVerticalAlign(VerticalAlign.TOP).setHorizontalAlign(HorizontalAlign.LEFT)
			.setBorderBottom(Border.PEN_2_POINT).setBorderColor(new Color(222, 223, 224)).setTransparent(false).build();

	detailStyle = new StyleBuilder(false, "detailStyle").setBackgroundColor(Color.WHITE)
			.setFont(new Font(8, "SansSerif", false)).setVerticalAlign(VerticalAlign.MIDDLE)
			.setHorizontalAlign(HorizontalAlign.LEFT).setPaddingLeft(2).setBorder(Border.NO_BORDER).build();

	detailOddStyle = new StyleBuilder(false, "detailOddStyle").setBackgroundColor(new Color(247, 248, 248)).build();
} 
开发者ID:SmarterApp,项目名称:TechnologyReadinessTool,代码行数:19,代码来源:ReportExportPdf.java

示例2: addDetails

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Agrega una lista de detalles al reporte cabecera.
 * 
 * @param structReportHead
 *            Structura del reporte principal
 * @param report
 *            Estructura que contiene la definicion y datos necesarios para
 *            generar el reporte.
 * @param clazz
 *            Clase de la entidad principal sobre la cual se desea realizar
 *            el reporte
 * @return
 * @throws ReportException
 */
public <T> FastReportBuilder addDetails(FastReportBuilder structReportHead,
        KarakuReportDetails report, Class<T> clazz) throws ReportException {

    Style titleStyle = new Style();
    titleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
    for (Detail detail : report.getDetails()) {
        structReportHead.addField(detail.getField(),
                Collection.class.getName());

        FastReportBuilder structSubreport = this.newInstance();
        structSubreport.setTitle(detail.getTitle());
        structSubreport.setTitleStyle(titleStyle);

        Class<?> clazzDetail = this.getClazzDetail(clazz, detail);

        this.buildColumnDetail(structSubreport, detail.getColumns(),
                clazzDetail);

        DynamicReport subreport = structSubreport.build();

        structReportHead.addConcatenatedReport(subreport,
                new ClassicLayoutManager(), detail.getField(),
                DJConstants.SUBREPORT_PARAM_ORIGIN_FIELD,
                DJConstants.DATA_SOURCE_TYPE_COLLECTION);
    }
    return structReportHead;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:42,代码来源:DynamicUtils.java

示例3: getAlignColumn

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Configura la alineación de las columnas de los reportes.
 * 
 * @param field
 *            Field que se desea alinear
 * 
 * @return
 */
private HorizontalAlign getAlignColumn(Field field) {

    if (Number.class.isAssignableFrom(field.getType())) {
        return HorizontalAlign.RIGHT;
    } else {
        if (Date.class.isAssignableFrom(field.getType())) {
            return HorizontalAlign.CENTER;
        }
    }
    return HorizontalAlign.LEFT;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:20,代码来源:DynamicUtils.java

示例4: getStyleColumn

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
private Style getStyleColumn(HorizontalAlign align, String pattern) {

        Style style = this.getStyleColumnDetail();
        style.setHorizontalAlign(align);
        style.setPattern(pattern);
        return style;
    } 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:8,代码来源:DynamicUtils.java

示例5: getStyleOnlyTitle

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Metodo que define el estilo que debe ser aplicado al titulo principal de
 * los reportes.
 * 
 * @return StyleTitle
 */
public Style getStyleOnlyTitle() {

    Style styleTitle = new Style();
    styleTitle.setFont(Font.ARIAL_BIG_BOLD);
    styleTitle.setHorizontalAlign(HorizontalAlign.CENTER);
    styleTitle.setVerticalAlign(VerticalAlign.MIDDLE);
    styleTitle.setBorderBottom(Border.THIN());
    styleTitle.setBorderLeft(Border.THIN());
    styleTitle.setBorderRight(Border.THIN());
    styleTitle.setBorderTop(Border.THIN());
    styleTitle.setTransparent(false);
    return styleTitle;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:20,代码来源:DynamicUtils.java

示例6: getStyleColumnHeader

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Metodo que define el estilo para las columnas principales de los
 * reportes.
 * 
 * @return StyleColumnHeader
 */

public Style getStyleColumnHeader() {

    Style styleColumns = new Style();
    styleColumns.setTransparent(false);
    styleColumns.setBorder(Border.THIN());
    styleColumns.setBackgroundColor(Color.white);
    styleColumns.setFont(Font.ARIAL_SMALL_BOLD);
    styleColumns.setTextColor(Color.black);
    styleColumns.setHorizontalAlign(HorizontalAlign.CENTER);
    styleColumns.setVerticalAlign(VerticalAlign.MIDDLE);
    return styleColumns;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:20,代码来源:DynamicUtils.java

示例7: getStyleTitleTransparentUnderline

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Estilo utilizado para el titulo de los bloques principales
 * 
 * @return
 */
public Style getStyleTitleTransparentUnderline() {

    Style style = new Style();
    style.setFont(new Font(BIG, FONT_ARIAL, false, false, false));
    style.setHorizontalAlign(HorizontalAlign.LEFT);
    style.setBorderBottom(Border.PEN_1_POINT());
    style.setTransparent(true);
    return style;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:15,代码来源:DynamicUtils.java

示例8: getStyleTitleSecundary

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Estilo utilizado para el titulo de los bloques secundarios
 * 
 * @return
 */
public Style getStyleTitleSecundary() {

    Style style = new Style();
    style.setFont(new Font(SMALL, FONT_ARIAL, true, false, false));
    style.setHorizontalAlign(HorizontalAlign.LEFT);
    return style;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:13,代码来源:DynamicUtils.java

示例9: getStyleColumnHeaderTransparentUnderlineTop

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
public Style getStyleColumnHeaderTransparentUnderlineTop() {

        Style styleColumns = new Style();
        styleColumns.setBorderTop(Border.PEN_1_POINT());
        styleColumns.setHorizontalAlign(HorizontalAlign.CENTER);
        styleColumns.setTransparent(true);
        return styleColumns;
    } 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:9,代码来源:DynamicUtils.java

示例10: getStyleColumnHeaderDetails

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Metodo que define el estilo para las columnas secundarias de los
 * reportes.
 * 
 * @return StyleColumnHeader Estilo de las columnas de la grilla.
 */

public Style getStyleColumnHeaderDetails() {

    Style styleColumns = new Style();
    styleColumns.setTransparent(false);
    styleColumns.setBackgroundColor(Color.gray);
    styleColumns.setFont(Font.ARIAL_SMALL_BOLD);
    styleColumns.setTextColor(Color.white);
    styleColumns.setHorizontalAlign(HorizontalAlign.CENTER);
    styleColumns.setVerticalAlign(VerticalAlign.MIDDLE);
    return styleColumns;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:19,代码来源:DynamicUtils.java

示例11: generateReport

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
public void generateReport() {
	gridComponentReport = new GridComponentReport() {
		@Override
		public DynamicReportBuilder getReportBuilder() {
			// let's override this method to add some elements to the report
			DynamicReportBuilder reportBuilder = super.getReportBuilder();
			
			Style headerStyle = new StyleBuilder(true).setFont(Font.ARIAL_MEDIUM).build();
			
			reportBuilder.addAutoText("Para uso interno", AutoText.POSITION_HEADER, AutoText.ALIGMENT_LEFT, 200, headerStyle);
			reportBuilder.addAutoText(AutoText.AUTOTEXT_PAGE_X_OF_Y, AutoText.POSITION_HEADER, AutoText.ALIGNMENT_RIGHT, 200, 10, headerStyle);
			reportBuilder.addAutoText("2012/10/12", AutoText.POSITION_HEADER, AutoText.ALIGNMENT_RIGHT, 200, headerStyle);
			
			Style titleStyle = new StyleBuilder(true).setPadding(0).setFont(Font.ARIAL_BIG_BOLD).setHorizontalAlign(HorizontalAlign.CENTER).build();
			reportBuilder.setTitleStyle(titleStyle);
			reportBuilder.setTitleHeight(18);
			
			Style footerStyle = new StyleBuilder(true).setFont(Font.ARIAL_MEDIUM).setTextColor(Color.GRAY).build();
			reportBuilder.addAutoText("Powered by Enterprise App for Vaadin", AutoText.POSITION_FOOTER, AutoText.ALIGMENT_LEFT, 200, footerStyle);
			
			reportBuilder.setTitle(reportTittle);
			
			return reportBuilder;
        }
	};
	
	gridComponentReport.setImmediate(false);
	gridComponentReport.setWidth("100.0%");
	gridComponentReport.setHeight("100.0%");

	gridComponentReport.setColumnProperties(columnProperties);
	gridComponentReport.setColumnClasses(columnClasses);
	gridComponentReport.setColumnTitles(columnTitles);
       gridComponentReport.setData(data);

       mainLayout.addComponent(gridComponentReport);
} 
开发者ID:thingtrack,项目名称:konekti,代码行数:38,代码来源:PrintViewForm.java

示例12: addColumn

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
public GridBlockBuilder addColumn(String title, String field, int width,
		HorizontalAlign align) {

	this.columns.add(new Column(getMessage(title), field, width, align));
	return this;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:7,代码来源:GridBlockBuilder.java

示例13: buildColumns

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
public void buildColumns(DynamicReportBuilder reportBuilder) {
	try {
		String[] title = getColumnTitles();
		String[] property = getColumnProperties();
		Class<?>[] clazz = getColumnClasses();
		Integer[] width = getColumnWidths();
		
		for(int i = 0; i < property.length; i++) {
			
			if(columnsCheckBoxes[i].booleanValue()) {
				ColumnBuilder columnBuilder = ColumnBuilder.getNew();
				columnBuilder.setColumnProperty(property[i], clazz[i]);
				columnBuilder.setTitle(title[i]);
				
				if(width != null && width[i] != null) {
					columnBuilder.setWidth(width[i]);
				}
				
				String columnPattern = getColumnPattern(property[i]);
				if(columnPattern != null) {
					columnBuilder.setPattern(columnPattern);
				}
				
				Style columnStyle = null;
				
				if(groupingCheckBoxes[i].booleanValue()) {
					columnStyle = new StyleBuilder(true).setHorizontalAlign(HorizontalAlign.LEFT).setFont(Font.ARIAL_MEDIUM_BOLD).setPaddingBottom(mmToPoints(5)).setPaddingTop(mmToPoints(10)).build();
				} else {
					columnStyle = getColumnStyle(property[i]);
				}
				
				if(columnStyle == null) {
					columnStyle = new StyleBuilder(true).setStretchWithOverflow(stretchWithOverflowCheckBox.booleanValue()).build();
					columnBuilder.setTruncateSuffix("...");
				}
				
				columnBuilder.setStyle(columnStyle);
				
				List<ConditionalStyle> conditionalStyle = getColumnConditionalStyle(property[i]);
				if(conditionalStyle != null) {
					columnBuilder.addConditionalStyles(conditionalStyle);
				}
				
				configureColumnBuilder(property[i], columnBuilder, reportBuilder);
				
				AbstractColumn column = columnBuilder.build();
				reportBuilder.addColumn(column);
				
				configureColumn(property[i], column, reportBuilder);
				
				if(groupingCheckBoxes[i].booleanValue()) {
					GroupBuilder groupBuilder = new GroupBuilder();
					groupBuilder.setCriteriaColumn((PropertyColumn) column);
					groupBuilder.setGroupLayout(GroupLayout.VALUE_IN_HEADER);
					reportBuilder.addGroup(groupBuilder.build());
				}
			}
			
		}
		
	} catch (ColumnBuilderException e) {
		throw new RuntimeException(e);
	}
} 
开发者ID:alejandro-du,项目名称:enterprise-app,代码行数:65,代码来源:AbstractReport.java

示例14: Column

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
/**
 * Crea una instancia de la clase
 * 
 * @param title
 *            Titulo de la columna
 * @param field
 *            Valor que representa los datos dentro de la columna.
 * @param width
 *            Define el ancho de la columna.
 * @param align
 *            Define el formato de alineacion de la columna
 * 
 */
public Column(String title, String field, int width, HorizontalAlign align) {

	super();
	this.title = title;
	this.field = field;
	this.nameField = field;
	this.width = width;
	this.align = align;
} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:23,代码来源:Column.java

示例15: getAlign

import ar.com.fdvs.dj.domain.constants.HorizontalAlign; //导入依赖的package包/类
public HorizontalAlign getAlign() {

		return align;
	} 
开发者ID:fpuna-cia,项目名称:karaku,代码行数:5,代码来源:Column.java

本文标签属性:

示例:示例英语

代码:代码是什么

java:java模拟器

HorizontalAlign:horizontalalignment参数

上一篇:朴灿烈是财阀吗(EXO朴灿烈的外号有什么)
下一篇:全网永封是多久(scp基金会为什么会被封禁?)(《gta5》为什么被全网封了)

为您推荐