Package org.apache.poi.hssf.record
Class DefaultColWidthRecord
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.DefaultColWidthRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
Specifies the default width for columns that have no specific width set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default column width is 8 charactersstatic final short -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncopy()intget the default column widthshortgetSid()return the non static version of the id for this record.voidvoidsetColWidth(int width) set the default column widthMethods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Field Details
-
sid
public static final short sid- See Also:
-
DEFAULT_COLUMN_WIDTH
public static final int DEFAULT_COLUMN_WIDTHThe default column width is 8 characters- See Also:
-
-
Constructor Details
-
DefaultColWidthRecord
public DefaultColWidthRecord() -
DefaultColWidthRecord
-
DefaultColWidthRecord
-
-
Method Details
-
setColWidth
public void setColWidth(int width) set the default column width- Parameters:
width- defaultwidth for columns
-
getColWidth
public int getColWidth()get the default column width- Returns:
- defaultwidth for columns
-
serialize
-
getSid
public short getSid()Description copied from class:Recordreturn the non static version of the id for this record. -
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable- Specified by:
copyin classStandardRecord
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
getGenericProperties
-