/** * Pre-Configure the children tree * * @return * * @see ComponentBase#toString() */ @Override @NotNull public String toString() { getChildren().forEach(next -> { if (!next.isConfigured()) { next.preConfigure(); } }); return super.toString(); }
/** * Pre-Configure the children tree * * @return * * @see ComponentBase#toString() */ @Override @NotNull public String toString() { getChildren().forEach(next -> { if (!next.isConfigured()) { next.preConfigure(); } }); return super.toString(); }
/** * Pre-Configure the children tree * * @return * * @see ComponentBase#toString() */ @Override @NotNull public String toString() { getChildren().forEach(next -> { if (!next.isConfigured()) { next.preConfigure(); } }); return super.toString(); }
/** * 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; }