|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.bean.TextParameter
public class TextParameter
The TextParameter
class is used for exporting to Text. It contains all the
information for exporting report results to normal text and SDF (for example CSV) text formats.
Constructor Summary | |
---|---|
TextParameter()
|
Method Summary | |
---|---|
TextParameter |
copy()
Adding this method for MailInformation can clone this object. |
char |
getDelimiter()
Get the delimiter. |
int |
getResolution()
Gets the resolution. |
int |
getUDCHHeight()
Gets the user defined character height. |
int |
getUDCHWidth()
Gets the user defined character width. |
boolean |
isCompress()
Gets the flag that indexes whether to compress reports when exporting to text. |
boolean |
IsForMail()
Gets the flag whether to produce the file for mail body. |
boolean |
isForWinExport()
Gets the flag that indexes whether to export to Windows system or not. |
boolean |
isHasHeadFoot()
Gets the flag that indexes whether to include the header and footer when exporting to text. |
boolean |
isNormalTextFile()
Gets the flag that indexes whether to export to normal text or not. |
boolean |
isRepeat()
Gets the flag that indexes whether to repeat the above line content if the column content is null. |
boolean |
isUseDelimiter()
Uses the delimiter to delimit each column. |
boolean |
isUseQuoteMark()
Gets the flag to use quotation marks. |
void |
setCompress(boolean isCompress)
Sets the flag that indexes whether to compress reports when exporting to text. |
void |
setDelimiter(char delimiter)
Sets the delimiter if it is needed when exporting to SDF file. |
void |
setForMail(boolean forMail)
Sets the flag whether to produce the text file for email body. |
void |
setForWinExport(boolean forWin)
Sets the flag that indexes whether to export reports to Windows system or not. |
void |
setHasHeadFoot(boolean hasHeadFoot)
Sets the flag that indexes whether to include the header and footer when exporting to text. |
void |
setNormalTextFile(boolean isNormalText)
Sets the flag that indexes whether to export to normal text or not. |
void |
setRepeat(boolean isRepeat)
Sets the flag that indexes whether to repeat the above line content if the column content is null. |
void |
setResolution(int resolution)
Sets the resolution when exporting reports to text, which may be 96 or 72. |
void |
setUDCHHeight(int udchHeight)
Sets the user defined character height. |
void |
setUDCHWidth(int udchWidth)
Sets the user defined character width. |
void |
setUseQuoteMark(boolean useQuoteMark)
Sets the falg that indexes whether to use quotation marks or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextParameter()
Method Detail |
---|
public void setNormalTextFile(boolean isNormalText)
isNormalText
- the flag whether it is normal format text or notpublic boolean isNormalTextFile()
public void setHasHeadFoot(boolean hasHeadFoot)
hasHeadFoot
- the flag whether to export the header and footer to file or notpublic boolean isHasHeadFoot()
public void setCompress(boolean isCompress)
isCompress
- the flag whether to compress reports or not
Notice: The compressing processor does not work satisfactorily. So we strongly advise that you set the flag
to false.public boolean isCompress()
public void setResolution(int resolution)
resolution
- the resolution when converting the Unit to pixelpublic int getResolution()
public void setForWinExport(boolean forWin)
forWin
- the flag whether to export to Windows system or notpublic boolean isForWinExport()
public void setDelimiter(char delimiter)
delimiter
- the delimiter of each data for Delimiter format text file
Notice: only for SDF text exportpublic boolean isUseDelimiter()
public char getDelimiter()
public void setRepeat(boolean isRepeat)
isRepeat
- the flag whether to repeat the above line content if the column content is null
Notice: only for SDF filepublic boolean isRepeat()
public void setForMail(boolean forMail)
forMail
- the flag whether the result is for mail body or notpublic boolean IsForMail()
public void setUseQuoteMark(boolean useQuoteMark)
useQuoteMark
- the flag whether to use quotation marks for data or not
Notice: only for SDF text file exportpublic boolean isUseQuoteMark()
public void setUDCHWidth(int udchWidth)
udchWidth
- the user defined character width
Notice: If the udchHeight is bigger than zero, the width value must be less than 11. Otherwise the width value will
have no effect.
Notice: only for exporting to normal text filepublic int getUDCHWidth()
public void setUDCHHeight(int udchHeight)
udchHeight
- the user defined character height
Notice: only for exporting to normal text filepublic int getUDCHHeight()
public TextParameter copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |