Package org.brerp.base.component
Class DisplayTypeFactory
java.lang.Object
org.brerp.base.component.DisplayTypeFactory
- All Implemented Interfaces:
IDisplayTypeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getClass(int displayType, boolean yesNoAsBoolean) getDateFormat(int displayType, Language language, String pattern) getDefaultPrecision(int displayType) getDescription(int displayType) getNumberFormat(int displayType, Language language, String pattern) getSQLDataType(int displayType, String columnName, int fieldLength) booleanisDate(int displayType) booleanisID(int displayType) booleanisLOB(int displayType) booleanisLookup(int displayType) booleanisNumeric(int displayType) booleanisText(int displayType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.adempiere.base.IDisplayTypeFactory
isList, isUUID
-
Constructor Details
-
DisplayTypeFactory
public DisplayTypeFactory()
-
-
Method Details
-
isID
public boolean isID(int displayType) - Specified by:
isIDin interfaceIDisplayTypeFactory- Returns:
- true if displayType is of int ID type
-
isNumeric
public boolean isNumeric(int displayType) - Specified by:
isNumericin interfaceIDisplayTypeFactory- Returns:
- true if displayType is of numeric type
-
getDefaultPrecision
- Specified by:
getDefaultPrecisionin interfaceIDisplayTypeFactory- Returns:
- default numeric precision for displayType
-
isText
public boolean isText(int displayType) - Specified by:
isTextin interfaceIDisplayTypeFactory- Returns:
- true if displayType is of text type
-
isDate
public boolean isDate(int displayType) - Specified by:
isDatein interfaceIDisplayTypeFactory- Returns:
- true if displayType is of date type
-
isLookup
public boolean isLookup(int displayType) - Specified by:
isLookupin interfaceIDisplayTypeFactory- Returns:
- true if displayType is of lookup type (usually a foreign key type)
-
isLOB
public boolean isLOB(int displayType) - Specified by:
isLOBin interfaceIDisplayTypeFactory- Returns:
- true if displayType is of LOB type
-
getNumberFormat
- Specified by:
getNumberFormatin interfaceIDisplayTypeFactory- Returns:
- DecimalFormat
-
getDateFormat
- Specified by:
getDateFormatin interfaceIDisplayTypeFactory- Returns:
- SimpleDateFormat
-
getClass
- Specified by:
getClassin interfaceIDisplayTypeFactory- Returns:
- Java type for displayType
-
getSQLDataType
- Specified by:
getSQLDataTypein interfaceIDisplayTypeFactory- Returns:
- SQL data type for displayType
-
getDescription
- Specified by:
getDescriptionin interfaceIDisplayTypeFactory- Returns:
- description for displayType
-