Package quadbase.reportdesigner.util
Class StringFormat
java.lang.Object
quadbase.reportdesigner.util.StringFormat
- All Implemented Interfaces:
IFormat
StringFormat
Class to format String value
-
Field Summary
Fields inherited from interface quadbase.reportdesigner.util.IFormat
BARCODE, DATETIME, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL -
Constructor Summary
ConstructorsConstructorDescriptionCreate a StringFormat instanceStringFormat(int maxChar) Create a StringFormat instance -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormatcreateFormat(String text) Create a StringFormat instanceDefine quadbase.reportdesigner.util.IFormat Format the object if it is an instance of Boolean, otherwise call the default toString() methodintDefine quadbase.reportdesigner.util.IFormat Return the type of quadbase.reportdesigner.util.IFormatintReturn the maximum number of characters that can be displayed on the report cell (column)Internal usevoidsetMaxCharacter(int i) Set the maximum number of characters that can be displayed on the report cell (column)
-
Constructor Details
-
StringFormat
public StringFormat(int maxChar) Create a StringFormat instance -
StringFormat
public StringFormat()Create a StringFormat instance
-
-
Method Details
-
getFormatType
public int getFormatType()Define quadbase.reportdesigner.util.IFormat Return the type of quadbase.reportdesigner.util.IFormat- Specified by:
getFormatTypein interfaceIFormat- Returns:
- IFormat.STRING
-
format
Define quadbase.reportdesigner.util.IFormat Format the object if it is an instance of Boolean, otherwise call the default toString() method -
setMaxCharacter
public void setMaxCharacter(int i) Set the maximum number of characters that can be displayed on the report cell (column) -
getMaxCharacter
public int getMaxCharacter()Return the maximum number of characters that can be displayed on the report cell (column) -
getTextFormat
Internal use- Specified by:
getTextFormatin interfaceIFormat
-
createFormat
Create a StringFormat instance- Throws:
Exception
-