FileDocCategorySizeDatePackage
WorkbookRecordList.javaAPI DocApache Poi 3.0.15727Mon Jan 01 12:39:36 GMT 2007org.apache.poi.hssf.model

WorkbookRecordList

public class WorkbookRecordList extends Object

Fields Summary
private List
records
private int
protpos
private int
bspos
private int
tabpos
private int
fontpos
private int
xfpos
private int
backuppos
private int
namepos
private int
supbookpos
private int
externsheetPos
private int
palettepos
Constructors Summary
Methods Summary
public voidadd(int pos, org.apache.poi.hssf.record.Record r)

        records.add(pos, r);
        if (getProtpos() >= pos) setProtpos( protpos + 1 );
        if (getBspos() >= pos) setBspos( bspos + 1 );
        if (getTabpos() >= pos) setTabpos( tabpos + 1 );
        if (getFontpos() >= pos) setFontpos( fontpos + 1 );
        if (getXfpos() >= pos) setXfpos( xfpos + 1 );
        if (getBackuppos() >= pos) setBackuppos( backuppos + 1 );
        if (getNamepos() >= pos) setNamepos(namepos+1);
        if (getSupbookpos() >= pos) setSupbookpos(supbookpos+1);
        if ((getPalettepos() != -1) && (getPalettepos() >= pos)) setPalettepos( palettepos + 1 );
        if (getExternsheetPos() >= pos) setExternsheetPos(getExternsheetPos() + 1);
    
public org.apache.poi.hssf.record.Recordget(int i)

        return (Record) records.get(i);
    
public intgetBackuppos()

        return backuppos;
    
public intgetBspos()

        return bspos;
    
public intgetExternsheetPos()
Returns the externsheetPos.

return
int

		return externsheetPos;
	
public intgetFontpos()

        return fontpos;
    
public intgetNamepos()
Returns the namepos.

return
int

		return namepos;
	
public intgetPalettepos()

        return palettepos;
    
public intgetProtpos()

        return protpos;
    
public java.util.ListgetRecords()

        return records;
    
public intgetSupbookpos()
Returns the supbookpos.

return
int

		return supbookpos;
	
public intgetTabpos()

        return tabpos;
    
public intgetXfpos()

        return xfpos;
    
public java.util.Iteratoriterator()

        return records.iterator();
    
public voidremove(int pos)

        records.remove(pos);
        if (getProtpos() >= pos) setProtpos( protpos - 1 );
        if (getBspos() >= pos) setBspos( bspos - 1 );
        if (getTabpos() >= pos) setTabpos( tabpos - 1 );
        if (getFontpos() >= pos) setFontpos( fontpos - 1 );
        if (getXfpos() >= pos) setXfpos( xfpos - 1 );
        if (getBackuppos() >= pos) setBackuppos( backuppos - 1 );
        if (getNamepos() >= pos) setNamepos(getNamepos()-1);
        if (getSupbookpos() >= pos) setSupbookpos(getSupbookpos()-1);
        if ((getPalettepos() != -1) && (getPalettepos() >= pos)) setPalettepos( palettepos - 1 );
        if (getExternsheetPos() >= pos) setExternsheetPos( getExternsheetPos() -1);
    
public voidsetBackuppos(int backuppos)

        this.backuppos = backuppos;
    
public voidsetBspos(int bspos)

        this.bspos = bspos;
    
public voidsetExternsheetPos(int externsheetPos)
Sets the externsheetPos.

param
externsheetPos The externsheetPos to set

		this.externsheetPos = externsheetPos;
	
public voidsetFontpos(int fontpos)

        this.fontpos = fontpos;
    
public voidsetNamepos(int namepos)
Sets the namepos.

param
namepos The namepos to set

		this.namepos = namepos;
	
public voidsetPalettepos(int palettepos)

        this.palettepos = palettepos;
    
public voidsetProtpos(int protpos)

        this.protpos = protpos;
    
public voidsetRecords(java.util.List records)

   // hold the position of the palette, if applicable


         
    
        this.records = records;
    
public voidsetSupbookpos(int supbookpos)
Sets the supbookpos.

param
supbookpos The supbookpos to set

		this.supbookpos = supbookpos;
	
public voidsetTabpos(int tabpos)

        this.tabpos = tabpos;
    
public voidsetXfpos(int xfpos)

        this.xfpos = xfpos;
    
public intsize()

        return records.size();