public class PictureObject extends ComObject
Modifier and Type | Field and Description |
---|---|
private int |
imageId
The global image identifier
|
private java.lang.String |
imagePath
Stores the file system path to the picture
|
private int |
widgetId
The widget id
|
includeUnannotatedMethods, LOGGER, methodTable, propertyTable
Constructor and Description |
---|
PictureObject(java.lang.String path)
Creates immutable instance of this picture object
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Removes the registered image.
|
java.lang.String |
getActivexName()
Returns this class simple name.
|
int |
getImageId()
Gets the global image identifier
|
java.lang.String |
getImagePath()
Gets the system path to this image
|
int |
getWidgetId()
Return this widget id.
|
static comhandle |
loadPicture(character path)
Loads the picture object and returns the comhandle
|
static comhandle |
loadPicture(java.lang.String path)
Loads the picture object and returns the comhandle
|
boolean |
unknown()
Tests if the image resource doesn't exist.
|
boolean |
valid()
Tests if there is an image given by this image path.
|
call, chainCall, checkParameters, deref, destroy, getComObjectClass, getComObjectInstance, getName, getParentControlFrame, getParentProcedure, getProperty, id, id, init, marshal, ref, setName, setParentControlFrame, setProperty, unmarshal, unmarshal
private final java.lang.String imagePath
private final int imageId
private final int widgetId
public PictureObject(java.lang.String path)
path
- The file system path to the image file.public static comhandle loadPicture(java.lang.String path)
path
- The file system path to the image file.public static comhandle loadPicture(character path)
path
- The file system path to the image file.public java.lang.String getActivexName()
getActivexName
in class ComObject
public boolean valid()
valid
in interface WrappedResource
valid
in class ComObject
public boolean unknown()
unknown
in interface WrappedResource
unknown
in class ComObject
true
if object is unknown.public java.lang.String getImagePath()
public int getImageId()
public int getWidgetId()