/** * Constructs a new span with the given text * * @param text */ public Span(String text) { super(ComponentTypes.Span); setText(text); } }
/** * Constructs a new span with the given text * * @param text */ public Span(String text) { super(ComponentTypes.Span); setText(text); } }
/** * Constructs a new span with the given text * * @param text */ public Span(String text) { super(ComponentTypes.Span); setText(text); } }
/** * Sets the close icon text for the span * * @param closeIconText */ public void setCloseIconText(String closeIconText) { this.closeIconText = closeIconText; if (this.closeIconText != null) { getCloseIcon().setText(closeIconText); } } }
/** * Sets the close icon text for the span * * @param closeIconText */ public void setCloseIconText(String closeIconText) { this.closeIconText = closeIconText; if (this.closeIconText != null) { getCloseIcon().setText(closeIconText); } } }
/** * Sets this label * * @param label * * @return */ @Override public final J setLabel(String label) { this.label = label; getSpan().setText(label); return (J) this; } }
/** * Sets this label * * @param label * * @return */ @Override public final J setLabel(String label) { this.label = label; getSpan().setText(label); return (J) this; } }
/** * Sets the close icon text for the span * * @param closeIconText */ @SuppressWarnings("unchecked") @NotNull public J setCloseIconText(String closeIconText) { this.closeIconText = closeIconText; if (this.closeIconText != null) { getCloseIcon().setText(closeIconText); } return (J) this; }
/** * Sets this label * * @param label * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public final J setLabel(String label) { this.label = label; getSpan().setText(label); return (J) this; }
/** * Sets this label * * @param label * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public final J setLabel(String label) { this.label = label; getSpan().setText(label); return (J) this; }
/** * Sets the close icon text for the span * * @param closeIconText */ @SuppressWarnings("unchecked") @NotNull public J setCloseIconText(String closeIconText) { this.closeIconText = closeIconText; if (this.closeIconText != null) { getCloseIcon().setText(closeIconText); } return (J) this; }
/** * Sets this label * * @param label * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public final J setLabel(String label) { this.label = label; getSpan().setText(label); return (J) this; }
/** * Sets the close icon text for the span * * @param closeIconText */ @SuppressWarnings("unchecked") @NotNull public J setCloseIconText(String closeIconText) { this.closeIconText = closeIconText; if (this.closeIconText != null) { getCloseIcon().setText(closeIconText); } 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; }
@SuppressWarnings({"unused", "unchecked"}) @NotNull public J add(String textToAdd, boolean inline) { Span p = new Span(); p.setText(textToAdd); add((C) p); return (J) this; }
/** * The text (or component.toString(0)) to prepend * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J prepend(String text) { Span<?, ?, ?> span = new Span<>(); span.addClass(Input_Group_Text); span.setText(text); prependDiv.add(span); return (J) this; }
/** * The text (or component.toString(0)) to prepend * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J prepend(String text) { Span<?, ?, ?> span = new Span<>(); span.addClass(Input_Group_Text); span.setText(text); prependDiv.add(span); return (J) this; }
/** * The text (or component.toString(0)) to append * * @param text * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J append(String text) { Span<?, ?, ?> span = new Span<>(); span.setText(text); span.addClass(Input_Group_Text); appendDiv.add(span); return (J) this; }
/** * The text (or component.toString(0)) to prepend * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J prepend(String text) { Span<?, ?, ?> span = new Span<>(); span.addClass(Input_Group_Text); span.setText(text); prependDiv.add(span); return (J) this; }