Class DateTimeUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.DateUIDefinition
-
- org.openbravo.client.kernel.reference.DateTimeUIDefinition
-
- Direct Known Subclasses:
DateTimeFromDateUIDefinition
,DateTimeToDateUIDefinition
public class DateTimeUIDefinition extends DateUIDefinition
Implementation of the date time ui definition.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description DateTimeUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertToClassicString(Object value)
Creates a classic string which is used by callouts from an object value.String
convertToClassicStringInLocalTime(Object value)
Creates a classic string which is used by callouts from an object value.Object
createFromClassicString(String value)
Convert a string value as used in classic OB to a type safe value.protected SimpleDateFormat
getClassicFormat()
protected String
getClientFormatObject()
String
getFormEditorType()
String
getParentType()
-
Methods inherited from class org.openbravo.client.kernel.reference.DateUIDefinition
getCellAlign, getFieldProperties, getFilterEditorProperties, getFilterEditorType, getFormat, getParameterWidth, getTypeProperties, getValueFromSQLDefault, parse
-
Methods inherited from class org.openbravo.client.kernel.reference.UIDefinition
createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getDataSourceParameters, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldProperties, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorPropertiesProperty, getGridEditorFieldProperties, getGridEditorType, getGridFieldName, getGridFieldProperties, getName, getParameterProperties, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference, showHover
-
-
-
-
Method Detail
-
getParentType
public String getParentType()
- Overrides:
getParentType
in classDateUIDefinition
- Returns:
- the Smartclient type from which this type inherits.
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classDateUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
getClientFormatObject
protected String getClientFormatObject()
- Overrides:
getClientFormatObject
in classDateUIDefinition
-
convertToClassicString
public String convertToClassicString(Object value)
Description copied from class:UIDefinition
Creates a classic string which is used by callouts from an object value.- Overrides:
convertToClassicString
in classDateUIDefinition
- Returns:
- the classic string
-
convertToClassicStringInLocalTime
public String convertToClassicStringInLocalTime(Object value)
Creates a classic string which is used by callouts from an object value. Date is formatted as is, using local timezone- Parameters:
value
- Object to be converted- Returns:
- converted of formatted date string
-
getClassicFormat
protected SimpleDateFormat getClassicFormat()
- Overrides:
getClassicFormat
in classDateUIDefinition
-
createFromClassicString
public Object createFromClassicString(String value)
Description copied from class:UIDefinition
Convert a string value as used in classic OB to a type safe value.- Overrides:
createFromClassicString
in classDateUIDefinition
- See Also:
PrimitiveDomainType.createFromString(String)
-
-