org.apache.poi.hssf.record
public final class StyleRecord extends StandardRecord
REFERENCE: PG 390 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
StyleRecord()
creates a new style record, initially set to 'built-in'
|
StyleRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
protected int |
getDataSize() |
java.lang.String |
getName()
get the style's name
|
short |
getSid()
return the non static version of the id for this record.
|
int |
getXFIndex()
get the actual index of the style extended format record
|
boolean |
isBuiltin() |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setBuiltinStyle(int builtinStyleId)
if this is a builtin style set the number of the built in style
|
void |
setName(java.lang.String name)
set the style's name
|
void |
setOutlineStyleLevel(int level)
set the row or column level of the style (if builtin 1||2)
|
void |
setXFIndex(int xfIndex)
set the actual index of the style extended format record
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
clone, cloneViaReserialise, serialize
public static final short sid
public StyleRecord()
public StyleRecord(RecordInputStream in)
public void setXFIndex(int xfIndex)
xfIndex
- of the xf recordpublic int getXFIndex()
getXFIndex()
public void setName(java.lang.String name)
name
- of the stylepublic void setBuiltinStyle(int builtinStyleId)
builtinStyleId
- style number (0-7)public void setOutlineStyleLevel(int level)
public boolean isBuiltin()
public java.lang.String getName()
public java.lang.String toString()
Record
protected int getDataSize()
getDataSize
in class StandardRecord
public void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
}serialize
in class StandardRecord
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.