Example usage for com.lowagie.text ElementTags HEADER

List of usage examples for com.lowagie.text ElementTags HEADER

Introduction

In this page you can find the example usage for com.lowagie.text ElementTags HEADER.

Prototype

String HEADER

To view the source code for com.lowagie.text ElementTags HEADER.

Click Source Link

Document

attribute of the cell tag

Usage

From source file:org.apache.maven.doxia.module.itext.ITextSink.java

License:Apache License

/** {@inheritDoc} */
public void tableHeaderCell() {
    writeStartElement(ElementTags.CELL);
    writeAddAttribute(ElementTags.LEFT, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.RIGHT, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.TOP, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.BOTTOM, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.HEADER, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.BGRED, Color.GRAY.getRed());
    writeAddAttribute(ElementTags.BGBLUE, Color.GRAY.getBlue());
    writeAddAttribute(ElementTags.BGGREEN, Color.GRAY.getGreen());
    writeAddAttribute(ElementTags.HORIZONTALALIGN, ElementTags.ALIGN_CENTER);

    actionContext.setAction(SinkActionContext.TABLE_HEADER_CELL);
}