public class ListImages extends ComInterface implements IImages
Modifier and Type | Field and Description |
---|---|
private java.util.List<comhandle> |
images
Lists all images
|
private java.util.Map<java.lang.String,comhandle> |
keysToImages
Maps keys to target images
|
parent
includeUnannotatedMethods, LOGGER, methodTable, propertyTable
Modifier | Constructor and Description |
---|---|
private |
ListImages(GenericWidget parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
comhandle |
add(ComParameter index,
ComParameter key,
ComParameter picture)
Adds a ListImage object to a ListImages and returns a reference to the created object.
|
comhandle |
add(integer index,
character key,
comhandle picture)
Adds a ListImage object to a ListImages and returns a reference to the created object.
|
void |
clear()
Remove all objects in a collection.
|
(package private) int |
findIndex(comhandle imageReference)
Finds an image position within this images list.
|
(package private) java.lang.String |
findKey(comhandle imageReference)
Finds an image key.
|
private java.util.Map.Entry<java.lang.String,comhandle> |
findKeyValueEntry(comhandle imageReference)
Finds an image key and reference pair.
|
integer |
getCount()
Returns the number of objects in a collection.
|
comhandle |
getItem(character key)
Returns a specific member of a Collection either by key.
|
comhandle |
getItem(NumberType index)
Returns a specific member of a Collection either by position.
|
private comhandle |
item(int index)
Returns the image comhandle reference by the given 1-based index.
|
private comhandle |
item(java.lang.String key)
Returns the image comhandle reference by the given image key.
|
static handle |
newInstance(GenericWidget parent)
Factory method.
|
void |
remove(character key)
Remove a specific member of a collection.
|
void |
remove(int index)
Remove a specific member of a collection.
|
void |
remove(NumberType index)
Remove a specific member of a collection.
|
void |
remove(java.lang.String key)
Remove a specific member of a collection.
|
void |
setCount(integer count)
Set the number of objects in a collection.
|
delete, getActivexName, getName, valid
call, chainCall, checkParameters, deref, destroy, getComObjectClass, getComObjectInstance, getParentControlFrame, getParentProcedure, getProperty, id, id, init, marshal, ref, setName, setParentControlFrame, setProperty, unknown, unmarshal, unmarshal
private java.util.Map<java.lang.String,comhandle> keysToImages
private java.util.List<comhandle> images
private ListImages(GenericWidget parent)
parent
- Parent widget.public static handle newInstance(GenericWidget parent)
parent
- The image list parent widget.public comhandle add(integer index, character key, comhandle picture)
public comhandle add(ComParameter index, ComParameter key, ComParameter picture)
public comhandle getItem(NumberType index)
private comhandle item(int index)
index
- The given 1-based indexpublic comhandle getItem(character key)
private comhandle item(java.lang.String key)
key
- The given image keypublic void clear()
public integer getCount()
public void setCount(integer count)
public void remove(NumberType index)
public void remove(int index)
index
- position inside collection, 1-based index.public void remove(character key)
public void remove(java.lang.String key)
key
- The image keyjava.lang.String findKey(comhandle imageReference)
imageReference
- The target image referenceint findIndex(comhandle imageReference)
imageReference
- The target image reference