|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.report.xls.GlobalWorksheet
public class GlobalWorksheet
It is a global object to set some global properties for a WorkBook.
Method Summary | |
---|---|
void |
addColor(int color)
Adds a color to the palette. |
int |
getColorIndex(int color)
Gets the index of the Color . |
int |
getFontIndex(BFont font)
Gets the index of the BFont . |
short |
getFormatIndex(java.lang.String formatString,
java.lang.String encoding)
Gets the format index that will be set in the Xf . |
boolean |
getShareLabel()
Deprecated. it is not be used |
java.lang.String |
getString(int id)
Gets a particular string in shared string table by its index. |
java.lang.String |
getUsername()
Gets the username for the user who have created the report. |
int |
getXfIndex(Xf xf)
Gets the index of the Xf . |
void |
makePalette()
Adds the palette to the right location of the GlobalWorksheet if user modified the default color in the palette. |
void |
setCurrentCountry(short ccountry)
Sets the current country. |
void |
setDefaultCountry(short dcountry)
Sets the default country. |
void |
setDsf(short fdsf)
Sets the DSF flag. |
void |
setFNGroupCount(short count)
Sets the number of built-in functions. |
void |
setShareLabel(boolean shareLabel)
Deprecated. it is not be used |
void |
setUsername(java.lang.String username)
Sets the username for the user who created the report. |
void |
setUseSelfFlag(short flag)
Sets whether to turn the flag on or off. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public short getFormatIndex(java.lang.String formatString, java.lang.String encoding)
formatString
- the format stringencoding
- it is't used and can be nullpublic int getXfIndex(Xf xf)
Xf
.
xf
- the Xf whose index the user wants to getpublic int getFontIndex(BFont font)
BFont
.
font
- the BFont whose index the user wants to getpublic int getColorIndex(int color)
Color
.
color
- the RGB value of a Color
public void addColor(int color)
color
- the RGB value of a Color
public void makePalette()
public void setUsername(java.lang.String username)
username
- of the user who has logged inpublic java.lang.String getUsername()
public void setDsf(short fdsf)
fdsf
- (0-off,1-on)public void setFNGroupCount(short count)
count
- - number of built-in functionspublic void setUseSelfFlag(short flag)
flag
- whether to use natural language formulas or not
1 for true; 0 for falsepublic void setDefaultCountry(short dcountry)
dcountry
- ID to set (1 = US)public void setCurrentCountry(short ccountry)
ccountry
- ID to set (1 = US)public java.lang.String getString(int id)
id
- index to the strings in shared string table
public void setShareLabel(boolean shareLabel)
shareLabel
- public boolean getShareLabel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |