Class NodeImage
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeElement
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeImage
-
public final class NodeImage extends NodeElement
Represents an image element. The image source can be a fixed URL, or a media field's path.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description NodeImage()Constructs a newNodeImagethat by default auto stretches to fit the given bounds.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetOpacity()Returns the opacity of this image.booleanisImageStretch()Returnstrueif the image is stretched within its bounding box;falseotherwise.voidsetBindingSource(NodeValueRenderer action)Sets the source for this image usingNodeValueRenderer.voidsetBindingSource(java.lang.String source)Sets the source for this image.voidsetImageStretch(boolean imageStretch)Sets whether the image must stretch within its bounding box.voidsetOpacity(double opacity)Sets the opacity for this image.-
Methods inherited from class com.orchestranetworks.addon.dmdv.template.bean.NodeElement
getAlignment, getBackgroundColor, getBindingValuesPublic, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
-
-
-
-
Method Detail
-
setBindingSource
public void setBindingSource(java.lang.String source)
Sets the source for this image. It can be a fixed URL, or a media field's path. A media field is used by the TIBCO EBX Digital Asset Manager Add-on to attach an asset to a table field. The media field path must follow the following pattern: ${fieldPath} not including the table path. Examples: - A fixed URL: "/www/common/images/icons/avatar.png". - A DAM field path: "${/picture/attachment}".- Parameters:
source- the fixed URL, or the path of media field.
-
setBindingSource
public void setBindingSource(NodeValueRenderer action)
Sets the source for this image usingNodeValueRenderer.- Parameters:
action- an implementation ofNodeValueRenderer.
-
getOpacity
public double getOpacity()
Returns the opacity of this image.
-
setOpacity
public void setOpacity(double opacity)
Sets the opacity for this image. The value must be between 0.0 (fully transparent) and 1.0 (no additional transparency).- Parameters:
opacity- the multiplicative opacity for this image.
-
isImageStretch
public boolean isImageStretch()
Returnstrueif the image is stretched within its bounding box;falseotherwise.
-
setImageStretch
public void setImageStretch(boolean imageStretch)
Sets whether the image must stretch within its bounding box.- Parameters:
imageStretch- a boolean value
-
-