/** * Add a new child to this component * <p> * * @param newChild * The child to be added * <p> * * @return The new child added */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull C newChild) { newChild.setParent(this); newChild.setTiny(isTiny()); newChild.setPage(getPage()); getChildren().add(newChild); newChild.init(); newChild.preConfigure(); return (J) this; }
/** * Add a new child to this component * <p> * * @param newChild * The child to be added * <p> * * @return The new child added */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull C newChild) { newChild.setParent(this); newChild.setTiny(isTiny()); newChild.setPage(getPage()); getChildren().add(newChild); newChild.init(); newChild.preConfigure(); return (J) this; }
/** * Add a new child to this component * <p> * * @param newChild * The child to be added * <p> * * @return The new child added */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull C newChild) { newChild.setParent(this); newChild.setTiny(isTiny()); newChild.setPage(getPage()); getChildren().add(newChild); newChild.init(); newChild.preConfigure(); return (J) this; }