Interface IReplaceable
- All Known Implementing Classes:
ActionRowImpl
,ContainerImpl
,SectionImpl
public interface IReplaceable
Component which supports its children being replaced.
This is equivalent to ComponentTree.replace(ComponentReplacer)
,
but on a smaller scope.
-
Method Summary
Modifier and TypeMethodDescriptionreplace
(ComponentReplacer replacer) Replaces and/or removes children components using the providedComponentReplacer
, and construct a new component from the result.
-
Method Details
-
replace
Replaces and/or removes children components using the providedComponentReplacer
, and construct a new component from the result.- Parameters:
replacer
- TheComponentReplacer
to apply- Returns:
- The new, updated component
- Throws:
IllegalArgumentException
- Ifnull
is provided- See Also:
-