Package com.axelor.db.annotations
Annotation Type Widget
-
@Documented @Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface Widget
Provides information about UI widget representing this field.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
copyable
Whether to copy this field when creating duplicate record.boolean
defaultNow
Whether the field should use current date/datetime as default value.String
help
Help text.boolean
hidden
Whether to hide widget by default.boolean
image
Use image widget for this binary field.boolean
massUpdate
Whether to allow mass update on this field.boolean
multiline
Should be used with String fields to mark whether to use multiline text widget.boolean
password
Use password widget for this string field.boolean
readonly
Whether the widget should be set readonly.String[]
search
List of the columns to be used to search this record.String
selection
The name of the selection.String
title
Title for the UI widget.boolean
translatable
Whether the field value is translatable.
-
-
-
Element Detail
-
title
String title
Title for the UI widget.- Returns:
- the title
- Default:
- ""
-
-
-
help
String help
Help text.- Returns:
- help text
- Default:
- ""
-
-
hidden
boolean hidden
Whether to hide widget by default.- Returns:
- true if marked as hidden, default is false
- Default:
- false
-
-
-
search
String[] search
List of the columns to be used to search this record.Used by auto-complete widget. By default the same column will be searched. Also, in case of virtual column (computed values) specify the actual searchable columns.
- Returns:
- array if fields on which to search, default is empty
- Default:
- {}
-
-
-
selection
String selection
The name of the selection.- Returns:
- name of the selection, default is empty
- Default:
- ""
-
-