Interface IChildable<R,I extends IComponent>

All Known Subinterfaces:
IA<I>, IAbsolutechildren<I>, IAbsolutelayout, IAnchornav<I>, IAudio, IAuxhead, IAuxheader<I>, IAvatargroup, IBadge<I>, IBandpopup<I>, IBreadcrumb, ICaption<I>, ICardlayout<I>, ICarousel, ICarouselitem<I>, ICell<I>, ICoachmark<I>, IColumn<I>, IColumnchildren<I>, IColumnlayout, IColumns, ICombobox, IDetail<I>, IDiv<I>, IDrawer<I>, IFisheyebar, IFoot, IFooter<I>, IFrozen<I>, IGoldenLayout, IGoldenPanel<I>, IGroup<I>, IGroupbox<I>, IGroupfoot<I>, IHlayout<I>, IImagemap, IInputgroup, ILineitem<I>, ILinelayout, IListbox, IListcell<I>, IListfoot, IListfooter<I>, IListgroup, IListgroupChild<I>, IListgroupfoot, IListgroupfootChild<I>, IListhead, IListheader<I>, IListitem, IMenubar, IMenupopup, IMultislider, INav, INavbar, IOrganigram, IOrgchildren, IOrgnode<I>, IPanelchildren<I>, IPopup<I>, IPortalchildren, IPortallayout, IRadiogroup<I>, IRow<I>, IRowlayout, IRows, IScrollview<I>, ISpan<I>, ISplitlayout<I>, IStepbar, ITablechildren<I>, ITablelayout, ITabpanel<I>, ITabpanels, ITabs, IToolbar<I>, ITreecell<I>, ITreechildren, ITreecol<I>, ITreecols, ITreefoot, ITreefooter<I>, ITreerow, IVideo, IVlayout<I>, IWindow<I>

public interface IChildable<R,I extends IComponent>
An interface to indicate any child is allowed for IComponent.
Author:
jumperchen
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the children of this component.
    default R
    withChildren(I... elements)
    Copy the current immutable object with elements that replace the content of children.
    withChildren(Iterable<? extends I> elements)
    Copy the current immutable object with elements that replace the content of children.
  • Method Details

    • getChildren

      List<I> getChildren()
      Returns the children of this component.
    • withChildren

      R withChildren(Iterable<? extends I> elements)
      Copy the current immutable object with elements that replace the content of children. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of children elements to set
      Returns:
      A modified copy of this object
    • withChildren

      default R withChildren(I... elements)
      Copy the current immutable object with elements that replace the content of children.
      Parameters:
      elements - The children elements to set
      Returns:
      A modified copy of this object