@API(type=INTERNAL,
src=PUBLIC)
public class CALSColSpec
extends java.lang.Object
Constructor and Description |
---|
CALSColSpec(int indexInDocument,
int colNumber,
boolean colNumberSpecified,
java.lang.String colName,
java.lang.String colWidth,
java.lang.Boolean colSep,
java.lang.Boolean rowSep)
Constructor.
|
CALSColSpec(int indexInDocument,
int colNumber,
boolean colNumberSpecified,
java.lang.String colName,
WidthRepresentation colWidth)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createXMLFragment(java.lang.String ns)
Creates the XML fragment corresponding to the column specification
obtained from the
colNumber , colName and
colWidth fields. |
java.lang.String |
getAlign()
Get the align value specified on the colspec.
|
java.lang.Boolean |
getColSep()
Tests the presence of the column separator.
|
java.lang.String |
getColumnName() |
int |
getColumnNumber() |
WidthRepresentation |
getColWidth() |
int |
getIndexInDocument() |
java.lang.Boolean |
getRowSep()
Tests the presence of the row separator.
|
boolean |
isColNumberSpecified() |
void |
setAlign(java.lang.String align)
Set the align value specified on the colspec.
|
void |
setColWidth(WidthRepresentation colWidth)
Set the new
WidthRepresentation corresponding to the column specification. |
java.lang.String |
toString()
Creates a String representation of the column specification.
|
public CALSColSpec(int indexInDocument, int colNumber, boolean colNumberSpecified, java.lang.String colName, java.lang.String colWidth, java.lang.Boolean colSep, java.lang.Boolean rowSep)
indexInDocument
- Index in colspec elements list.colNumber
- The number of the column. It is 1 based.colNumberSpecified
- true
if the column number was specified as an attributecolName
- The name of the column.colWidth
- The string representation of the column width
as described in the WidthRepresentation
.colSep
- true
if the column separators are needed for that column,
false
if not, null
if the framework default should apply.
For instance Docbook has the colsep on true by default, while DITA on false.rowSep
- true
if the row separators are needed for that column,
false
if not, null
if the framework default should apply.
For instance Docbook has the rowsep on true by default, while DITA on false.public CALSColSpec(int indexInDocument, int colNumber, boolean colNumberSpecified, java.lang.String colName, WidthRepresentation colWidth)
indexInDocument
- Index in colspec elements list.colNumber
- The number of this column. It is 1 based.colNumberSpecified
- true
if the column number was specified as an attributecolName
- The name of this column.colWidth
- The column width representation.public java.lang.Boolean getColSep()
true
if the separator
should be painted at the right of the cell, false
if no separator
is needed, or null
if the default specified by the document type
should be applied.
For instance in Docbook, the default value is true
while in DITA
is false
.
If the cell is the last in the row, this value is disregarded.public java.lang.Boolean getRowSep()
true
if the separator
should be painted below the cell, false
if no separator
is needed, or null
if the default specified by the document type
should be applied.
For instance in Docbook, the default value is true
while in DITA
is false
.
If the cell is the in the last row, this value is disregarded.public boolean isColNumberSpecified()
public int getIndexInDocument()
public int getColumnNumber()
public java.lang.String getColumnName()
public WidthRepresentation getColWidth()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String createXMLFragment(java.lang.String ns)
colNumber
, colName
and
colWidth
fields.
<colspec colnum="integer_value" colname="string_value" colwidth="string_value" xmlns="URI"/>
ns
- The namespace URI of the table element. It can be null
.public void setColWidth(WidthRepresentation colWidth)
WidthRepresentation
corresponding to the column specification.colWidth
- The column width to be set.public java.lang.String getAlign()
public void setAlign(java.lang.String align)
align
- The textAlign to set.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.