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

ExpPtg

public class ExpPtg extends Ptg
author
andy
author
Jason Height (jheight at chariot dot net dot au)
author
dmui (save existing implementation)

Fields Summary
private static final int
SIZE
public static final short
sid
private short
field_1_first_row
private short
field_2_first_col
Constructors Summary
public ExpPtg()
Creates new ExpPtg


        

     
    
    
public ExpPtg(RecordInputStream in)
Creates new ExpPtg

      field_1_first_row = in.readShort();
      field_2_first_col = in.readShort();
    
Methods Summary
public java.lang.Objectclone()

	ExpPtg result = new ExpPtg();
        result.field_1_first_row = field_1_first_row;
        result.field_2_first_col = field_2_first_col;        
        return result;
    
public shortgetColumn()

      return field_2_first_col;
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public shortgetRow()

      return field_1_first_row;
    
public intgetSize()

        return SIZE;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        throw new RecordFormatException("Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula");
    
public java.lang.StringtoString()

        StringBuffer buffer = new StringBuffer("[Array Formula or Shared Formula]\n");
        buffer.append("row = ").append(getRow()).append("\n");
        buffer.append("col = ").append(getColumn()).append("\n");
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

      array[offset+0]= (byte) (sid);
      LittleEndian.putShort(array,offset+1,field_1_first_row);
      LittleEndian.putShort(array,offset+3,field_2_first_col);