Annotation Interface PdoTreeContextMenuItemService


@Documented @Retention(RUNTIME) @Target(TYPE) @MappedService(PdoTreeContextMenuItem.class) public @interface PdoTreeContextMenuItemService
Annotation to express that the annotated class is a PdoTreeContextMenuItem.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The ordinal to sort the menu items within the context menu.
    Lower values come first.
    Determines the serviced PDO class.
    The PDO class usually is an interface extending the persistent and the domain interfaces.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the group the item belongs to.
    Separators will be inserted between groups.
  • Element Details

    • value

      Class<? extends PersistentDomainObject> value
      Determines the serviced PDO class.
      The PDO class usually is an interface extending the persistent and the domain interfaces.

      The class may also be a super interface. For example, PersistentDomainObject will apply to all PDOs.

      Returns:
      the PDO class
    • ordinal

      int ordinal
      The ordinal to sort the menu items within the context menu.
      Lower values come first.

      If the same ordinal is defined more than once, the menu item closest in the PDO inheritance tree will override all others.

      Returns:
      the ordinal
    • group

      String group
      Defines the group the item belongs to.
      Separators will be inserted between groups.
      Returns:
      the group, empty for default group
      Default:
      ""