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 byte
CUSTOM
static byte
DATA_MODEL
static byte
NEUTRAL
static byte
NUMBER_FORMAT
static short
sid
static byte
THEMED_CELL
static byte
TITLE
-
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 Object
clone()
StyleExtRecord
copy()
BuiltInStyle
getBuiltInData()
int
getCategory()
protected int
getDataSize()
Map<String,Supplier<?>>
getGenericProperties()
HSSFRecordTypes
getGenericRecordType()
String
getName()
XFProp
getProperty(int xfPropType)
short
getSid()
return the non static version of the id for this record.boolean
isBuiltIn()
boolean
isCustom()
boolean
isHidden()
protected void
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.void
setBuiltIn(boolean flag)
void
setBuiltInData(BuiltInStyle data)
void
setCategory(int category)
void
setCustom(boolean flag)
void
setHidden(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:Record
return the non static version of the id for this record.
-
copy
public StyleExtRecord copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classRecord
- Returns:
- a deep copy of the implementing class / instance
-
getGenericRecordType
public HSSFRecordTypes getGenericRecordType()
- Specified by:
getGenericRecordType
in interfaceGenericRecord
- Specified by:
getGenericRecordType
in 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:ContinuableRecord
Serializes 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
LittleEndianOutput
methods. Methods fromContinuableRecordOutput
can be used to serialize strings (withContinueRecord
s being written as required). If necessary, implementors can explicitly startContinueRecord
s (regardless of the amount of remaining space).- Specified by:
serialize
in classContinuableRecord
- Parameters:
out
- a data output stream
-
-