Class ViewElementSupport
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementSupport
- All Implemented Interfaces:
MutableViewElement
,ViewElement
- Direct Known Subclasses:
AbstractVoidNodeViewElement
,TemplateViewElement
,TextViewElement
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
A ViewElement can have an internal name that identifies it within aContainerViewElement
.remove
(ViewElement.WitherRemover... functions) Execute one or more remover functions.set
(ViewElement.WitherSetter... setters) Execute one or more setter functions.setCustomTemplate
(String customTemplate) protected MutableViewElement
setElementType
(String elementType) 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
get, matches
-
Constructor Details
-
ViewElementSupport
-
-
Method Details
-
getName
Description copied from interface:ViewElement
A ViewElement can have an internal name that identifies it within aContainerViewElement
. A name is optional but when given, is preferably unique within its container as most operations work on the first element with a specific name.- Specified by:
getName
in interfaceViewElement
- Returns:
- Internal name of this element, can be null.
- See Also:
-
setName
- Specified by:
setName
in interfaceMutableViewElement
-
getCustomTemplate
- Specified by:
getCustomTemplate
in interfaceViewElement
- Returns:
- Custom template to use when rendering this view element.
-
setCustomTemplate
- Specified by:
setCustomTemplate
in interfaceMutableViewElement
-
getElementType
- Specified by:
getElementType
in interfaceViewElement
- Returns:
- Type id of this view element.
-
setElementType
-
set
Description copied from interface:ViewElement
Execute one or more setter functions.- Specified by:
set
in interfaceMutableViewElement
- Specified by:
set
in interfaceViewElement
- 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 interfaceMutableViewElement
- Specified by:
remove
in interfaceViewElement
- Parameters:
functions
- to execute- Returns:
- self
-