Class CharacteristicsUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.StringUIDefinition
-
- org.openbravo.client.kernel.reference.TextUIDefinition
-
- org.openbravo.client.kernel.reference.CharacteristicsUIDefinition
-
public class CharacteristicsUIDefinition extends TextUIDefinition
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description CharacteristicsUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldProperties(Field field, boolean getValueFromSession)
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
getGridEditorType()
String
getReadOnlyEditorType()
-
Methods inherited from class org.openbravo.client.kernel.reference.TextUIDefinition
getGridFieldProperties, getParentType
-
Methods inherited from class org.openbravo.client.kernel.reference.StringUIDefinition
getFieldProperties
-
Methods inherited from class org.openbravo.client.kernel.reference.UIDefinition
convertToClassicString, createFromClassicString, createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getCellAlign, getDataSourceParameters, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorProperties, getGridEditorFieldProperties, getGridFieldName, getName, getParameterProperties, getParameterWidth, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getTypeProperties, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference, showHover
-
-
-
-
Method Detail
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classTextUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
getFilterEditorType
public String getFilterEditorType()
- Overrides:
getFilterEditorType
in classTextUIDefinition
- Returns:
- the form item type used for filtering in grids. As a default will return
UIDefinition.getFormEditorType()
-
getGridEditorType
public String getGridEditorType()
- Overrides:
getGridEditorType
in classTextUIDefinition
- Returns:
- the form item type used for editing this reference in a grid. As a default will return
UIDefinition.getFormEditorType()
-
getReadOnlyEditorType
public String getReadOnlyEditorType()
- Overrides:
getReadOnlyEditorType
in classUIDefinition
- Returns:
- the read only editor type. As default will return "".
-
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.
-
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 classStringUIDefinition
- Parameters:
field
- the field to generate the filter editor properties for, note it is allowed to pass null, implementors should gracefully handle this.
-
-