public class Image extends ImageResource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PN_IMAGE_MAP
name of the image map property
|
DEFAULT_IMAGE_PATH, PN_ALT, PN_DEFAULT_IMAGE_PATH, PN_HEIGHT, PN_HTML_HEIGHT, PN_HTML_WIDTH, PN_IMAGE_CROP, PN_IMAGE_ROTATE, PN_LINK_URL, PN_MAX_HEIGHT, PN_MAX_WIDTH, PN_MIN_HEIGHT, PN_MIN_WIDTH, PN_WIDTHNN_FILE, PN_DESCRIPTION, PN_FILE_NAME, PN_REFERENCE, PN_TITLERESOURCE_TYPE_NON_EXISTING| Constructor and Description |
|---|
Image(Resource resource)
Creates a new image based on the given resource.
|
Image(Resource resource,
java.lang.String imageName)
Creates a new image based on the given resource.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIconPath()
Returns a path to an icon representing the file.
|
boolean |
hasNoPlaceholder()
Returns the placeholder flag.
|
void |
loadStyleData(Style style)
Loads several definitions from style.
|
void |
setDropTargetId(java.lang.String id)
Sets the drop target id for this image, using the name of the resources
as path.
|
void |
setDropTargetId(java.lang.String id,
java.lang.String classifier)
Sets the drop target id for this image.
|
void |
setNoPlaceholder(boolean noPlaceholder)
Sets the placeholder flag.
|
crop, draw, getAlt, getCropRect, getData, getDoctype, getExtension, getImageDoctype, getLayer, getRotation, getSrc, getTitle, resize, rotate, setAlt, setDoctype, setExtension, setImageDoctype, setSrcaddAttribute, addCssClass, addQueryParam, get, get, getAttributes, getDescription, getDescription, getFileName, getFileNodePath, getFileReference, getHref, getIconType, getInnerHtml, getItemName, getLastModified, getMimeType, getQuery, getSelector, getString, getSuffix, getTitle, hasContent, init, isTouchAuthoringUIMode, set, setDescription, setFileName, setFileNodePath, setFileReference, setHref, setInnerHtml, setIsInUITouchMode, setItemName, setQuery, setSelector, setSuffix, setTitleadaptTo, getChild, getChildren, getName, getParent, getPath, getResource, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren, toStringpublic static final java.lang.String PN_IMAGE_MAP
public Image(Resource resource)
resource - resource of the imagejava.lang.IllegalArgumentException - if the given resource is not adaptable to node.public Image(Resource resource, java.lang.String imageName)
imageName
is specified. then the respective child resource holds the image
properties.resource - current resourceimageName - name of the image resourcejava.lang.IllegalArgumentException - if the given resource is not adaptable to node.public void setDropTargetId(java.lang.String id,
java.lang.String classifier)
id - the drop target id as configured in edit config.classifier - optional classifierpublic void setDropTargetId(java.lang.String id)
id - the drop target id as configured in edit config.public boolean hasNoPlaceholder()
true if no placeholder for empty content should be
drawn.public void setNoPlaceholder(boolean noPlaceholder)
noPlaceholder - if true no placeholder for empty content
is used.public void loadStyleData(Style style)
Currently, the minimum/maximum width and height are transferred from the given style.
style - style to load definitions frompublic java.lang.String getIconPath()
getIconPath in class DownloadResourcenull.Copyright © 2010 - 2023 Adobe. All Rights Reserved