Uses of Class
org.apache.tapestry5.dom.Element
Packages that use Element
Package
Description
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
Base components intended to be extended by other components rather than
used directly in templates.
The set of core components available in all Tapestry applications
[INTERNAL USE ONLY] support classes for the Tapestry-core module; API subject to change
core components.
A Document Object Model, a tree of nodes representing elements, attributes
and text within a document.
[INTERNAL USE ONLY] internal support classes; API subject to change.
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] JavaScript support implementations; API subject to change
[INTERNAL USE ONLY] translator implementation classes; API subject to change.
[INTERNAL USE ONLY] various utility classes; API subject to change.
Core services
Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
Support for testing Tapestry pages
-
Uses of Element in org.apache.tapestry5
Methods in org.apache.tapestry5 that return ElementModifier and TypeMethodDescriptionMarkupWriter.attributeNS
(String namespace, String attributeName, String attributeValue) Creates an attribute within the namespace for the current element.MarkupWriter.defineNamespace
(String namespace, String namespacePrefix) Defines a namespace for the currently active element.Begins a new element as a child of the current element.Starts an element within the given namespace.MarkupWriter.end()
Ends the current element.MarkupWriter.getElement()
Returns the currently active element.Methods in org.apache.tapestry5 with parameters of type ElementModifier and TypeMethodDescriptionvoid
MarkupWriterAdapter.elementDidEnd
(Element element) void
MarkupWriterListener.elementDidEnd
(Element element) Invoked just after an element has ended.void
MarkupWriterAdapter.elementDidStart
(Element element) void
MarkupWriterListener.elementDidStart
(Element element) Invoked just after an element and its initial set of attributes has been written.void
BaseValidationDecorator.insideLabel
(Field field, Element labelElement) void
ValidationDecorator.insideLabel
(Field field, Element labelElement) Deprecated.Invoked after the label has rendered its tag, but before it has rendered content inside the tag, to allow the decorator to write additional attributes. -
Uses of Element in org.apache.tapestry5.corelib.base
Methods in org.apache.tapestry5.corelib.base with parameters of type ElementModifier and TypeMethodDescriptionprotected void
BaseClientElement.storeElement
(Element element) Invoked (usually from aBeginRender
phase method) to assign the element, and clear the clientId (only relevant for components that render in a loop). -
Uses of Element in org.apache.tapestry5.corelib.components
Methods in org.apache.tapestry5.corelib.components with parameters of type Element -
Uses of Element in org.apache.tapestry5.corelib.internal
Methods in org.apache.tapestry5.corelib.internal that return ElementModifier and TypeMethodDescriptionHiddenFieldPositioner.getElement()
Returns the hidden field element, which can have its attributes filled in. -
Uses of Element in org.apache.tapestry5.dom
Methods in org.apache.tapestry5.dom that return ElementModifier and TypeMethodDescriptionElement.addClassName
(String... classNames) Deprecated.Deprecated in 5.4, as this is now special behavior for the "class" attribute.Adds an attribute to the element, but only if the attribute name does not already exist.Adds a namespaced attribute to the element, but only if the attribute name does not already exist.Element.attributes
(String... namesAndValues) Convenience for invokingattribute(String, String)
multiple times.Adds the comment and returns this element for further construction.Element.defineNamespace
(String namespace, String namespacePrefix) Defines a namespace for this element, mapping a URI to a prefix.Creates and returns a new Element node as a child of this node.Creates a new element, as a child of the current index, at the indicated index.Element.elementBefore
(String name, String... namesAndValues) Inserts a new element before this element.Creates and returns a new Element within a namespace as a child of this node.Finds an element based on a path of element names.Searchs for a child element with a particular name below this element.Element.forceAttributes
(String... namesAndValues) Forces changes to a number of attributes.Element.forceAttributesNS
(String namespace, String... namesAndValues) Forces changes to a number of attributes in the global namespace.Node.getContainer()
Returns the containingElement
for this node, or null if this node is the root element of the document.Element.getElement
(Predicate<Element> predicate) Tries to find an element under this element (including itself) accepted by the given predicate.Element.getElementByAttributeValue
(String attributeName, String attributeValue) Tries to find an element under this element (including itself) whose given attribute has a given value.Document.getElementById
(String id) Tries to find an element in this document whose id is specified.Element.getElementById
(String id) Tries to find an element under this element (including itself) whose id is specified.Document.getRootElement()
Document.newRootElement
(String name) Creates the root element for this document, replacing any previous root element.Document.newRootElement
(String namespace, String name) Creates a new root element within a namespace.Adds the raw text and returns this element for further construction.Element.removeChildren()
Removes all children from this element.Wraps a node inside a new element.Methods in org.apache.tapestry5.dom with parameters of type ElementModifier and TypeMethodDescriptionMoves this node so that it becomes a sibling of the element, ordered just after the element.Node.moveBefore
(Element element) Moves this node so that it becomes a sibling of the element, ordered just before the element.Node.moveToBottom
(Element element) Moves this node so that it the last child of the element.Moves this node so that it becomes this first child of the element, shifting existing elements forward.void
Called for each Element being visited.Method parameters in org.apache.tapestry5.dom with type arguments of type ElementModifier and TypeMethodDescriptionElement.getElement
(Predicate<Element> predicate) Tries to find an element under this element (including itself) accepted by the given predicate.Constructors in org.apache.tapestry5.dom with parameters of type Element -
Uses of Element in org.apache.tapestry5.internal
Methods in org.apache.tapestry5.internal with parameters of type ElementModifier and TypeMethodDescriptionvoid
RecursiveContext.Provider.registerPlaceholder
(Element element) void
RecursiveContext.registerPlaceholder
(Element element) -
Uses of Element in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services that return ElementModifier and TypeMethodDescriptionMarkupWriterImpl.attributeNS
(String namespace, String attributeName, String attributeValue) MarkupWriterImpl.defineNamespace
(String namespace, String namespacePrefix) MarkupWriterImpl.end()
MarkupWriterImpl.getElement()
Methods in org.apache.tapestry5.internal.services with parameters of type ElementModifier and TypeMethodDescriptionprotected void
DocumentLinkerImpl.addContentToBody
(Element body) Adds<script>
elements for the RequireJS library, then any statically includes JavaScript libraries (including JavaScript stack virtual assets), then the initialization script block.protected void
DocumentLinkerImpl.addStylesheetsToHead
(Element root, List<StylesheetLink> stylesheets) Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to it.boolean
HiddenFieldLocationRulesImpl.placeHiddenFieldAfter
(Element element) boolean
HiddenFieldLocationRulesImpl.placeHiddenFieldInside
(Element element) -
Uses of Element in org.apache.tapestry5.internal.services.javascript
Methods in org.apache.tapestry5.internal.services.javascript with parameters of type ElementModifier and TypeMethodDescriptionvoid
ModuleManagerImpl.writeConfiguration
(Element body, List<ModuleConfigurationCallback> callbacks) void
ModuleManagerImpl.writeInitialization
(Element body, List<String> libraryURLs, List<?> inits) -
Uses of Element in org.apache.tapestry5.internal.translator
Methods in org.apache.tapestry5.internal.translator with parameters of type ElementModifier and TypeMethodDescription<T extends Number>
voidNumericTranslatorSupport.setupTranslation
(Class<T> type, Element element, String message) Adds client-side format validation for the field, appropriate to the indicated type.<T extends Number>
voidNumericTranslatorSupportImpl.setupTranslation
(Class<T> type, Element element, String message) -
Uses of Element in org.apache.tapestry5.internal.util
Methods in org.apache.tapestry5.internal.util with parameters of type ElementModifier and TypeMethodDescriptionvoid
ValidationDecoratorWrapper.insideLabel
(Field field, Element labelElement) -
Uses of Element in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services with parameters of type ElementModifier and TypeMethodDescriptionboolean
HiddenFieldLocationRules.placeHiddenFieldAfter
(Element element) Checks the element to see if a hidden field may be placed after the element (as a sibling element).boolean
HiddenFieldLocationRules.placeHiddenFieldInside
(Element element) Checks the element to see if a hidden field may be placed inside the element. -
Uses of Element in org.apache.tapestry5.services.javascript
Methods in org.apache.tapestry5.services.javascript with parameters of type ElementModifier and TypeMethodDescriptionvoid
Invoked to add the stylesheet link to a container element.void
ModuleManager.writeConfiguration
(Element body, List<ModuleConfigurationCallback> moduleConfigurationCallbacks) Invoked by the internalDocumentLinker
service to write the configuration for the module system into the page.void
ModuleManager.writeInitialization
(Element body, List<String> libraryURLs, List<?> inits) Invoked by the internalDocumentLinker
service to write the initializations (as perJavaScriptSupport.require(String)
into the page; this occurs after the module infrastructure has been written into the page, along with the core libraries. -
Uses of Element in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test with parameters of type ElementModifier and TypeMethodDescriptionSimulates a click on a link.PageTester.clickLinkAndReturnResponse
(Element linkElement) Simulates a click on a link.PageTester.clickSubmit
(Element submitButton, Map<String, String> fieldValues) Simulates a submission of the form by clicking the specified submit button.PageTester.clickSubmitAndReturnResponse
(Element submitButton, Map<String, String> fieldValues) Simulates a submission of the form by clicking the specified submit button.PageTester.submitForm
(Element form, Map<String, String> parameters) Simulates a submission of the form specified.PageTester.submitFormAndReturnResponse
(Element form, Map<String, String> parameters) Simulates a submission of the form specified.