public class TextParameter
extends java.lang.Object
implements java.io.Serializable
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 and Description |
---|
TextParameter() |
Modifier and Type | Method and Description |
---|---|
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 |
isNoFileExt() |
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 |
isSpaceTrim() |
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 |
setNoFileExt(boolean noFileExt) |
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 |
setSpaceTrim(boolean spaceTrim) |
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.
|
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()
public boolean isSpaceTrim()
public void setSpaceTrim(boolean spaceTrim)
public void setNoFileExt(boolean noFileExt)
public boolean isNoFileExt()