public abstract class NodeBuilder<E> extends Object implements Widget<E>
| Modifier and Type | Field and Description |
|---|---|
protected NodeBuilder<E> |
children |
protected E |
el |
protected static String |
EMPTY |
protected NodeBuilder<E> |
siblings |
| Constructor and Description |
|---|
NodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<C extends NodeBuilder<E>> |
addChild(C child) |
<C extends NodeBuilder<E>> |
addChild(C child,
boolean makeTarget) |
<C extends NodeBuilder<E>> |
addSibling(C sibling) |
NodeBuilder<E> |
append(CharSequence chars) |
void |
clearAll() |
void |
clearChildren() |
protected abstract E |
create(CharSequence node) |
protected CharSequence |
getCharsAfter(CharSequence self) |
protected CharSequence |
getCharsBefore() |
E |
getElement() |
protected boolean |
isChildrenEmpty() |
protected CharSequence |
join(CharSequence body,
CharSequence chars) |
protected void |
onInitialize(E el) |
protected void |
print(Appendable out,
CharSequence was) |
protected void |
toHtml(Appendable out) |
protected abstract NodeBuilder<E> |
wrapChars(CharSequence body) |
protected static final String EMPTY
protected NodeBuilder<E> children
protected NodeBuilder<E> siblings
protected E el
public <C extends NodeBuilder<E>> C addChild(C child)
public <C extends NodeBuilder<E>> C addChild(C child, boolean makeTarget)
public void clearChildren()
public void clearAll()
public <C extends NodeBuilder<E>> C addSibling(C sibling)
public NodeBuilder<E> append(CharSequence chars)
protected abstract E create(CharSequence node)
protected CharSequence getCharsAfter(CharSequence self)
protected CharSequence getCharsBefore()
public E getElement()
getElement in interface Widget<E>protected void onInitialize(E el)
protected CharSequence join(CharSequence body, CharSequence chars)
protected void toHtml(Appendable out)
protected void print(Appendable out, CharSequence was)
protected abstract NodeBuilder<E> wrapChars(CharSequence body)
protected boolean isChildrenEmpty()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.