|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.common.constants.DisplayTypeConstants
org.compiere.common.FieldType
org.compiere.util.DisplayType
public final class DisplayType
System Display Types.
SELECT AD_Reference_ID, Name FROM AD_Reference WHERE ValidationType = 'D'
| Field Summary |
|---|
| Fields inherited from class org.compiere.common.constants.DisplayTypeConstants |
|---|
Account, Amount, Assignment, Binary, Button, Color, CostPrice, Date, DateTime, FileName, FilePath, Graph, ID, Image, Integer, Label, List, Location, Locator, Memo, Number, PAttribute, PrinterName, Quantity, RowID, Search, String, Table, TableDir, Text, TextLong, Time, URL, YesNo |
| Constructor Summary | |
|---|---|
DisplayType()
|
|
| Method Summary | |
|---|---|
static Object |
convertFromString(int displayType,
String stringValue)
Convert String to native data type |
static Class<?> |
getClass(int displayType,
boolean yesNoAsBoolean)
Return Storage Class. |
static SimpleDateFormat |
getDateFormat_JDBC()
JDBC Date Format YYYY-MM-DD |
static SimpleDateFormat |
getDateFormat()
Return Date Format |
static SimpleDateFormat |
getDateFormat(int displayType)
Return format for date displayType |
static SimpleDateFormat |
getDateFormat(int displayType,
Language language)
Return format for date displayType |
static SimpleDateFormat |
getDateFormat(Language language)
Return Date Format |
static String |
getDescription(int displayType)
Get Description |
static DecimalFormat |
getNumberFormat(int displayType)
Return Format for numeric DisplayType |
static DecimalFormat |
getNumberFormat(int displayType,
Language language)
Return Format for numeric DisplayType |
static DecimalFormat |
getNumberFormat(int displayType,
Language language,
int minFractionDigits)
Return Format for numeric DisplayType |
static String |
getSQLDataType(int displayType,
String columnName,
int fieldLength)
Get SQL DataType |
| Methods inherited from class org.compiere.common.FieldType |
|---|
getDefaultPrecision, isCaseSensitive, isClientLookup, isDate, isID, isLOB, isLookup, isNumeric, isText, isTextArea |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayType()
| Method Detail |
|---|
public static DecimalFormat getNumberFormat(int displayType,
Language language)
displayType - Display Type (default Number)language - Language
public static DecimalFormat getNumberFormat(int displayType,
Language language,
int minFractionDigits)
displayType - Display Type (default Number)language - LanguageminFractionDigits - Minimum Number of Decimal Digits
public static DecimalFormat getNumberFormat(int displayType)
displayType - Display Type
public static SimpleDateFormat getDateFormat()
public static SimpleDateFormat getDateFormat(Language language)
language - Language
public static SimpleDateFormat getDateFormat(int displayType)
displayType - Display Type
public static SimpleDateFormat getDateFormat(int displayType,
Language language)
displayType - Display Type (default Date)language - Language
public static SimpleDateFormat getDateFormat_JDBC()
public static Class<?> getClass(int displayType,
boolean yesNoAsBoolean)
displayType - Display TypeyesNoAsBoolean - - yes or no as boolean
public static String getSQLDataType(int displayType,
String columnName,
int fieldLength)
displayType - AD_Reference_IDcolumnName - namefieldLength - length
public static String getDescription(int displayType)
displayType - display Type
public static Object convertFromString(int displayType,
String stringValue)
displayType - data typestringValue - string
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||