24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}String cs = attrValue.getValue();if(cs != null) {try {colSpan = new Integer(cs);} catch (NumberFormatException ex) {// The attribute value was not a number.}}}return colSpan;<strong>Author</strong> Developer Guide | 2264. The row span is determined in a similar manner:public Integer getRowSpan(<strong>Author</strong>Element cell) {Integer rowSpan = null;}AttrValue attrValue = cell.getAttribute("row_span");if(attrValue != null) {// The attribute was found.String rs = attrValue.getValue();if(rs != null) {try {rowSpan = new Integer(rs);} catch (NumberFormatException ex) {// The attribute value was not a number.}}}return rowSpan;5. The method hasColumnSpecifications always returns true considering column specifications alwaysavailable.public boolean hasColumnSpecifications(<strong>Author</strong>Element tableElement) {return true;}Note: The complete source code can be found in the Simple Documentation Framework project, includedin the <strong>Oxygen</strong> <strong>Author</strong> SDK zip available for download on the <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> website.6. In the listing below, the <strong>XML</strong> document contains the table element:C1C2C3C4cs=1, rs=1cs=2, rs=2cs=1, rs=3cs=1, rs=1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!