@SuppressWarnings({"unused", "unchecked"}) @NotNull public J add(String textToAdd, boolean inline) { Span p = new Span(); p.setText(textToAdd); add((C) p); return (J) this; }
@SuppressWarnings({"unused", "unchecked"}) @NotNull public J add(String textToAdd, boolean inline) { Span p = new Span(); p.setText(textToAdd); add((C) p); return (J) this; }
@SuppressWarnings({"unused", "unchecked"}) @NotNull public J add(String textToAdd, boolean inline) { Span p = new Span(); p.setText(textToAdd); add((C) p); return (J) this; }
/** * Adds a paragraph component with the attached text * <p> * * @param textToAdd * The text to add * <p> * * @return The new paragraph component */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull String textToAdd) { Paragraph p = new Paragraph(); p.setText(textToAdd); add((C) p); return (J) this; }
/** * Adds a paragraph component with the attached text * <p> * * @param textToAdd * The text to add * <p> * * @return The new paragraph component */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull String textToAdd) { Paragraph p = new Paragraph(); p.setText(textToAdd); add((C) p); return (J) this; }
/** * Adds a paragraph component with the attached text * <p> * * @param textToAdd * The text to add * <p> * * @return The new paragraph component */ @Override @SuppressWarnings("unchecked") @NotNull public J add(@NotNull String textToAdd) { Paragraph p = new Paragraph(); p.setText(textToAdd); add((C) p); return (J) this; }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }
/** * Returns a list of the specified text * * @param textToAdd * * @return */ public List addList(String textToAdd) { ListItem<?> lit = new ListItem<>(textToAdd); List<?, ?, ?, ?> li = new List<>(false); lit.add(li); super.add(li); return li; } }