Package quadbase.reportdesigner.util
Class LogicalFormat
java.lang.Object
quadbase.reportdesigner.util.LogicalFormat
- All Implemented Interfaces:
IFormat
LogicalFormat
Class to format logical/boolean value
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1/0static final intT/Fstatic final intTrue/Falsestatic final intY/Nstatic final intYes/NoFields inherited from interface quadbase.reportdesigner.util.IFormat
BARCODE, DATETIME, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalFormatcreateFormat(String text) For internal use onlyDefine quadbase.reportdesigner.util.IFormat Format the object if it is an instance of Boolean, otherwise call the default toString() methodintGet the current formatintDefine quadbase.reportdesigner.util.IFormat Return the type of quadbase.reportdesigner.util.IFormatFor internal use onlyvoidsetformat(int format) Set logical format
-
Field Details
-
T_F
public static final int T_FT/F- See Also:
-
TRUE_FALSE
public static final int TRUE_FALSETrue/False- See Also:
-
YES_NO
public static final int YES_NOYes/No- See Also:
-
Y_N
public static final int Y_NY/N- See Also:
-
ONE_ZERO
public static final int ONE_ZERO1/0- See Also:
-
-
Constructor Details
-
LogicalFormat
public LogicalFormat(int format) Create a LogicalFormat instance- Parameters:
format- one of T_F, TRUE_FALSE, YES_NO, Y_N, ONE_ZERO
-
-
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.LOGICAL
-
format
Define quadbase.reportdesigner.util.IFormat Format the object if it is an instance of Boolean, otherwise call the default toString() method -
getformat
public int getformat()Get the current format- Parameters:
return- current format
-
setformat
public void setformat(int format) Set logical format- Parameters:
format- new format
-
getTextFormat
For internal use only- Specified by:
getTextFormatin interfaceIFormat
-
createFormat
For internal use only- Throws:
Exception
-