| Method from org.apache.cocoon.poi.hssf.record.LabelSSTRecord Detail: |
protected void fillFields(byte[] data,
short size,
int offset) {
field_1_row = LittleEndian.getShort(data, 0 + offset);
field_2_column = LittleEndian.getShort(data, 2 + offset);
field_3_xf_index = LittleEndian.getShort(data, 4 + offset);
field_4_sst_index = LittleEndian.getInt(data, 6 + offset);
}
|
public short getColumn() {
return field_2_column;
}
|
public short getRow() {
return field_1_row;
}
|
public int getSSTIndex() {
return field_4_sst_index;
}
get the index to the string in the SSTRecord |
public short getSid() {
return this.sid;
}
|
public short getXFIndex() {
return field_3_xf_index;
}
get the index to the extended format record |
public boolean isAfter(CellValueRecordInterface i) {
if (this.getRow() < i.getRow())
{
return false;
}
if ((this.getRow() == i.getRow())
&& (this.getColumn() < i.getColumn()))
{
return false;
}
if ((this.getRow() == i.getRow())
&& (this.getColumn() == i.getColumn()))
{
return false;
}
return true;
}
|
public boolean isBefore(CellValueRecordInterface i) {
if (this.getRow() > i.getRow())
{
return false;
}
if ((this.getRow() == i.getRow())
&& (this.getColumn() > i.getColumn()))
{
return false;
}
if ((this.getRow() == i.getRow())
&& (this.getColumn() == i.getColumn()))
{
return false;
}
return true;
}
|
public boolean isEqual(CellValueRecordInterface i) {
return ((this.getRow() == i.getRow())
&& (this.getColumn() == i.getColumn()));
}
|
public boolean isInValueSection() {
return true;
}
|
public boolean isValue() {
return true;
}
|
public byte[] serialize() {
byte[] retval = new byte[ 14 ];
LittleEndian.putShort(retval, 0, sid);
LittleEndian.putShort(retval, 2, ( short ) 10);
LittleEndian.putShort(retval, 4, getRow());
LittleEndian.putShort(retval, 6, getColumn());
LittleEndian.putShort(retval, 8, getXFIndex());
LittleEndian.putInt(retval, 10, getSSTIndex());
return retval;
}
|
public void setColumn(short col) {
field_2_column = col;
}
|
public void setRow(short row) {
field_1_row = row;
}
|
public void setSSTIndex(int index) {
field_4_sst_index = index;
}
set the index to the string in the SSTRecord |
public void setXFIndex(short index) {
field_3_xf_index = index;
}
set the index to the extended format record |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("[LABELSST]\n");
buffer.append(" .row = ")
.append(Integer.toHexString(getRow())).append("\n");
buffer.append(" .column = ")
.append(Integer.toHexString(getColumn())).append("\n");
buffer.append(" .xfindex = ")
.append(Integer.toHexString(getXFIndex())).append("\n");
buffer.append(" .sstindex = ")
.append(Integer.toHexString(getSSTIndex())).append("\n");
buffer.append("[/LABELSST]\n");
return buffer.toString();
}
|
protected void validateSid(short id) {
if (id != sid)
{
throw new RecordFormatException("NOT A valid LabelSST RECORD");
}
}
|