Interface InlineEditItem
- All Superinterfaces:
Item<InlineEditContext>
- All Known Subinterfaces:
ClientScriptProvidingInlineEditItem
,ExecutableInlineEditItem
Definition of an item targeting inline editing.
Keep in mind that this item may be requested in various contexts, like a basic IDProvider
or one of its
nested editors. You may use the provided contextual information of InlineEditContext
to include or exclude
certain contexts in your implementation of isVisible(InlineEditContext)
.
- Since:
- 5.0.103
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEnabled
(@NotNull InlineEditContext context) Indicates, whether this item is enabled with respect to the given context.boolean
isVisible
(@NotNull InlineEditContext context) Indicates the visibility of this item with respect to the given context.
-
Method Details
-
isVisible
Indicates the visibility of this item with respect to the given context.If you want this item to only appear on top level
IDProvider
elements instead of its nested content, you may usecontext.
andgetEditorNode()
== null!context.
isMeta()
- Specified by:
isVisible
in interfaceItem<InlineEditContext>
- Parameters:
context
- The context to be considered for deciding upon visibility.- Returns:
true
, if visible,false
, else.- Since:
- 5.0.103
-
isEnabled
Indicates, whether this item is enabled with respect to the given context.- Specified by:
isEnabled
in interfaceItem<InlineEditContext>
- Parameters:
context
- The context to be considered for deciding upon the item being enabled.- Returns:
true
, if enabled,false
, else.- Since:
- 5.0.103
-