/** * Adds the specified comment in a comment block for HTML * <p> * * @param comment */ public Comment(String comment) { super(ComponentTypes.Comment); setText(comment); }
/** * Over-rides the render HTML tag * <p> * * @param tabCount * The specified tab count * <p> * * @return A customized string for comments */ @Override @NotNull protected StringBuilder renderHTML(int tabCount) { if (getText(0).length() == 0) { return new StringBuilder(); } return !isTiny() ? new StringBuilder(TextUtilities.getTabString(tabCount) + "<!-- " + getText(0) + " -->") : new StringBuilder(); } }
@NotNull @Override @SuppressWarnings("unchecked") public Page<?> configure(Page<?> page) { if (!page.isConfigured()) { List<ComponentHierarchyBase<?, ?, ?, ?, ?>> reqs = getPriorityRequirements(page, RequirementsPriority.Top_Shelf, new ArrayList<>(), true, true); if (!reqs.isEmpty()) { page.getHead() .add(new Comment("Priority [" + RequirementsPriority.Top_Shelf + "] Values")); } page.getHead() .getChildren() .addAll(reqs); } return page; } }
/** * Over-rides the render HTML tag * <p> * * @param tabCount * The specified tab count * <p> * * @return A customized string for comments */ @Override @NotNull protected StringBuilder renderHTML(int tabCount) { if (getText(0).length() == 0) { return new StringBuilder(); } return !isTiny() ? new StringBuilder(TextUtilities.getTabString(tabCount) + "<!-- " + getText(0) + " -->") : new StringBuilder(); } }
@NotNull @Override @SuppressWarnings("unchecked") public Page<?> configure(Page<?> page) { if (!page.isConfigured()) { List<ComponentHierarchyBase<?, ?, ?, ?, ?>> reqs = getPriorityRequirements(page, RequirementsPriority.Top_Shelf, new ArrayList<>(), true, true); if (!reqs.isEmpty()) { page.getHead() .add(new Comment("Priority [" + RequirementsPriority.Top_Shelf + "] Values")); } page.getHead() .getChildren() .addAll(reqs); } return page; } }
/** * Over-rides the render HTML tag * <p> * * @param tabCount * The specified tab count * <p> * * @return A customized string for comments */ @Override @NotNull protected StringBuilder renderHTML(int tabCount) { if (getText(0).length() == 0) { return new StringBuilder(); } return !isTiny() ? new StringBuilder(TextUtilities.getTabString(tabCount) + "<!-- " + getText(0) + " -->") : new StringBuilder(); } }
/** * Adds the specified comment in a comment block for HTML * <p> * * @param comment */ public Comment(String comment) { super(ComponentTypes.Comment); setText(comment); }
@NotNull @Override @SuppressWarnings("unchecked") public Page<?> configure(Page<?> page) { if (!page.isConfigured()) { List<ComponentHierarchyBase<?, ?, ?, ?, ?>> reqs = getPriorityRequirements(page, RequirementsPriority.Top_Shelf, new ArrayList<>(), true, true); if (!reqs.isEmpty()) { page.getHead() .add(new Comment("Priority [" + RequirementsPriority.Top_Shelf + "] Values")); } page.getHead() .getChildren() .addAll(reqs); } return page; } }
/** * Adds the specified comment in a comment block for HTML * <p> * * @param comment */ public Comment(String comment) { super(ComponentTypes.Comment); setText(comment); }