Class PasswordUIDefinition
- java.lang.Object
-
- org.openbravo.client.kernel.reference.UIDefinition
-
- org.openbravo.client.kernel.reference.StringUIDefinition
-
- org.openbravo.client.kernel.reference.PasswordUIDefinition
-
public class PasswordUIDefinition extends StringUIDefinition
Implementation of the encrypted string (password) ui definition. This UIDefinition is used for both encrypted (reversible) and hashed storage of passwords.- Author:
- shuehner
- See Also:
HashedStringDomainType
,EncryptedStringDomainType
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.reference.UIDefinition
log
-
-
Constructor Summary
Constructors Constructor Description PasswordUIDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFormEditorType()
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.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.StringUIDefinition
getFieldProperties, getFilterEditorPropertiesProperty, getFilterEditorType, getParentType
-
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, getGridEditorFieldProperties, getGridEditorType, getGridFieldName, getName, getParameterProperties, getParameterWidth, getReadOnlyEditorType, getReference, getSafeBoolean, getShowHoverGridFieldSettings, getValueFromSQLDefault, getValueInComboReference, getValueInComboReference, parseSQL, readGridConfigurationSetting, removeAttributeFromString, setReference
-
-
-
-
Method Detail
-
getFormEditorType
public String getFormEditorType()
- Overrides:
getFormEditorType
in classStringUIDefinition
- Returns:
- the form item type used for editing this reference in a form.
-
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 classStringUIDefinition
- Parameters:
field
- the field for which the information should be computed.- 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.
-
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
-
-