Class LinkUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.LinkUIDefinition
-
public class LinkUIDefinition extends UIDefinition
Implementation of the Link UI definition.
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description LinkUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilterEditorProperties(Field field)
Computes properties to initialize and set the field in a Smartclient grid filter.String
getFilterEditorType()
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
convertToClassicString, createFromClassicString, createJsonValueFromClassicValueString, establishGridConfigurationSettings, formatValueFromSQL, formatValueToSQL, getCellAlign, getDataSourceParameters, getDefaultValue, getDefaultValueFromSQLExpression, getDomainType, getFieldProperties, getFieldProperties, getFieldPropertiesFirstRecord, getFieldPropertiesWithoutCombo, getFilterEditorPropertiesProperty, 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.
-
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.
-
getFilterEditorProperties
public String getFilterEditorProperties(Field field)
Description copied from class:UIDefinition
Computes properties to initialize and set the field in a Smartclient grid filter. 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:
getFilterEditorProperties
in classUIDefinition
- Parameters:
field
- the field for which the information should be computed.- Returns:
- a JSONObject string which is used to initialize the formitem.
-
-