/** * Sets the author of this page * * @param author * The author of this page */ @SuppressWarnings("unchecked") public final J setAuthor(String author) { this.author = new Meta(Meta.MetadataFields.Author, author); return (J) this; }
/** * Sets this input as required in the form * * @return */ @SuppressWarnings("unchecked") public J setRequired() { addAttribute("required", StaticStrings.STRING_EMPTY); return (J) this; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (getName() != null ? getName().hashCode() : 0); result = 31 * result + (getCssClass() != null ? getCssClass().hashCode() : 0); result = 31 * result + (getIconImageLocation() != null ? getIconImageLocation().hashCode() : 0); result = 31 * result + (link != null ? link.hashCode() : 0); result = 31 * result + (image != null ? image.hashCode() : 0); result = 31 * result + (span != null ? span.hashCode() : 0); return result; }
public Body<?, ?> getBody() { if (body == null) { body = new Body<>((Page) this); } return body; }
/** * The audio source of the file * <p> * * @param src */ public Audio(String src) { super(ComponentTypes.Audio); addAttribute(AudioAttributes.Src, src); }
/** * @param columnSpan * Sets this table cells column span */ public J setColumnSpan(int columnSpan) { addAttribute(TableCellAttributes.ColSpan, columnSpan); return (J) this; }
/** * Sets the raw CSS Data * <p> * * @param cssString * The css String (raw txt) */ public void setCSS(String cssString) { setText(cssString); }
/** * * * Constructs a new italic section with the given text * <p> * * @param text */ public Italic(String text) { super(ComponentTypes.Italic); setText(text); }
/** * Constructs a new OptionGroup for select Children * * @param label * The displayed label of this option group */ public OptionGroup(String label) { super(ComponentTypes.OptionGroup); addAttribute(OptionGroupAttributes.Label, label); }
/** * Constructs an Acronym * <p> * * @param text */ public Acronym(String text) { this(); setText(text); }
/** * Constructs a base instance with the given reference * * @param baseReference */ public Base(String baseReference) { this(); addAttribute(BaseAttributes.HRef, baseReference); }
/** * Sets this Frames URL * <p> * * @param URL * The URL to use for this frame */ public void setURL(String URL) { addAttribute(IFrameAttributes.Src, URL); }
/** * Specifies the text as bold * * @param text */ public BiDirectionalIsolation(String text) { super(ComponentTypes.BiDirectionalIsolation); setText(text); } }
/** * The cite tag defines the title of a work (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.). * * @param citeText * The reference of the work */ public Cite(String citeText) { super(ComponentTypes.Cite); setText(citeText); }
/** * Return a new instance of the Horizontal Rule * * @return */ public static HorizontalRule getNewInstance() { return new HorizontalRule(); }
/** * Adds the specified comment in a comment block for HTML * <p> * * @param comment */ public Comment(String comment) { super(ComponentTypes.Comment); setText(comment); }
/** * Returns a new instance of the center object. Better to reference the static field. * <p> * * @return */ public static Center getNewInstance() { return new Center(); } }
public Body<?, ?> getBody() { if (body == null) { body = new Body<>((Page) this); } return body; }