public class Column
extends java.lang.Object
implements java.lang.Cloneable, java.io.Externalizable
| Constructor and Description |
|---|
Column()
Used internally to implement serialization functionality.
|
Column(TableNode table)
Initializes a new instance of the Column class and assigns the
specified table as its parent.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Copies the column properties to a new Column instance.
|
ColumnStyle |
getColumnStyle()
Gets a value indicating whether this column is automatically resized
when the table is resized.
|
float |
getWidth()
Gets the width of this column.
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context) |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
protected void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context) |
void |
setColumnStyle(ColumnStyle value)
Sets a value indicating whether this column should be automatically
resized when the table is resized.
|
void |
setWidth(float value)
Sets the width of this column and all cells inside it.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public Column(TableNode table)
table - The TableNode that contains this column.public Column()
public java.lang.Object clone()
clone in class java.lang.ObjectColumn instance.public float getWidth()
public void setWidth(float value)
value - A float value specifying the column width.public ColumnStyle getColumnStyle()
ColumnStyle enumeration.public void setColumnStyle(ColumnStyle value)
value - A member of the ColumnStyle enumeration.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected void saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
protected void loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException