Uses of Class
org.apache.tapestry5.dom.Element
-
Packages that use Element Package Description org.apache.tapestry5 Root package for Tapestry, containing common interfaces and data types used throughout the framework.org.apache.tapestry5.corelib.base Base components intended to be extended by other components rather than used directly in templates.org.apache.tapestry5.corelib.internal [INTERNAL USE ONLY] support classes for the Tapestry-core module; API subject to change core components.org.apache.tapestry5.dom A Document Object Model, a tree of nodes representing elements, attributes and text within a document.org.apache.tapestry5.internal.services [INTERNAL USE ONLY] internal service classes; API subject to changeorg.apache.tapestry5.internal.services.javascript [INTERNAL USE ONLY] JavaScript support implementations; API subject to changeorg.apache.tapestry5.internal.translator [INTERNAL USE ONLY] translator implementation classes; API subject to change.org.apache.tapestry5.internal.util [INTERNAL USE ONLY] various utility classes; API subject to change.org.apache.tapestry5.services Core servicesorg.apache.tapestry5.services.javascript Support for Javascript (and CSS), including dynamically-added JavaScript and services that manage dynamically-added links to JavaScript (and CSS) assets.org.apache.tapestry5.test Support for testing Tapestry pages -
-
Uses of Element in org.apache.tapestry5
Methods in org.apache.tapestry5 that return Element Modifier and Type Method Description ElementMarkupWriter. attributeNS(java.lang.String namespace, java.lang.String attributeName, java.lang.String attributeValue)Creates an attribute within the namespace for the current element.ElementMarkupWriter. defineNamespace(java.lang.String namespace, java.lang.String namespacePrefix)Defines a namespace for the currently active element.ElementMarkupWriter. element(java.lang.String name, java.lang.Object... attributes)Begins a new element as a child of the current element.ElementMarkupWriter. elementNS(java.lang.String namespace, java.lang.String elementName)Starts an element within the given namespace.ElementMarkupWriter. end()Ends the current element.ElementMarkupWriter. getElement()Returns the currently active element.Methods in org.apache.tapestry5 with parameters of type Element Modifier and Type Method Description voidMarkupWriterAdapter. elementDidEnd(Element element)voidMarkupWriterListener. elementDidEnd(Element element)Invoked just after an element has ended.voidMarkupWriterAdapter. elementDidStart(Element element)voidMarkupWriterListener. elementDidStart(Element element)Invoked just after an element and its initial set of attributes has been written.voidBaseValidationDecorator. insideLabel(Field field, Element labelElement)voidValidationDecorator. 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 Element Modifier and Type Method Description protected voidBaseClientElement. storeElement(Element element)Invoked (usually from aBeginRenderphase 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.internal
Methods in org.apache.tapestry5.corelib.internal that return Element Modifier and Type Method Description ElementHiddenFieldPositioner. 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 Element Modifier and Type Method Description ElementElement. addClassName(java.lang.String... classNames)Deprecated.Deprecated in 5.4, as this is now special behavior for the "class" attribute.ElementElement. attribute(java.lang.String name, java.lang.String value)Adds an attribute to the element, but only if the attribute name does not already exist.ElementElement. attribute(java.lang.String namespace, java.lang.String name, java.lang.String value)Adds a namespaced attribute to the element, but only if the attribute name does not already exist.ElementElement. attributes(java.lang.String... namesAndValues)Convenience for invokingattribute(String, String)multiple times.ElementElement. comment(java.lang.String text)Adds the comment and returns this element for further construction.ElementElement. defineNamespace(java.lang.String namespace, java.lang.String namespacePrefix)Defines a namespace for this element, mapping a URI to a prefix.ElementElement. element(java.lang.String name, java.lang.String... namesAndValues)Creates and returns a new Element node as a child of this node.ElementElement. elementAt(int index, java.lang.String name, java.lang.String... namesAndValues)Creates a new element, as a child of the current index, at the indicated index.ElementElement. elementBefore(java.lang.String name, java.lang.String... namesAndValues)Inserts a new element before this element.ElementElement. elementNS(java.lang.String namespace, java.lang.String name)Creates and returns a new Element within a namespace as a child of this node.ElementDocument. find(java.lang.String path)Finds an element based on a path of element names.ElementElement. find(java.lang.String path)Searchs for a child element with a particular name below this element.ElementElement. forceAttributes(java.lang.String... namesAndValues)Forces changes to a number of attributes.ElementElement. forceAttributesNS(java.lang.String namespace, java.lang.String... namesAndValues)Forces changes to a number of attributes in the global namespace.ElementNode. getContainer()Returns the containingElementfor this node, or null if this node is the root element of the document.ElementElement. getElement(Predicate<Element> predicate)Tries to find an element under this element (including itself) accepted by the given predicate.ElementElement. getElementByAttributeValue(java.lang.String attributeName, java.lang.String attributeValue)Tries to find an element under this element (including itself) whose given attribute has a given value.ElementDocument. getElementById(java.lang.String id)Tries to find an element in this document whose id is specified.ElementElement. getElementById(java.lang.String id)Tries to find an element under this element (including itself) whose id is specified.ElementDocument. getRootElement()ElementDocument. newRootElement(java.lang.String name)Creates the root element for this document, replacing any previous root element.ElementDocument. newRootElement(java.lang.String namespace, java.lang.String name)Creates a new root element within a namespace.ElementElement. raw(java.lang.String text)Adds the raw text and returns this element for further construction.ElementElement. removeChildren()Removes all children from this element.ElementNode. wrap(java.lang.String elementName, java.lang.String... namesAndValues)Wraps a node inside a new element.Methods in org.apache.tapestry5.dom with parameters of type Element Modifier and Type Method Description NodeNode. moveAfter(Element element)Moves this node so that it becomes a sibling of the element, ordered just after the element.NodeNode. moveBefore(Element element)Moves this node so that it becomes a sibling of the element, ordered just before the element.NodeNode. moveToBottom(Element element)Moves this node so that it the last child of the element.NodeNode. moveToTop(Element element)Moves this node so that it becomes this first child of the element, shifting existing elements forward.voidVisitor. visit(Element element)Called for each Element being visited.Method parameters in org.apache.tapestry5.dom with type arguments of type Element Modifier and Type Method Description ElementElement. 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 Constructor Description CData(Element container, java.lang.String content)Node(Element container)Creates a new node, setting its container to the provided value. -
Uses of Element in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services that return Element Modifier and Type Method Description ElementMarkupWriterImpl. attributeNS(java.lang.String namespace, java.lang.String attributeName, java.lang.String attributeValue)ElementMarkupWriterImpl. defineNamespace(java.lang.String namespace, java.lang.String namespacePrefix)ElementMarkupWriterImpl. element(java.lang.String name, java.lang.Object... namesAndValues)ElementMarkupWriterImpl. elementNS(java.lang.String namespace, java.lang.String elementName)ElementMarkupWriterImpl. end()ElementMarkupWriterImpl. getElement()Methods in org.apache.tapestry5.internal.services with parameters of type Element Modifier and Type Method Description protected voidDocumentLinkerImpl. 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 voidDocumentLinkerImpl. addStylesheetsToHead(Element root, java.util.List<StylesheetLink> stylesheets)Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to it.booleanHiddenFieldLocationRulesImpl. placeHiddenFieldAfter(Element element)booleanHiddenFieldLocationRulesImpl. 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 Element Modifier and Type Method Description voidModuleManagerImpl. writeConfiguration(Element body, java.util.List<ModuleConfigurationCallback> callbacks)voidModuleManagerImpl. writeInitialization(Element body, java.util.List<java.lang.String> libraryURLs, java.util.List<?> inits) -
Uses of Element in org.apache.tapestry5.internal.translator
Methods in org.apache.tapestry5.internal.translator with parameters of type Element Modifier and Type Method Description <T extends java.lang.Number>
voidNumericTranslatorSupport. setupTranslation(java.lang.Class<T> type, Element element, java.lang.String message)Adds client-side format validation for the field, appropriate to the indicated type.<T extends java.lang.Number>
voidNumericTranslatorSupportImpl. setupTranslation(java.lang.Class<T> type, Element element, java.lang.String message) -
Uses of Element in org.apache.tapestry5.internal.util
Methods in org.apache.tapestry5.internal.util with parameters of type Element Modifier and Type Method Description voidValidationDecoratorWrapper. insideLabel(Field field, Element labelElement) -
Uses of Element in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services with parameters of type Element Modifier and Type Method Description booleanHiddenFieldLocationRules. placeHiddenFieldAfter(Element element)Checks the element to see if a hidden field may be placed after the element (as a sibling element).booleanHiddenFieldLocationRules. 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 Element Modifier and Type Method Description voidStylesheetLink. add(Element container)Invoked to add the stylesheet link to a container element.voidModuleManager. writeConfiguration(Element body, java.util.List<ModuleConfigurationCallback> moduleConfigurationCallbacks)Invoked by the internalDocumentLinkerservice to write the configuration for the module system into the page.voidModuleManager. writeInitialization(Element body, java.util.List<java.lang.String> libraryURLs, java.util.List<?> inits)Invoked by the internalDocumentLinkerservice 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 Element Modifier and Type Method Description DocumentPageTester. clickLink(Element linkElement)Simulates a click on a link.TestableResponsePageTester. clickLinkAndReturnResponse(Element linkElement)Simulates a click on a link.DocumentPageTester. clickSubmit(Element submitButton, java.util.Map<java.lang.String,java.lang.String> fieldValues)Simulates a submission of the form by clicking the specified submit button.TestableResponsePageTester. clickSubmitAndReturnResponse(Element submitButton, java.util.Map<java.lang.String,java.lang.String> fieldValues)Simulates a submission of the form by clicking the specified submit button.DocumentPageTester. submitForm(Element form, java.util.Map<java.lang.String,java.lang.String> parameters)Simulates a submission of the form specified.TestableResponsePageTester. submitFormAndReturnResponse(Element form, java.util.Map<java.lang.String,java.lang.String> parameters)Simulates a submission of the form specified.
-