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 |
loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Loads the column from a JSON object.
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context) |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
protected void |
saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Saves the column as a JSON object.
|
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.Object
Column
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.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected 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
protected void saveToJson(com.mindfusion.common.JsonObject obj, JsonPersistContext context)
obj
- A JsonObject instance to contain the serialized data.context
- A JsonPersistContext object providing contextual information
about the serialization process and helper serialization methods.protected void loadFromJson(com.mindfusion.common.JsonObject obj, JsonPersistContext context)
obj
- A JsonObject containing the column's data.context
- A JsonPersistContext object providing contextual information about
the serialization process and helper serialization methods.