public class Body extends AbstractWingElement implements WingMergeableElement
| Modifier and Type | Field and Description |
|---|---|
static String |
E_BODY
The name of the body element
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Body(WingContext context)
Generate a new Body framework element.
|
| Modifier and Type | Method and Description |
|---|---|
Division |
addDivision(String name)
Append a new division (div element) to the document's body.
|
Division |
addDivision(String name,
String rend)
Append a new division (div element) to the document's body.
|
Division |
addInteractiveDivision(String name,
String action,
String method,
String rend)
Append a new interactive division (div element) to the document's body.
|
void |
dispose()
dispose
|
Attributes |
merge(Attributes attributes)
Inform this element that it is being merged with an existing body.
|
WingMergeableElement |
mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
Merge this SAX event into the body.
|
boolean |
mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
Is this SAX event equivalent to this body?
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate into SAX
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_BODY
protected Body(WingContext context) throws WingException
context - (Required) The context this element is contained in.WingExceptionpublic Division addDivision(String name, String rend) throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Division addDivision(String name) throws WingException
name - a local identifier used to differentiate the element from its
siblingsWingExceptionpublic Division addInteractiveDivision(String name, String action, String method, String rend) throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.action - (Required) determines where the form information should be
sent for processing.method - (Required) determines the method used to pass gathered field
values to the handler specified by the action attribute. The
multipart method should be used if there are any file fields
used within the division.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic boolean mergeEqual(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException
mergeEqual in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributesSAXExceptionWingExceptionpublic WingMergeableElement mergeChild(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException
mergeChild in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributesSAXExceptionWingExceptionpublic Attributes merge(Attributes attributes) throws SAXException, WingException
merge in interface WingMergeableElementattributes - The to-be-merged attributesSAXExceptionWingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException
toSAX in interface WingElementcontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical events
(such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2014 DuraSpace. All Rights Reserved.