public class ImageWebCmsComponentModel extends WebCmsComponentModel
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageWebCmsComponentModel.Metadata |
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>METADATA_CLASS_ATTRIBUTE, TEMPLATE_ATTRIBUTE, TYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
|
ImageWebCmsComponentModel() |
protected |
ImageWebCmsComponentModel(ImageWebCmsComponentModel template) |
|
ImageWebCmsComponentModel(WebCmsComponent component) |
| Modifier and Type | Method and Description |
|---|---|
ImageWebCmsComponentModel |
asComponentTemplate()
Convert the current model to a templated version: keep all properties but create a new backing component.
|
WebCmsImage |
getImage() |
String |
getImageServerKey() |
boolean |
hasImage() |
boolean |
hasImageServerKey() |
boolean |
isEmpty()
Base implementation that can be used to check if the component contains any relevant data.
|
boolean |
isExternalImage() |
void |
setImage(WebCmsImage image) |
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 ImageWebCmsComponentModel()
public ImageWebCmsComponentModel(WebCmsComponent component)
protected ImageWebCmsComponentModel(ImageWebCmsComponentModel template)
public String getImageServerKey()
public boolean isEmpty()
WebCmsComponentModelisEmpty in class WebCmsComponentModeltrue if no relevant data is presentpublic boolean hasImageServerKey()
public boolean isExternalImage()
public boolean hasImage()
public WebCmsImage getImage()
public void setImage(WebCmsImage image)
public ImageWebCmsComponentModel asComponentTemplate()
WebCmsComponentModelasComponentTemplate in class WebCmsComponentModelWebCmsComponent.asTemplate(),
WebCmsComponentModel.cloneMetadata(WebCmsComponentModel)Copyright © 2020. All rights reserved.