public static class SwingContentBuilder.XMLPanel extends java.lang.Object implements ExtendedXMLBuilder
Constructor and Description |
---|
XMLPanel(SwingContentBuilder parent,
ExtendedXMLBuilder nested,
boolean in_line) |
Modifier and Type | Method and Description |
---|---|
SimpleXMLBuilder |
addClass(java.lang.CharSequence s)
Convenience method to add an additional class attribute using
the HTML convention that multiple classes are represented
as one attribute with values separated by spaces.
|
SimpleXMLBuilder |
appendParent()
Append the contents of this builder to the parent (if any).
|
protected void |
appendTo(SwingContentBuilder builder) |
SimpleXMLBuilder |
attr(java.lang.String name,
java.lang.CharSequence s)
Add an attribute.
|
void |
br()
Insert line break.
|
SimpleXMLBuilder |
clean(char c) |
SimpleXMLBuilder |
clean(java.lang.CharSequence s)
append text to the document escaping any characters that might be interpreted as XML markup.
|
SimpleXMLBuilder |
clean(java.lang.Number i)
Append text representation of the number
|
SimpleXMLBuilder |
close()
close the last opened tag.
|
SimpleXMLBuilder |
getNested()
Get a new SimpleXMLBuilder of the same type as this object.
|
SimpleXMLBuilder |
getParent()
Get the parent object.
|
void |
nbs()
Insert a non-breaking space.
|
SimpleXMLBuilder |
open(java.lang.String tag)
open a tag
|
SimpleXMLBuilder |
open(java.lang.String tag,
java.lang.String[][] attr)
open a tag with attributes.
|
boolean |
setEscapeUnicode(boolean escape_unicode)
Should high code-point unicode characters be escaped to
avoid charset problems.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObject, attr
public XMLPanel(SwingContentBuilder parent, ExtendedXMLBuilder nested, boolean in_line)
public SimpleXMLBuilder clean(java.lang.CharSequence s)
SimpleXMLBuilder
clean
in interface SimpleXMLBuilder
public SimpleXMLBuilder clean(char c)
clean
in interface SimpleXMLBuilder
public SimpleXMLBuilder clean(java.lang.Number i)
SimpleXMLBuilder
clean
in interface SimpleXMLBuilder
i
- Number to formatpublic SimpleXMLBuilder open(java.lang.String tag)
SimpleXMLBuilder
open
in interface SimpleXMLBuilder
public SimpleXMLBuilder open(java.lang.String tag, java.lang.String[][] attr)
SimpleXMLBuilder
open
in interface SimpleXMLBuilder
tag
- tag to openattr
- array of name,value pairspublic SimpleXMLBuilder attr(java.lang.String name, java.lang.CharSequence s)
SimpleXMLBuilder
attr
in interface SimpleXMLBuilder
name
- String attribute names
- CharSequence attribute value or null for no valuepublic SimpleXMLBuilder close()
SimpleXMLBuilder
close
in interface SimpleXMLBuilder
public SimpleXMLBuilder getNested() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
SimpleXMLBuilder.appendParent()
method.
The calling code need only hold a reference to the current builder as the
SimpleXMLBuilder.appendParent()
method returns the parent.getNested
in interface SimpleXMLBuilder
java.lang.UnsupportedOperationException
public SimpleXMLBuilder appendParent() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
appendParent
in interface SimpleXMLBuilder
java.lang.UnsupportedOperationException
protected void appendTo(SwingContentBuilder builder)
public SimpleXMLBuilder getParent()
SimpleXMLBuilder
getParent
in interface SimpleXMLBuilder
public boolean setEscapeUnicode(boolean escape_unicode)
SimpleXMLBuilder
setEscapeUnicode
in interface SimpleXMLBuilder
public void nbs()
ExtendedXMLBuilder
nbs
in interface ExtendedXMLBuilder
public void br()
ExtendedXMLBuilder
br
in interface ExtendedXMLBuilder
public SimpleXMLBuilder addClass(java.lang.CharSequence s)
ExtendedXMLBuilder
addClass
in interface ExtendedXMLBuilder
s
- CharSequence attribute value or null for no value