Package io.jmix.ui.meta
Annotation Interface StudioElement
Indicates that the annotated interface should be available in Studio Screen Designer as a part of UI Component,
e.g. column, action, field, etc. Provides metadata for Component Inspector of Screen Designer.
When used on the getter or setter method, indicates that the annotated method should be shown in Studio Screen Designer as a nested element of UI component, e.g. validator, formatter. Method return type or parameter type will be used to determine element type.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSpecifies URL pointing to the documentation page for the annotated element.Specifies path to the component icon, SVG or PNG.String[]
Fully-qualified class names of the components to which the element can be applied.String[]
String[]
String[]
Fully-qualified class names of the components to which the element cannot be applied.Specifies xml namespace required for the element.Specifies xml namespace alias required for the element.
-
Element Details
-
description
String description- Returns:
- description of the element in Studio Screen Designer
- Default:
- ""
-
icon
String iconSpecifies path to the component icon, SVG or PNG. Relative to the component module root. The icon used in the Component Hierarchy.- Returns:
- relative path to the SVG or PNG icon file.
- Default:
- ""
-
xmlElement
String xmlElement- Returns:
- XML tag of the element
- Default:
- ""
-
xmlns
String xmlnsSpecifies xml namespace required for the element.- Returns:
- xml namespace
- Default:
- ""
-
xmlnsAlias
String xmlnsAliasSpecifies xml namespace alias required for the element.- Returns:
- xml namespace alias
- Default:
- ""
-
defaultProperty
String defaultProperty- Returns:
- name of the default property, it will be automatically selected in Properties panel
- Default:
- ""
-
unsupportedProperties
String[] unsupportedProperties- Returns:
- names of unsupported properties that should be hidden from Properties panel
- Default:
- {}
-
documentationURL
String documentationURLSpecifies URL pointing to the documentation page for the annotated element. Used in Jmix Documentation action in the Studio Screen Designer.
If the documentation is version dependent, use %VERSION% as a placeholder. It will be replaced with the minor version (e.g. 1.2) of the artifact containing UI component.- Returns:
- URL of the documentation page
- Default:
- ""
-
target
String[] targetFully-qualified class names of the components to which the element can be applied. Some base interface is expected in most cases. E.g. "io.jmix.ui.component.ListComponent"- Default:
- {}
-
unsupportedTarget
String[] unsupportedTargetFully-qualified class names of the components to which the element cannot be applied. Some base interface is expected in most cases. E.g. "io.jmix.ui.component.ListComponent"- Default:
- {}
-
unsupportedHandlers
String[] unsupportedHandlers- Returns:
- names of unsupported handlers that should be hidden from Handlers and Generate Handler panels
- Default:
- {}