Package com.independentsoft.office.odf
Class Column
java.lang.Object
com.independentsoft.office.odf.Column
Represents the attributes for every column in a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the default cell style.intGets the number of columns to which a column description applies.getStyle()Gets the style.Specifies whether a column is visible.voidsetDefaultCellStyle(String defaultCellStyle)Sets the default cell style.voidsetNumberOfRepeatedColumns(int numberOfRepeatedColumns)Sets the number of columns to which a column description applies.voidSets the style.voidsetVisibility(Visibility visibility)Specifies whether a column is visible.toString()Converts the value of the current Column object to its equivalent string representation.
-
Constructor Details
-
Column
public Column()Initializes a new instance of the Column class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Column object to its equivalent string representation. -
getStyle
Gets the style.- Returns:
- the style
-
setStyle
Sets the style.- Parameters:
style- the new style
-
getDefaultCellStyle
Gets the default cell style.- Returns:
- the default cell style
-
setDefaultCellStyle
Sets the default cell style.- Parameters:
defaultCellStyle- the new default cell style
-
getVisibility
Specifies whether a column is visible.- Returns:
- the visibility
-
setVisibility
Specifies whether a column is visible.- Parameters:
visibility- the new visibility
-
getNumberOfRepeatedColumns
public int getNumberOfRepeatedColumns()Gets the number of columns to which a column description applies. If two or more columns are adjoining, and have the same style, this attribute may be used to describe them with a single element.- Returns:
- the number of repeated columns
-
setNumberOfRepeatedColumns
public void setNumberOfRepeatedColumns(int numberOfRepeatedColumns)Sets the number of columns to which a column description applies. If two or more columns are adjoining, and have the same style, this attribute may be used to describe them with a single element.- Parameters:
numberOfRepeatedColumns- the new number of repeated columns
-