|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.ElementDetailHandle
org.eclipse.birt.report.model.api.ValueHandle
org.eclipse.birt.report.model.api.StructureHandle
org.eclipse.birt.report.model.api.EmbeddedImageHandle
Represents the handle of an embedded image. The class gives the name and type
of the image. Used when an image element ImageItem
gives a name. Each
embedded image has the following properties:
Field Summary |
Fields inherited from class org.eclipse.birt.report.model.api.StructureHandle |
structRef |
Fields inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle |
elementHandle |
Constructor Summary | |
EmbeddedImageHandle(SimpleValueHandle valueHandle,
int index)
Constructs the handle of embedded image. |
Method Summary | |
byte[] |
getData()
Returns the byte array of image data. |
java.lang.String |
getName()
Returns the embedded image name. |
java.lang.String |
getQualifiedName()
Returns the qualified name of this element. |
java.lang.String |
getType()
Returns the image type. |
void |
setData(byte[] data)
Sets the byte array of image data. |
void |
setName(java.lang.String name)
Sets the embedded image name. |
void |
setType(java.lang.String type)
Sets the image type. |
Methods inherited from class org.eclipse.birt.report.model.api.StructureHandle |
drop, getDefn, getExternalizedValue, getMember, getProperty, getPropertyDefn, getReference, getStringProperty, getStructure, isDesignTime, iterator, setDesignTime, setProperty, setPropertySilently |
Methods inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle |
getDesign, getElement, getElementHandle, getModule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmbeddedImageHandle(SimpleValueHandle valueHandle, int index)
valueHandle
- the value handle for embedded image list of one propertyindex
- the position of this embedded image in the listMethod Detail |
public byte[] getData()
public void setData(byte[] data)
data
- the byte array to setpublic java.lang.String getName()
public void setName(java.lang.String name) throws SemanticException
name
- the embedded image name to set
SemanticException
- value required exceptionpublic java.lang.String getType()
DesignChoiceConstants
,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
public void setType(java.lang.String type) throws SemanticException
DesignChoiceConstants
,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
type
- the image type to set
SemanticException
- if the image type is not in the choice list.public java.lang.String getQualifiedName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |