Class VoidNodeViewElement
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementSupport
com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
com.foreach.across.modules.web.ui.elements.VoidNodeViewElement
- All Implemented Interfaces:
HtmlViewElement
,MutableViewElement
,ViewElement
A void node is a node that has attributes but contains no children.
- Author:
- Arne Vandamme
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
HtmlViewElement.Functions
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.MutableViewElement
MutableViewElement.Functions
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.ViewElement
ViewElement.Wither<T extends ViewElement>, ViewElement.WitherGetter<T extends ViewElement,
U>, ViewElement.WitherRemover<T extends ViewElement>, ViewElement.WitherSetter<T extends ViewElement> -
Constructor Summary
ConstructorDescriptionVoidNodeViewElement
(String tagName) VoidNodeViewElement
(String name, String tagName) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Map<String, Object> attributes) addCssClass
(String... cssClass) remove
(ViewElement.WitherRemover... functions) Execute one or more remover functions.removeAttribute
(String attributeName) removeCssClass
(String... cssClass) set
(ViewElement.WitherSetter... setters) Execute one or more setter functions.setAttribute
(String attributeName, Object attributeValue) setAttributes
(@NonNull Map<String, Object> attributes) setCustomTemplate
(String customTemplate) protected VoidNodeViewElement
setElementType
(String elementType) setTagName
(@NonNull String tagName) Methods inherited from class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfType
Methods inherited from class com.foreach.across.modules.web.ui.ViewElementSupport
getCustomTemplate, getElementType, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.web.ui.ViewElement
getCustomTemplate, getElementType, getName, matches
-
Constructor Details
-
VoidNodeViewElement
-
VoidNodeViewElement
-
-
Method Details
-
setTagName
- Overrides:
setTagName
in classAbstractVoidNodeViewElement
- Returns:
this
.
-
setHtmlId
- Specified by:
setHtmlId
in interfaceHtmlViewElement
- Overrides:
setHtmlId
in classAbstractVoidNodeViewElement
- Returns:
this
.
-
addCssClass
- Specified by:
addCssClass
in interfaceHtmlViewElement
- Overrides:
addCssClass
in classAbstractVoidNodeViewElement
-
removeCssClass
- Specified by:
removeCssClass
in interfaceHtmlViewElement
- Overrides:
removeCssClass
in classAbstractVoidNodeViewElement
-
setAttributes
- Specified by:
setAttributes
in interfaceHtmlViewElement
- Overrides:
setAttributes
in classAbstractVoidNodeViewElement
-
setAttribute
- Specified by:
setAttribute
in interfaceHtmlViewElement
- Overrides:
setAttribute
in classAbstractVoidNodeViewElement
-
addAttributes
- Specified by:
addAttributes
in interfaceHtmlViewElement
- Overrides:
addAttributes
in classAbstractVoidNodeViewElement
-
removeAttribute
- Specified by:
removeAttribute
in interfaceHtmlViewElement
- Overrides:
removeAttribute
in classAbstractVoidNodeViewElement
-
setName
- Specified by:
setName
in interfaceMutableViewElement
- Overrides:
setName
in classAbstractVoidNodeViewElement
-
setCustomTemplate
- Specified by:
setCustomTemplate
in interfaceMutableViewElement
- Overrides:
setCustomTemplate
in classAbstractVoidNodeViewElement
-
setElementType
- Overrides:
setElementType
in classAbstractVoidNodeViewElement
-
set
Description copied from interface:ViewElement
Execute one or more setter functions.- Specified by:
set
in interfaceHtmlViewElement
- Specified by:
set
in interfaceMutableViewElement
- Specified by:
set
in interfaceViewElement
- Overrides:
set
in classAbstractVoidNodeViewElement
- Parameters:
setters
- to execute- Returns:
- self
-
remove
Description copied from interface:ViewElement
Execute one or more remover functions. A remover is defined as a separate interface so implementations can both implement setter and remover at the same time.- Specified by:
remove
in interfaceHtmlViewElement
- Specified by:
remove
in interfaceMutableViewElement
- Specified by:
remove
in interfaceViewElement
- Overrides:
remove
in classAbstractVoidNodeViewElement
- Parameters:
functions
- to execute- Returns:
- self
-