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.FunctionsNested 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
Constructors -
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 MutableViewElementsetElementType(String elementType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.web.ui.ViewElement
get, matches
-
Constructor Details
-
ViewElementSupport
-
-
Method Details
-
getName
Description copied from interface:ViewElementA 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:
getNamein interfaceViewElement- Returns:
- Internal name of this element, can be null.
- See Also:
-
setName
- Specified by:
setNamein interfaceMutableViewElement
-
getCustomTemplate
- Specified by:
getCustomTemplatein interfaceViewElement- Returns:
- Custom template to use when rendering this view element.
-
setCustomTemplate
- Specified by:
setCustomTemplatein interfaceMutableViewElement
-
getElementType
- Specified by:
getElementTypein interfaceViewElement- Returns:
- Type id of this view element.
-
setElementType
-
set
Description copied from interface:ViewElementExecute one or more setter functions.- Specified by:
setin interfaceMutableViewElement- Specified by:
setin interfaceViewElement- Parameters:
setters- to execute- Returns:
- self
-
remove
Description copied from interface:ViewElementExecute 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:
removein interfaceMutableViewElement- Specified by:
removein interfaceViewElement- Parameters:
functions- to execute- Returns:
- self
-