Class TimeUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.TimeUIDefinition
-
public class TimeUIDefinition extends UIDefinition
Implementation of the date ui definition.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description TimeUIDefinition()
-
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.Object
createFromClassicString(String value)
Convert a string value as used in classic OB to a type safe value.String
getFieldProperties(Field field, boolean getValueFromSession)
Computes properties to initialize and set the field in a Smartclient form.String
getFormEditorType()
String
getGridFieldProperties(Field field)
Computes properties to initialize and set the field in a Smartclient grid cell.String
getParentType()
-
Methods inherited from class org.openbravo.client.kernel.reference.UIDefinition
createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getCellAlign, getDataSourceParameters, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldProperties, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorProperties, getFilterEditorPropertiesProperty, getFilterEditorType, getGridEditorFieldProperties, getGridEditorType, getGridFieldName, getName, getParameterProperties, getParameterWidth, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getTypeProperties, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference, showHover
-
-
-
-
Method Detail
-
getParentType
public String getParentType()
- Overrides:
getParentType
in classUIDefinition
- Returns:
- the Smartclient type from which this type inherits.
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
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 classUIDefinition
- Returns:
- the classic string
-
getGridFieldProperties
public String getGridFieldProperties(Field field)
Description copied from class:UIDefinition
Computes properties to initialize and set the field in a Smartclient grid cell. This can be the default value or the sets of values in the valuemap. Note: the result should be either empty, if not empty then it start with a comma and end without a comma, this to generate correct javascript.- Overrides:
getGridFieldProperties
in classUIDefinition
- Parameters:
field
- the field for which the information should be computed.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
getFieldProperties
public String getFieldProperties(Field field, boolean getValueFromSession)
Description copied from class:UIDefinition
Computes properties to initialize and set the field in a Smartclient form. This can be the default value or the sets of values in the valuemap.- Overrides:
getFieldProperties
in classUIDefinition
- Parameters:
field
- the field for which the information should be computed.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
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 classUIDefinition
- See Also:
PrimitiveDomainType.createFromString(String)
-
-