Annotation Interface Component.ConfigurableAttribute

Enclosing class:
Component

@Target(TYPE) @Retention(RUNTIME) @Repeatable(ConfigurableAttributes.class) @Documented public static @interface Component.ConfigurableAttribute
Annotation used to define a UIProperty for a specific Component. The UI Attributes defined will be showed into the configurability panel to allow the user to configure the graphical representation for the Component
It is possible to define the name, the label, the DataType, the children (if you want to manage the attribute as a lookup) the properties for the attribute (for example fullsize="true" if you want that the attribute will be displayed in fullsize mode into the configurability panel) and declare if the attribute is allowed for the static fields or not.
  • Element Details

    • name

      String name
      The name that identifies the attribute
      Returns:
      The name that identifies the attribute
    • label

      String label
      The Label that will be showed for the attribute
      Returns:
      The Label that will be showed for the attribute
    • type

      String type
      The type of the attribute
      Returns:
      The type of the attribute
      Default:
      "STRING"
    • values

      The list of the children for the attribute (if you want to manage the attribute as a lookup)
      Returns:
      The list of the children for the attribute
      Default:
      {}
    • properties

      The properties defined for the attribute (for example fullsize="true" if you want that the attribute will be displayed in fullsize mode into the configurability panel)
      Returns:
      The properties defined for the attribute
      Default:
      {}
    • onlyExtended

      boolean onlyExtended
      Gets if the attribute is allowed for the static fields or not.
      Returns:
      true if the attribute is not allowed for the static fields, false otherwise
      Default:
      false
    • overrideParent

      boolean overrideParent
      Gets if the attribute overridden the parent attribute
      Returns:
      true if the attribute overridden the parent attribute, false otherwise
      Default:
      false