| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private HtmlTree | |
| private HtmlTree | |
| private final HtmlStyle | |
| private final HtmlTag | |
| pack-priv static final int | |
| private final HtmlTree | |
| private final Deque |
| Access | Constructor and Description |
|---|---|
| public | ListBuilder(HtmlTag
the tag to use for the list elements listTag, HtmlStyle the style to use for list elements listStyle)Creates a new list builder. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private HtmlTree | |
| public boolean | isEmpty()
Implements abstract jdk. Returns true if the content is empty. |
| private void | |
| private void | |
| public boolean | write(Writer writer, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| currentItem | back to summary |
|---|---|
| private HtmlTree currentItem | |
| currentList | back to summary |
|---|---|
| private HtmlTree currentList | |
| listStyle | back to summary |
|---|---|
| private final HtmlStyle listStyle | |
| listTag | back to summary |
|---|---|
| private final HtmlTag listTag | |
| MAX_LEVEL | back to summary |
|---|---|
| pack-priv static final int MAX_LEVEL | |
| root | back to summary |
|---|---|
| private final HtmlTree root | |
| stack | back to summary |
|---|---|
| private final Deque<ListBuilder. | |
| ListBuilder | back to summary |
|---|---|
| public ListBuilder(HtmlTag listTag, HtmlStyle listStyle) Creates a new list builder. | |
| addItem | back to summary |
|---|---|
| public void addItem(Content listItemContent, int level) Adds a new list item with the given content to the current list at the given nesting level,
which must be greater than or equal to 0 and less than or equal to
| |
| createList | back to summary |
|---|---|
| private HtmlTree createList() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract jdk. Doc from jdk. Returns true if the content is empty.
| |
| popNestedList | back to summary |
|---|---|
| private void popNestedList() Closes the current nested list and makes its parent the current list.
| |
| pushNestedList | back to summary |
|---|---|
| private void pushNestedList() Adds a new nested nested list to which new items will be added. | |
| write | back to summary |
|---|---|
| public boolean write(Writer writer, String newline, boolean atNewline) throws IOException Implements abstract jdk. Doc from jdk. Writes content to a writer, using a given newline sequence, which should be
either
| |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public HtmlTree | |
| public HtmlTree | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| item | back to summary |
|---|---|
| private final HtmlTree item Record Component accessed by item(). | |
| list | back to summary |
|---|---|
| private final HtmlTree list Record Component accessed by list(). | |
| Pair | back to summary |
|---|---|
| private Pair(HtmlTree list, HtmlTree item) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| item | back to summary |
|---|---|
| public HtmlTree item() Record Component getter of item. | |
| list | back to summary |
|---|---|
| public HtmlTree list() Record Component getter of list. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |