Interface Item<C extends BaseContext>

Type Parameters:
C - The context type required for the concrete item.
All Known Subinterfaces:
ClientScriptProvidingInlineEditItem, ClientScriptProvidingMediaManagementItem, ClientScriptProvidingReportItem<T>, ClientScriptProvidingToolbarActionsItem, ExecutableContextMenuItem, ExecutableGroupingToolbarItem, ExecutableInlineEditItem, ExecutableMediaManagementItem, ExecutableToolbarActionsItem, ExecutableToolbarItem, ExternalPreviewItem, GroupingContextMenuItem, InlineEditItem, JavaClientContextMenuItem, JavaClientExecutableReportItem<T>, JavaClientToolbarItem, MediaManagementItem, ReportItem<T>, ToggleableToolbarItem, WebeditExecutableReportItem<T>, WebeditStatusNoteItem, WebeditToolbarItem
All Known Implementing Classes:
SeparatorContextMenuItem

public interface Item<C extends BaseContext>
General (abstract) definition of a pluggable FirstSpirit item. The item is based on a specific type of context that will be provided on each operation.
Since:
5.0.204
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEnabled(C context)
    Indicates, whether this item is enabled wrt. the given context.
    boolean
    isVisible(C context)
    Indicates the visibility of this item wrt. the given context.
  • Method Details

    • isVisible

      boolean isVisible(@NotNull C context)
      Indicates the visibility of this item wrt. the given context.
      Parameters:
      context - The context to be considered for deciding upon visibility.
      Returns:
      true, if visible, false, else.
      Since:
      5.0.204
    • isEnabled

      boolean isEnabled(@NotNull C context)
      Indicates, whether this item is enabled wrt. the given context.
      Parameters:
      context - The context to be considered for deciding upon the item being enabled.
      Returns:
      true, if enabled, false, else.
      Since:
      5.0.204