public interface InlineEditItem extends Item<InlineEditContext>
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)
.
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled(InlineEditContext context)
Indicates, whether this item is enabled with respect to the given context.
|
boolean |
isVisible(InlineEditContext context)
Indicates the visibility of this item with respect to the given context.
|
boolean isVisible(@NotNull InlineEditContext context)
If you want this item to only appear on top level IDProvider
elements instead of its nested content,
you may use context.
and
getEditorNode()
== null!context.
isMeta()
isVisible
in interface Item<InlineEditContext>
context
- The context to be considered for deciding upon visibility.true
, if visible, false
, else.boolean isEnabled(@NotNull InlineEditContext context)
isEnabled
in interface Item<InlineEditContext>
context
- The context to be considered for deciding upon the item being enabled.true
, if enabled, false
, else.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210