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 booleancopyableWhether to copy this field when creating duplicate record.booleandefaultNowWhether the field should use current date/datetime as default value.StringhelpHelp text.booleanhiddenWhether to hide widget by default.booleanimageUse image widget for this binary field.booleanmassUpdateWhether to allow mass update on this field.booleanmultilineShould be used with String fields to mark whether to use multiline text widget.booleanpasswordUse password widget for this string field.booleanreadonlyWhether the widget should be set readonly.String[]searchList of the columns to be used to search this record.StringselectionThe name of the selection.StringtitleTitle for the UI widget.booleantranslatableWhether 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:
- ""
-
-