Package org.apache.poi.hssf.record
Class StyleExtRecord
- java.lang.Object
-
- org.apache.poi.hssf.record.RecordBase
-
- org.apache.poi.hssf.record.Record
-
- org.apache.poi.hssf.record.cont.ContinuableRecord
-
- org.apache.poi.hssf.record.StyleExtRecord
-
- All Implemented Interfaces:
Duplicatable,GenericRecord
public final class StyleExtRecord extends ContinuableRecord
The StyleExt record follow the Style record- Author:
- henrichen see [MS-XLS].pdf 2.4.270 StyleExt page 437
-
-
Field Summary
Fields Modifier and Type Field Description static byteCUSTOMstatic byteDATA_MODELstatic byteNEUTRALstatic byteNUMBER_FORMATstatic shortsidstatic byteTHEMED_CELLstatic byteTITLE
-
Constructor Summary
Constructors Constructor Description StyleExtRecord(int bits, int iCategory, BuiltInStyle builtInData, String stName, XFProp[] xfProps)StyleExtRecord(RecordInputStream in)construct a HeaderFooterRecord record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()StyleExtRecordcopy()BuiltInStylegetBuiltInData()intgetCategory()protected intgetDataSize()Map<String,Supplier<?>>getGenericProperties()HSSFRecordTypesgetGenericRecordType()StringgetName()XFPropgetProperty(int xfPropType)shortgetSid()return the non static version of the id for this record.booleanisBuiltIn()booleanisCustom()booleanisHidden()protected voidserialize(ContinuableRecordOutput out)Serializes this record's content to the supplied data output.voidsetBuiltIn(boolean flag)voidsetBuiltInData(BuiltInStyle data)voidsetCategory(int category)voidsetCustom(boolean flag)voidsetHidden(boolean flag)-
Methods inherited from class org.apache.poi.hssf.record.cont.ContinuableRecord
getRecordSize, serialize
-
Methods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
-
-
-
Field Detail
-
CUSTOM
public static final byte CUSTOM
- See Also:
- Constant Field Values
-
NEUTRAL
public static final byte NEUTRAL
- See Also:
- Constant Field Values
-
DATA_MODEL
public static final byte DATA_MODEL
- See Also:
- Constant Field Values
-
TITLE
public static final byte TITLE
- See Also:
- Constant Field Values
-
THEMED_CELL
public static final byte THEMED_CELL
- See Also:
- Constant Field Values
-
NUMBER_FORMAT
public static final byte NUMBER_FORMAT
- See Also:
- Constant Field Values
-
sid
public static final short sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StyleExtRecord
public StyleExtRecord(int bits, int iCategory, BuiltInStyle builtInData, String stName, XFProp[] xfProps)
-
StyleExtRecord
public StyleExtRecord(RecordInputStream in)
construct a HeaderFooterRecord record. No fields are interpreted and the record will be serialized in its original form more or less- Parameters:
in- the RecordInputstream to read the record from
-
-
Method Detail
-
getSid
public short getSid()
Description copied from class:Recordreturn the non static version of the id for this record.
-
copy
public StyleExtRecord copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classRecord- Returns:
- a deep copy of the implementing class / instance
-
getGenericRecordType
public HSSFRecordTypes getGenericRecordType()
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
getProperty
public XFProp getProperty(int xfPropType)
-
isBuiltIn
public boolean isBuiltIn()
-
setBuiltIn
public void setBuiltIn(boolean flag)
-
isHidden
public boolean isHidden()
-
setHidden
public void setHidden(boolean flag)
-
isCustom
public boolean isCustom()
-
setCustom
public void setCustom(boolean flag)
-
getCategory
public int getCategory()
-
setCategory
public void setCategory(int category)
-
getBuiltInData
public BuiltInStyle getBuiltInData()
-
setBuiltInData
public void setBuiltInData(BuiltInStyle data)
-
getName
public String getName()
-
getDataSize
protected int getDataSize()
-
serialize
protected void serialize(ContinuableRecordOutput out)
Description copied from class:ContinuableRecordSerializes this record's content to the supplied data output.The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so only BIFF data should be written by this method. Simple data types can be written with the standard
LittleEndianOutputmethods. Methods fromContinuableRecordOutputcan be used to serialize strings (withContinueRecords being written as required). If necessary, implementors can explicitly startContinueRecords (regardless of the amount of remaining space).- Specified by:
serializein classContinuableRecord- Parameters:
out- a data output stream
-
-