Class WidgetInFormUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.myob.widgetinform.WidgetInFormUIDefinition
-
public class WidgetInFormUIDefinition extends UIDefinition
Implementation of the Widget in Form UIdefinition- Author:
- huehner
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description WidgetInFormUIDefinition()
-
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
getFormEditorType()
boolean
showHover()
This method determines if the UI definition should include the showHover property as part of the grid field 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, getFilterEditorPropertiesProperty, getFilterEditorType, getGridEditorFieldProperties, getGridEditorType, getGridFieldName, getGridFieldProperties, getName, getParameterProperties, getParameterWidth, getParentType, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getTypeProperties, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference
-
-
-
-
Method Detail
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
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.
-
showHover
public boolean showHover()
Description copied from class:UIDefinition
This method determines if the UI definition should include the showHover property as part of the grid field properties. Returnstrue
by default.- Overrides:
showHover
in classUIDefinition
- Returns:
true
if fields using this UI definition should display their text on a hover box, otherwise returnfalse
-
-