|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.fountain.xelem.excel.AbstractXLElement nl.fountain.xelem.excel.ss.SSColumn
public class SSColumn
An implementation of the XLElement Column.
Field Summary |
---|
Fields inherited from interface nl.fountain.xelem.excel.XLElement |
---|
PREFIX_HTML, PREFIX_O, PREFIX_SS, PREFIX_X, XMLNS, XMLNS_HTML, XMLNS_O, XMLNS_SS, XMLNS_X |
Constructor Summary | |
---|---|
SSColumn()
Creates a new SSColumn. |
Method Summary | |
---|---|
Element |
assemble(Element parent,
GIO gio)
Assembles the state of this XLElement and all of it's children into an Element . |
boolean |
getAutoFitWith()
Specifies whether autofit was set on this column. |
int |
getIndex()
Gets the value of the ss:Index-attribute of this Column-element. |
String |
getNameSpace()
Gets the namespace of this XLElement. |
String |
getPrefix()
Gets the prefix of this XLElement. |
int |
getSpan()
Gets the number of extra columns this column spans. |
String |
getStyleID()
Gets the ss:StyleID which was set on this column. |
String |
getTagName()
Gets the tagname (localName) of this XLElement. |
double |
getWidth()
Gets the width of this column. |
boolean |
isHidden()
Specifies whether this column is hidden. |
void |
setAttributes(Attributes attrs)
Does effectively nothing. |
void |
setAutoFitWidth(boolean autoFit)
Sets column-width to autofit for datatypes 'DateTime' and 'Number'. |
void |
setHidden(boolean hide)
Sets whether this column will be hidden. |
void |
setIndex(int index)
Sets the value of the ss:Index-attribute of this Column-element. |
void |
setSpan(int s)
Sets the span of this column. |
void |
setStyleID(String id)
Sets the ss:StyleID on this column. |
void |
setWidth(double w)
Sets the width of this column. |
Methods inherited from class nl.fountain.xelem.excel.AbstractXLElement |
---|
addElementComment, assemble, createAttributeNS, createAttributeNS, createElementNS, createElementNS, createElementNS, createElementNS, getElementComments, setChildElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nl.fountain.xelem.excel.XLElement |
---|
addElementComment, getElementComments, setChildElement |
Constructor Detail |
---|
public SSColumn()
Worksheet.addColumn()
Method Detail |
---|
public void setStyleID(String id)
Column
setStyleID
in interface Column
id
- the id of the style to employ on this column.public String getStyleID()
Column
getStyleID
in interface Column
null
if no styleID was previously set.public void setAutoFitWidth(boolean autoFit)
Column
false
is passed as a parameter.
setAutoFitWidth
in interface Column
autoFit
- false
if no autofit of column-width is
desired.public boolean getAutoFitWith()
Column
getAutoFitWith
in interface Column
true
if column-width is set to autofit,
false
otherwisepublic void setSpan(int s)
Column
s
must be greater than 0 in order to have effect on
the resulting xml.
No other columns must be added within the span of this column:
Column column = table.addColumn(5); // adds a column with index 5 column.setWidth(25.2); // do some formatting on the column column.setSpan(3); // span a total of 4 columns // illegal: first free index = 5 + 3 + 1 = 9 // Column column2 = table.addColumn(8);
setSpan
in interface Column
s
- The number of additional columns to include in the span.public int getSpan()
Column
getSpan
in interface Column
public void setWidth(double w)
Column
setWidth
in interface Column
w
- The width of the column (in points).public double getWidth()
Column
0.0
may indicate this column has a default width.
getWidth
in interface Column
public void setHidden(boolean hide)
Column
setHidden
in interface Column
hide
- true
if this column must not be displayed.public boolean isHidden()
Column
isHidden
in interface Column
public String getTagName()
XLElement
getTagName
in interface XLElement
public String getNameSpace()
XLElement
getNameSpace
in interface XLElement
public String getPrefix()
XLElement
getPrefix
in interface XLElement
public Element assemble(Element parent, GIO gio)
XLElement
Element
. Attaches the new element to it's
parent-element if needed.
assemble
in interface XLElement
parent
- the parent-element to which the new formed element
will be appendedgio
- a global information object
public void setAttributes(Attributes attrs)
AbstractXLElement
setAttributes
in interface XLElement
setAttributes
in class AbstractXLElement
attrs
- the attributes found on the elementpublic void setIndex(int index)
Table.columnIterator()
to set the
index of this column during assembly.
setIndex
in interface Column
index
- the index of this columnpublic int getIndex()
Column
getIndex
in interface Column
|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |