public final class NoteRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static NoteRecord[] |
EMPTY_ARRAY |
static short |
NOTE_HIDDEN
Flag indicating that the comment is hidden (default)
|
static short |
NOTE_VISIBLE
Flag indicating that the comment is visible
|
static short |
sid |
Constructor and Description |
---|
NoteRecord()
Construct a new
NoteRecord and
fill its data with the default values |
NoteRecord(NoteRecord other) |
NoteRecord(RecordInputStream in)
Read the record data from the supplied
RecordInputStream |
Modifier and Type | Method and Description |
---|---|
NoteRecord |
copy() |
java.lang.String |
getAuthor()
Name of the original comment author
|
int |
getColumn()
Return the column that contains the comment
|
protected int |
getDataSize() |
short |
getFlags()
Options flags.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getRow()
Return the row that contains the comment
|
int |
getShapeId()
Object id for OBJ record that contains the comment
|
short |
getSid()
return the non static version of the id for this record.
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setAuthor(java.lang.String author)
Name of the original comment author
|
void |
setColumn(int col)
Specify the column that contains the comment
|
void |
setFlags(short flags)
Options flag
|
void |
setRow(int row)
Specify the row that contains the comment
|
void |
setShapeId(int id)
Object id for OBJ record that contains the comment
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final NoteRecord[] EMPTY_ARRAY
public static final short NOTE_HIDDEN
public static final short NOTE_VISIBLE
public NoteRecord()
NoteRecord
and
fill its data with the default valuespublic NoteRecord(NoteRecord other)
public NoteRecord(RecordInputStream in)
RecordInputStream
in
- the RecordInputStream to read frompublic short getSid()
Record
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()
} minus four (
record header consisting of a 'ushort sid' and 'ushort reclength' has
already been written by their superclass).
serialize
in class StandardRecord
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public int getRow()
public void setRow(int row)
row
- the row that contains the commentpublic int getColumn()
public void setColumn(int col)
col
- the column that contains the commentpublic short getFlags()
NOTE_VISIBLE
,
NOTE_HIDDEN
public void setFlags(short flags)
flags
- the options flagNOTE_VISIBLE
,
NOTE_HIDDEN
public int getShapeId()
public void setShapeId(int id)
id
- the Object id for OBJ record that contains the commentpublic java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the name of the original author of the commentpublic NoteRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in class Record
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.