FileDocCategorySizeDatePackage
AreaErrPtg.javaAPI DocApache Poi 3.0.13090Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record.formula

AreaErrPtg

public class AreaErrPtg extends AreaPtg
AreaErr - handles deleted cell area references.
author
Daniel Noll (daniel at nuix dot com dot au)

Fields Summary
public static final byte
sid
Constructors Summary
private AreaErrPtg()


     
    
        //Required for clone methods
        super();
    
public AreaErrPtg(RecordInputStream in)

        super(in);
    
Methods Summary
public java.lang.Objectclone()

        AreaErrPtg ptg = new AreaErrPtg();
        ptg.setFirstRow(getFirstRow());
        ptg.setFirstColumn(getFirstColumn());
        ptg.setLastRow(getLastRow());
        ptg.setLastColumn(getLastColumn());
        ptg.setFirstColRelative(isFirstColRelative());
        ptg.setLastColRelative(isLastColRelative());
        ptg.setFirstRowRelative(isFirstRowRelative());
        ptg.setLastRowRelative(isLastRowRelative());
        ptg.setClass(ptgClass);
        return ptg;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        return "#REF!";
    
public java.lang.StringtoString()

        StringBuffer buffer = new StringBuffer();

        buffer.append("AreaErrPtg\n");
        buffer.append("firstRow = " + getFirstRow()).append("\n");
        buffer.append("lastRow  = " + getLastRow()).append("\n");
        buffer.append("firstCol = " + getFirstColumn()).append("\n");
        buffer.append("lastCol  = " + getLastColumn()).append("\n");
        buffer.append("firstColRowRel= "
                      + isFirstRowRelative()).append("\n");
        buffer.append("lastColRowRel = "
                      + isLastRowRelative()).append("\n");
        buffer.append("firstColRel   = " + isFirstColRelative()).append("\n");
        buffer.append("lastColRel    = " + isLastColRelative()).append("\n");
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

        super.writeBytes(array, offset);
        array[offset] = (byte) (sid + ptgClass);