BARCODE, DATETIME, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL
Constructor and Description |
---|
StringFormat()
Create a StringFormat instance
|
StringFormat(int maxChar)
Create a StringFormat instance
|
Modifier and Type | Method and Description |
---|---|
static StringFormat |
createFormat(java.lang.String text)
Create a StringFormat instance
|
java.lang.String |
format(java.lang.Object obj)
Define quadbase.reportdesigner.util.IFormat Format the object if it is an instance of
Boolean, otherwise call the default toString() method
|
int |
getFormatType()
Define quadbase.reportdesigner.util.IFormat Return the type of
quadbase.reportdesigner.util.IFormat
|
int |
getMaxCharacter()
Return the maximum number of characters that can be displayed on the report cell (column)
|
java.lang.String |
getTextFormat()
Internal use
|
void |
setMaxCharacter(int i)
Set the maximum number of characters that can be displayed on the report cell (column)
|
public StringFormat(int maxChar)
public StringFormat()
public int getFormatType()
getFormatType
in interface IFormat
public java.lang.String format(java.lang.Object obj)
public void setMaxCharacter(int i)
public int getMaxCharacter()
public java.lang.String getTextFormat()
getTextFormat
in interface IFormat
public static StringFormat createFormat(java.lang.String text) throws java.lang.Exception
java.lang.Exception