Bugzilla Bug 9831

Problems with the cell format when setting border


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-07-20 14:10:57 +00:00
parent 069f4ce878
commit 6c4dcf82e8
2 changed files with 6 additions and 2 deletions

View File

@ -67,6 +67,7 @@ import org.apache.poi.util.POILogFactory;
import org.apache.poi.hssf.record.*;
import org.apache.poi.hssf.util.SheetReferences;
import org.apache.poi.hssf.util.HSSFColor;
/**
* Workbook
@ -1469,6 +1470,10 @@ public class Workbook {
retval.setPaletteOptions(( short ) 0);
retval.setAdtlPaletteOptions(( short ) 0);
retval.setFillPaletteOptions(( short ) 0x20c0);
retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);
retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);
retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);
retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);
return retval;
}

View File

@ -251,7 +251,6 @@ public class ExtendedFormatRecord
* @param data data of the record (should not contain sid/len)
* @param offset of the record's data
*/
public ExtendedFormatRecord(short id, short size, byte [] data,
int offset)
{
@ -1733,7 +1732,7 @@ public class ExtendedFormatRecord
/**
* get the background palette color index
*
* @retyrb color palette index
* @return color palette index
* @see #getFillPaletteOptions()
*/