public class ContainerWebCmsComponentModel extends WebCmsComponentModel
WebCmsComponentModels.com.foreach.across.modules.web.ui.ViewElement.Wither<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherGetter<T extends com.foreach.across.modules.web.ui.ViewElement,U>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherSetter<T extends com.foreach.across.modules.web.ui.ViewElement>| Modifier and Type | Field and Description |
|---|---|
static String |
SUPPORTS_MARKUP_ATTRIBUTE
If the
WebCmsComponentType has this attribute set to
true then markup on the container will be used for rendering if it is set. |
static String |
TYPE_DYNAMIC |
static String |
TYPE_FIXED |
METADATA_CLASS_ATTRIBUTE, TEMPLATE_ATTRIBUTE, TYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
|
ContainerWebCmsComponentModel(WebCmsComponent component) |
|
ContainerWebCmsComponentModel(WebCmsComponent component,
Collection<WebCmsComponentModel> components) |
protected |
ContainerWebCmsComponentModel(WebCmsComponentModel template) |
|
ContainerWebCmsComponentModel(WebCmsComponentType containerType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(WebCmsComponentModel componentModel)
Add a member to the list.
|
ContainerWebCmsComponentModel |
asComponentTemplate()
Convert the current model to a templated version: keep all properties but create a new backing component.
|
WebCmsComponentModel |
getMember(@NonNull String name) |
<U extends WebCmsComponentModel> |
getMember(String name,
@NonNull Class<U> expectedType) |
boolean |
hasMarkup()
You can always set markup on the container but the value of
isMarkupSupported() will determine if it will be used for rendering or not. |
boolean |
isEmpty()
Base implementation that can be used to check if the component contains any relevant data.
|
boolean |
isFixed() |
boolean |
isMarkupSupported() |
int |
size() |
cloneMetadata, equals, getComponentType, getCustomTemplate, getDomain, getElementType, getMetadata, getName, getObjectId, getOwnerObjectId, getSortIndex, getTitle, hashCode, hasMetadata, hasOwner, isNew, setComponent, setDomain, setName, setObjectId, setOwner, setOwnerObjectId, setSortIndex, setTitle, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, matches, predicateFor, remove, set, withforObjectIdpublic static final String TYPE_DYNAMIC
public static final String TYPE_FIXED
public static final String SUPPORTS_MARKUP_ATTRIBUTE
WebCmsComponentType has this attribute set to
true then markup on the container will be used for rendering if it is set.public ContainerWebCmsComponentModel(WebCmsComponentType containerType)
public ContainerWebCmsComponentModel(WebCmsComponent component, Collection<WebCmsComponentModel> components)
public ContainerWebCmsComponentModel(WebCmsComponent component)
protected ContainerWebCmsComponentModel(WebCmsComponentModel template)
public void addMember(WebCmsComponentModel componentModel)
componentModel - new memberpublic <U extends WebCmsComponentModel> U getMember(String name, @NonNull @NonNull Class<U> expectedType)
name - of the componentexpectedType - to coerce topublic WebCmsComponentModel getMember(@NonNull @NonNull String name)
name - of the componentpublic int size()
public boolean isEmpty()
WebCmsComponentModelisEmpty in class WebCmsComponentModelpublic boolean isFixed()
public boolean hasMarkup()
isMarkupSupported() will determine if it will be used for rendering or not.
This method simply indicates if markup has been set.public boolean isMarkupSupported()
SUPPORTS_MARKUP_ATTRIBUTEpublic ContainerWebCmsComponentModel asComponentTemplate()
WebCmsComponentModelasComponentTemplate in class WebCmsComponentModelWebCmsComponent.asTemplate(),
WebCmsComponentModel.cloneMetadata(WebCmsComponentModel)Copyright © 2020. All rights reserved.