Interface IReplaceable
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- TheComponentReplacerto apply- Returns:
- The new, updated component
- Throws:
IllegalArgumentException- Ifnullis provided- See Also:
-