Class RelevantCharacteristicUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.materialmgmt.RelevantCharacteristicUIDefinition
-
public class RelevantCharacteristicUIDefinition extends UIDefinition
UI definition for displaying the values of the characteristics which are linked to a relevant characteristic
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description RelevantCharacteristicUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldProperties(Field field)
Computes properties to initialize and set the field in a Smartclient form.String
getFilterEditorPropertiesProperty(Field field)
Returns the filterEditorProperties property set on the gridfield.String
getFilterEditorType()
String
getFormEditorType()
String
getGridEditorFieldProperties(Field field)
Computes properties to initialize and set the field in a Smartclient grid cell when it is being edited.String
getGridFieldProperties(Field field)
Computes properties to initialize and set the field in a Smartclient grid cell.String
getTypeProperties()
Computes the properties used to define the type, this includes all the Smartclient SimpleType properties.-
Methods inherited from class org.openbravo.client.kernel.reference.UIDefinition
convertToClassicString, createFromClassicString, createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getCellAlign, getDataSourceParameters, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldProperties, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorProperties, getGridEditorType, getGridFieldName, getName, getParameterProperties, getParameterWidth, getParentType, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference, showHover
-
-
-
-
Method Detail
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
getFilterEditorType
public String getFilterEditorType()
- Overrides:
getFilterEditorType
in classUIDefinition
- Returns:
- the form item type used for filtering in grids. As a default will return
UIDefinition.getFormEditorType()
-
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.
-
getGridEditorFieldProperties
public String getGridEditorFieldProperties(Field field)
Description copied from class:UIDefinition
Computes properties to initialize and set the field in a Smartclient grid cell when it is being edited. 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:
getGridEditorFieldProperties
in classUIDefinition
- Parameters:
field
- the field for which the information should be computed.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
getFilterEditorPropertiesProperty
public String getFilterEditorPropertiesProperty(Field field)
Description copied from class:UIDefinition
Returns the filterEditorProperties property set on the gridfield. Note for implementations in the subclass: field maybe null.- Overrides:
getFilterEditorPropertiesProperty
in classUIDefinition
- Parameters:
field
- the field to generate the filter editor properties for, note it is allowed to pass null, implementors should gracefully handle this.
-
getFieldProperties
public String getFieldProperties(Field field)
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. NOTE: the field parameter may be null, implementors of subclasses should take this into account.- Overrides:
getFieldProperties
in classUIDefinition
- Parameters:
field
- the field for which the information should be computed. NOTE: the caller is allowed to pass null for cases where the field properties are needed for a FormItem which is not backed by an Openbravo field.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
getTypeProperties
public String getTypeProperties()
Description copied from class:UIDefinition
Computes the properties used to define the type, this includes all the Smartclient SimpleType properties.- Overrides:
getTypeProperties
in classUIDefinition
- Returns:
- a javascript string which can be included in the javascript defining the SimpleType. The default implementation returns an empty string.
-
-