|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.Worksheet
jet.report.xls.GlobalWorksheet
public class GlobalWorksheet
| Field Summary |
|---|
| Fields inherited from class jet.report.xls.Worksheet |
|---|
X, Y |
| Constructor Summary | |
|---|---|
GlobalWorksheet(java.lang.String encoding)
|
|
GlobalWorksheet(java.lang.String encoding,
boolean shareLabel)
Constructs GlobalWorksheet Creates an empty GlobalWorksheet object with a blank Worksheet and all the empty fields. |
|
| Method Summary | |
|---|---|
void |
addColor(int color)
add a color to the palette |
void |
addIsstinf(Isstinf isstinf)
add a Isstinf to the Extsst |
void |
addRecofFormula(int sheetNum)
|
int |
addString(BUnicode addrgb,
boolean use16bits)
Add a string and assert the encoding (8-bit or 16-bit) to be used. |
int |
delString(java.lang.String string,
boolean use16bits)
delete a special string in Sst |
short |
getBackup()
get the backup flag |
Backup |
getBackupRecord()
get record Backup. |
short |
getCodePage()
get the codepage for this workbook |
int |
getColorIndex(int color)
get the index of the Color |
short |
getCurrentCountry()
gets the current country |
short |
getDate()
gets whether or not to use 1904 date windowing (which means you'll be screwed in 2004) |
short |
getDefaultCountry()
gets the default country |
short |
getDsf()
get the DSF flag |
Xf |
getExFormatAt(int index)
gets the Xf at the given 0-based index |
short |
getFNGroupCount()
get the number of built-in functions |
int |
getFontIndex(BFont font)
get the index of the BFont |
short |
getFormatIndex(java.lang.String formatString,
java.lang.String encoding)
get format index that will be set in the Xf . |
boolean |
getFullPrecision()
get whether to use full precision or not. |
short |
getHideObj()
get hide object options |
int |
getNumExFormats()
get the number of ExtendedFormat records contained in this workbook. |
short |
getPassword()
get the password |
boolean |
getProt4REV()
get whether the this is protected shared/tracked workbook or not |
boolean |
getProtect()
get whether the sheet is protected or not |
short |
getProtPassword()
get the password |
boolean |
getRefreshAll()
get whether to refresh all external data when loading a sheet |
short |
getSaveLinkValues()
get the save ext links flag |
boolean |
getShareLabel()
|
java.lang.String |
getString(int j)
Get a particular string in Sst by its index |
java.lang.String |
getUsername()
get the username for the user that created the report. |
short |
getUseSelfFlag()
returns whether we use natural language formulas or not |
boolean |
getWindowProtect()
is this window protected or not |
int |
getXfIndex(Xf xf)
get the index of the Xf |
void |
insertSST()
use this function to add a Shared String Table to an existing sheet |
void |
makePalette()
add the palette to the right location of the GlobalWorksheet if user modify the default color in the palette |
void |
setBackup(short ubackup)
set the backup flag (0 for OFF, 1 for ON) |
void |
setCodePage(short code)
set the codepage for this workbook |
void |
setCurrentCountry(short ccountry)
sets the current country |
void |
setDate(short date)
sets whether or not to use 1904 date windowing (which means you'll be screwed in 2004) |
void |
setDefaultCountry(short dcountry)
sets the default country |
void |
setDsf(short fdsf)
set the DSF flag |
void |
setFNGroupCount(short count)
set the number of built-in functions |
void |
setFullPrecision(boolean fullprecision)
set whether to use full precision or not. |
void |
setHideObj(short hideobj)
set hide object options |
void |
setPassword(short password)
set the password |
void |
setProt4REV(boolean b)
set whether the this is protected shared/tracked workbook or not |
void |
setProtect(boolean bprotect)
set whether the sheet is protected or not |
void |
setProtPassword(short password)
set the encrypted password for shared-workbook |
void |
setRefreshAll(boolean refreshall)
set whether to refresh all external data when loading a sheet |
void |
setSaveLinkValues(short value)
set the save ext links flag |
void |
setShareLabel(boolean shareLabel)
|
void |
setUsername(java.lang.String username)
set the username for the user that created the report. |
void |
setUseSelfFlag(short flag)
turn the flag on or off |
void |
setWindowProtect(boolean protect)
set whether this window should be protected or not |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalWorksheet(java.lang.String encoding,
boolean shareLabel)
public GlobalWorksheet(java.lang.String encoding)
| Method Detail |
|---|
public Backup getBackupRecord()
public short getFormatIndex(java.lang.String formatString,
java.lang.String encoding)
format - the format stringpublic int getNumExFormats()
public Xf getExFormatAt(int index)
index - of the Extended format record (0-based)
public int getXfIndex(Xf xf)
xf - The Xf that the user want to get it indexpublic int getFontIndex(BFont font)
font - The BFont that the user want to get it indexpublic int getColorIndex(int color)
color - The int value of the color that the user want to get it indexpublic void addColor(int color)
color - The int value of the color that the user want to add to the palettepublic void makePalette()
public void insertSST()
public boolean getProt4REV()
public void setProt4REV(boolean b)
b - whether to protect the workbook or notpublic void setCodePage(short code)
code - - the codepage to setDEFCODEPAGEpublic short getCodePage()
DEFCODEPAGEpublic void setUsername(java.lang.String username)
username - of the user who is logged inpublic java.lang.String getUsername()
public void setDsf(short fdsf)
dsfflag - (0-off,1-on)public short getDsf()
public void setFNGroupCount(short count)
count - - number of functionspublic short getFNGroupCount()
public void setWindowProtect(boolean protect)
protect - protect or notpublic boolean getWindowProtect()
public void setProtect(boolean bprotect)
protect - whether to protect the sheet or notpublic boolean getProtect()
public void setPassword(short password)
password - representing the passwordpublic short getPassword()
public void setProtPassword(short password)
password - representing the passwordpublic short getProtPassword()
public void setBackup(short ubackup)
backup - backup flagpublic short getBackup()
public void setHideObj(short hideobj)
hide - options HIDE_ALL = 2; SHOW_PLACEHOLDERS = 1; SHOW_ALL = 0public short getHideObj()
public void setDate(short date)
date - flag - 0/1 (false,true)public short getDate()
public void setFullPrecision(boolean fullprecision)
fullprecision - - or notpublic boolean getFullPrecision()
public void setRefreshAll(boolean refreshall)
refreshall - or notpublic boolean getRefreshAll()
public void setSaveLinkValues(short value)
value - flag (0/1 -off/on)public short getSaveLinkValues()
public void setUseSelfFlag(short flag)
flag - whether to use natural language formulas or not
1 for true; 0 for falsepublic short getUseSelfFlag()
public void setDefaultCountry(short dcountry)
dcountry - ID to set (1 = US)public short getDefaultCountry()
public void setCurrentCountry(short ccountry)
ccountry - ID to set (1 = US)public short getCurrentCountry()
public java.lang.String getString(int j)
id - index into the strings in Sst
public int addString(BUnicode addrgb,
boolean use16bits)
USE THIS METHOD AT YOUR OWN RISK. IF YOU FORCE 8-BIT ENCODING, YOU MAY CORRUPT YOUR STRING. IF YOU FORCE 16-BIT ENCODING AND IT ISN'T NECESSARY, YOU WILL WASTE SPACE WHEN THIS RECORD IS WRITTEN OUT.
addrgb - string to be addeduseUTF16 - if true, forces 16-bit encoding. If false,
forces 8-bit encoding
public int delString(java.lang.String string,
boolean use16bits)
string - The string to be deleteduseUTF16 - if true, forces 16-bit encoding. If false,
forces 8-bit encoding
public void addIsstinf(Isstinf isstinf)
issrinf - The Isstinf to be addedpublic void addRecofFormula(int sheetNum)
public void setShareLabel(boolean shareLabel)
public boolean getShareLabel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||