Class ModelSelectorUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.ForeignKeyUIDefinition
-
- org.openbravo.userinterface.selector.reference.FKSelectorUIDefinition
-
- org.openbravo.userinterface.selector.reference.ModelSelectorUIDefinition
-
public class ModelSelectorUIDefinition extends FKSelectorUIDefinition
Implementation of the ui definition for the model selector.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description ModelSelectorUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getGridFieldName(Field fld)
String
getGridFieldProperties(Field field)
Computes properties to initialize and set the field in a Smartclient grid cell.-
Methods inherited from class org.openbravo.userinterface.selector.reference.FKSelectorUIDefinition
getDataSourceParameters, getDisplayFieldName, getFieldProperties, getFieldProperties, getFormEditorType, getParameterProperties
-
Methods inherited from class org.openbravo.client.kernel.reference.ForeignKeyUIDefinition
getFilterEditorPropertiesProperty, getFilterEditorType, getParentType, getSuperGridFieldName, getSuperGridFieldProperties, getTypeProperties
-
Methods inherited from class org.openbravo.client.kernel.reference.UIDefinition
convertToClassicString, createFromClassicString, createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getCellAlign, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorProperties, getGridEditorFieldProperties, getGridEditorType, getName, getParameterWidth, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference, showHover
-
-
-
-
Method Detail
-
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 classForeignKeyUIDefinition
- Parameters:
field
- the field for which the information should be computed.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
getGridFieldName
protected String getGridFieldName(Field fld)
- Overrides:
getGridFieldName
in classUIDefinition
-
-