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(int index,
           BuiltInStyle data) | 
| StyleRecord(int index,
           XLUnicodeString user) | 
| StyleRecord(RecordInputStream in) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | getDataSize() | 
| 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 | setBuiltin(boolean flag) | 
| void | setBuiltinStyle(int builtinStyleId)if this is a builtin style set the number of the built in style | 
| void | setName(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 | 
| String | toString()get a string representation of the record (for biffview/debugging) | 
getRecordSize, serializeclone, cloneViaReserialise, serializepublic static final short sid
public StyleRecord()
public StyleRecord(int index,
                   XLUnicodeString user)
public StyleRecord(int index,
                   BuiltInStyle data)
public StyleRecord(RecordInputStream in)
public void setXFIndex(int xfIndex)
xfIndex - of the xf recordpublic int getXFIndex()
getXFIndex()public void setName(String name)
name - of the stylepublic void setBuiltinStyle(int builtinStyleId)
builtinStyleId - style number (0-7)public void setOutlineStyleLevel(int level)
public boolean isBuiltin()
public void setBuiltin(boolean flag)
public String getName()
public String toString()
Recordprotected int getDataSize()
getDataSize in class StandardRecordpublic void serialize(LittleEndianOutput out)
StandardRecordRecordBase.getRecordSize()} minus four
  ( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
  by thye superclass).serialize in class StandardRecordCopyright © 2020. All rights reserved.