Package io.jmix.ui.meta
Annotation Interface StudioComponent
Indicates that the annotated UI component interface should be available in Studio Screen Designer. Provides metadata
for Component Palette and Component Inspector of Screen Designer. The annotated interface must be a direct or
indirect subclass of
Component
.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSpecifies path to the UI component icon shown on canvas as a placeholder, SVG or PNG.Specifies text that will be shown on a canvas for the UI component E.g.Specifies name of the component property that provides value that will be used ascanvasText()
.Specifies URL pointing to the documentation page for the annotated UI component.Specifies path to the component icon, SVG or PNG.String[]
String[]
Specifies xml namespace required for the component.Specifies xml namespace alias required for the component.
-
Element Details
-
description
String description- Returns:
- description of the component in Studio Screen Designer Palette
- Default:
- ""
-
category
String category- Returns:
- category of the component in Studio Screen Designer Palette, e.g. Containers, Components, Fields
- Default:
- ""
-
icon
String iconSpecifies path to the component icon, SVG or PNG. Relative to the component module root. The icon used in the Component Palette and Component Hierarchy.- Returns:
- relative path to the SVG or PNG icon file.
- Default:
- ""
-
xmlElement
String xmlElement- Returns:
- XML tag of the component
- Default:
- ""
-
xmlns
String xmlnsSpecifies xml namespace required for the component.- Returns:
- xml namespace
- Default:
- ""
-
xmlnsAlias
String xmlnsAliasSpecifies xml namespace alias required for the component.- 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:
- {}
-
canvasIcon
String canvasIconSpecifies path to the UI component icon shown on canvas as a placeholder, SVG or PNG. Relative to the component module root. Used ifcanvasBehaviour()
isCanvasBehaviour.BOX
.- Returns:
- relative path to the SVG or PNG icon file.
- Default:
- ""
-
canvasIconSize
CanvasIconSize canvasIconSize- Returns:
- size of the icon shown on canvas as a placeholder.
- Default:
- SMALL
-
canvasText
String canvasTextSpecifies text that will be shown on a canvas for the UI component E.g. button caption forCanvasBehaviour.BUTTON
component- Default:
- ""
-
canvasTextProperty
String canvasTextPropertySpecifies name of the component property that provides value that will be used ascanvasText()
. If property value is not set thencanvasText()
attribute value will be used- Default:
- ""
-
canvasBehaviour
CanvasBehaviour canvasBehaviour- Returns:
- behaviour of UI component on Screen designer canvas
- Default:
- BOX
-
containerType
ContainerType containerType- Returns:
- type of container layout if
canvasBehaviour()
isCanvasBehaviour.CONTAINER
- Default:
- VERTICAL
-
documentationURL
String documentationURLSpecifies URL pointing to the documentation page for the annotated UI component. 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:
- ""
-
unsupportedHandlers
String[] unsupportedHandlers- Returns:
- names of unsupported handlers that should be hidden from Handlers and Generate Handler panels
- Default:
- {}