com.microstrategy.web.objects.WebDisplayUnits |
![]() |
The WebDisplayUnits interface represents a group of WebDisplayUnit
objects.
This interface contains methods for iterating through the collection of objects
it represents, along with shortcut methods to allow the user to change the state of all
objects in the collection at once.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
add(WebDisplayUnit unit, int beforeKey)
Adds the given
WebDisplayUnit object to the collection. | ||||||||||
abstract void |
add(WebDisplayUnit unit)
Adds the given
WebDisplayUnit object to the collection. | ||||||||||
abstract int |
add(WebDisplayUnit unit, WebDisplayUnit beforeObject)
Adds the given
WebObjectInfo object to the folder collection. | ||||||||||
abstract void |
addDetails(boolean details)
Sets whether details should be added to all objects within the collection.
| ||||||||||
abstract int |
addX(WebDisplayUnit unit)
Adds the given
WebDisplayUnit object to the available display units
collection. | ||||||||||
abstract void | applyVisitor(DisplayUnitsVisitor visitor, boolean deep) | ||||||||||
abstract void |
clear()
Clears all objects from the collection.
| ||||||||||
abstract boolean |
containsKey(int key)
Returns true if the folder contains an item by the given key, false if not.
| ||||||||||
abstract boolean |
containsObject(WebDisplayUnit object)
Returns true if the folder contains the given object, false if it does not.
| ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration containing the objects in this collection.
| ||||||||||
abstract Enumeration |
entries()
Returns a java.util.Enumeration containing the
WebDisplayUnitEntry objects
in this collection. | ||||||||||
abstract WebDisplayUnits |
findAllItems(Object object)
Tries to find the given item within the objects which are in the collection.
| ||||||||||
abstract WebDisplayUnit |
findItem(Object object)
Tries to find the given item within the objects which are in the collection.
| ||||||||||
abstract WebDisplayUnit |
get(int index)
Returns the display unit in the collection with the given index.
| ||||||||||
abstract int |
getBlockBegin()
Returns the index of the first retrieved object in the collection
relative to the entire set.
| ||||||||||
abstract int |
getBlockCount()
Returns the current blockCount setting, which is used for incremental fetch of
contents.
| ||||||||||
abstract int |
getChildCount()
Returns the child count, which is the total number of items in the collection.
| ||||||||||
abstract int |
getFolderCount()
Returns the folder count, which is the total number of folder objects
in the underlying I-Server collection.
| ||||||||||
abstract Enumeration | getHighlightedItems() | ||||||||||
abstract Enumeration | getHighlightedItems(boolean deep) | ||||||||||
abstract WebDisplayUnit |
getItemByKey(int key)
Returns the display unit in the collection with the given key.
| ||||||||||
abstract int |
getObjectCount(int objectType)
Returns the number of objects of the specified object type in the collection.
| ||||||||||
abstract int |
getPartialFolderCount()
Returns the number of folders in the collection.
| ||||||||||
abstract int |
getSelectedCount()
Returns the number of selected child display units.
| ||||||||||
abstract Enumeration | getSelectedItems() | ||||||||||
abstract Enumeration | getSelectedItems(boolean deep) | ||||||||||
abstract void |
highlightUnits(boolean details)
Highlights all units in the collection.
| ||||||||||
abstract void |
highlightUnits()
Highlights all units in the collection (without details).
| ||||||||||
abstract boolean |
isEmpty()
Returns whether the collection is empty.
| ||||||||||
abstract int |
keyOf(WebDisplayUnit object)
Returns the key of the given object, if it exists in the collection.
| ||||||||||
abstract int |
keyOf(int index)
Returns the key of the object with specified index.
| ||||||||||
abstract void |
move(int key, int beforeKey)
Moves the object with the given key to position before specified object.
| ||||||||||
abstract void |
remove(int index)
Removes the display unit with the given index from the collection.
| ||||||||||
abstract void |
remove(WebDisplayUnit unit)
Removes the display unit from the collection.
| ||||||||||
abstract void |
removeItemByKey(int key)
Removes the object in the collection with the given key.
| ||||||||||
abstract void |
setBlockBegin(int blockBegin)
Sets the index of the first retrieved object in the collection
relative to the entire set.
| ||||||||||
abstract void |
setBlockCount(int blockCount)
Sets the blockCount setting, which is used for incremental fetch of
folder contents.
| ||||||||||
abstract void |
setChildCount(int val)
Sets the child count.
| ||||||||||
abstract void |
setFolderCount(int val)
Sets the folder count'
| ||||||||||
abstract void |
setSelected(boolean selected)
Sets the selected status of all units in the collection.
| ||||||||||
abstract int |
size()
Returns the number of items in the collection.
| ||||||||||
abstract void | sort(Comparator comp) |
Adds the given WebDisplayUnit
object to the collection.
unit | The WebDisplayUnit object to add to the collection. |
---|---|
beforeKey | The key of an object which this object should be inserted before in the list. If the kye is less then 0 the object will be inserted after the last object in the collection. |
UnsupportedOperationException | Thrown if the folder object is marked as read-only |
---|---|
IllegalArgumentException | Thrown if there is an error when adding the object to the collection, for example, if the key given does not exist.. |
Adds the given WebDisplayUnit
object to the collection.
unit | The WebDisplayUnit object to add to the collection. |
---|
UnsupportedOperationException | Thrown if the collection is read-only. |
---|
Adds the given WebObjectInfo
object to the folder collection.
unit | The WebDisplayUnit object to add to the collection. |
---|---|
beforeObject | The object already in the folder to place the new object before. |
UnsupportedOperationException | Thrown if the folder object is marked as read-only |
---|---|
IllegalArgumentException | Thrown if there is an error when adding the object to the collection, for example, if the beforeObject given does not exist.. |
Sets whether details should be added to all objects within the collection.
details | True if details should be included, false otherwise. |
---|
WebObjectsException | Thrown if details could not be retrieved for one or more objects in the collection. |
---|
Adds the given WebDisplayUnit
object to the available display units
collection. This will cause the object to be placed into the <available> section
of the display XML.
unit | The WebDisplayUnit object to add to the collection. |
---|
UnsupportedOperationException | Thrown if the collection is read-only. |
---|
WebObjectsException |
---|
Clears all objects from the collection.
UnsupportedOperationException | Thrown in the case of a read-only collection. |
---|
Returns true if the folder contains an item by the given key, false if not.
key | The key to search for in the folder collection. |
---|
Returns true if the folder contains the given object, false if it does not.
object | The WebObjectInfo object to search for in the folder. |
---|
Returns a java.util.Enumeration containing the objects in this collection.
Returns a java.util.Enumeration containing the WebDisplayUnitEntry
objects
in this collection. Entries are ordered in the index sequence.
WebDisplayUnitEntry
objects
in this collection.
Tries to find the given item within the objects which are in the collection.
If one or more objects are found which match the given object, they are returned in the form of a WebDisplayUnits
collection.
This method is generally used to highlight objects within the available units collection.
Note that for the current version, the given object must be of type WebObjectInfo
, though
this restriction may be lifted in future versions.
object | The object to search for in the available units collection. |
---|
WebDisplayUnits
collection containing the items found, or null if no items
were found.
Tries to find the given item within the objects which are in the collection.
If one or more objects are found which match the given object, the first one is returned.
Note that for the current version, the given object must be of type WebObjectInfo
, though
this restriction may be lifted in future versions.
This method is generally used to highlight objects within the available units collection.
object | The object to search for in the available units collection. |
---|
WebDisplayUnit
object corresponding to the given object, or null
if the object is not found.
Returns the display unit in the collection with the given index.
index | The index of the object within the available display unit collection to return. |
---|
WebDisplayUnit
object corresponding to the given index in the collection.IndexOutOfBoundsException | Thrown if the given index is invalid. |
---|
Returns the index of the first retrieved object in the collection relative to the entire set.
Returns the current blockCount setting, which is used for incremental fetch of contents. This value tells the number of objects in the collection to be retrieved. This value is usually used in conjunction with blockBegin.
Returns the child count, which is the total number of items in the collection. This value can be grater then size as the number of items returned from the I-Server can be restricted by the blockBegin and blockCount properties.
Returns the folder count, which is the total number of folder objects in the underlying I-Server collection. This value can be grater then partial folder count due to the block count restriction.
Returns the display unit in the collection with the given key.
key | The key into the collection of the desired item. |
---|
WebObjectInfo
object with the given key in the collection.IllegalArgumentException | Thrown if the given key is not found in the collection. |
---|
Returns the number of objects of the specified object type in the collection.
objectType | The type of object, from EnumDSSXMLObjectTypes , to be counted. |
---|
EnumDSSXMLObjectTypes
.
Returns the number of folders in the collection.
Returns the number of selected child display units.
Highlights all units in the collection. The given detail setting will determine whether the highlighting will be detailed or not.
details | Whether to have the highlighting include details. |
---|
WebObjectsException | Thrown if the objects cannot be highlighted. |
---|
Highlights all units in the collection (without details).
WebObjectsException | Thrown if the objects cannot be highlighted. |
---|
Returns whether the collection is empty.
Returns the key of the given object, if it exists in the collection.
object | The WebDisplayUnit object to search for in the folder. |
---|
IllegalArgumentException | Thrown if the object does not exist in the collection. |
---|
Returns the key of the object with specified index.
index | an index of object in the collection. |
---|
IndexOutOfBoundsException | Thrown if the index is out boundaries. |
---|
Moves the object with the given key to position before specified object.
key | The key into the collection of the item to be removed. |
---|---|
beforeKey | The key of an object which this object should be inserted before in the list. If the kye is less then 0 the object will be inserted after the last object in the collection. |
IllegalArgumentException | Thrown if the given key is not found in the collection. |
---|---|
UnsupportedOperationException | Thrown if the folder object is read-only. |
Removes the display unit with the given index from the collection.
index | The index of the object to remove from the collection. |
---|
UnsupportedOperationException | Thrown if the collection is marked as read-only. |
---|---|
IndexOutOfBoundsException | Thrown if the given index is invalid. |
Removes the display unit from the collection.
unit | The WebDisplayUnit object to be removed from the collection. |
---|
UnsupportedOperationException | Thrown if the collection is marked as read-only. |
---|---|
IndexOutOfBoundsException | Thrown if the given index is invalid. |
Removes the object in the collection with the given key.
key | The key into the collection of the item to be removed. |
---|
IllegalArgumentException | Thrown if the given key is not found in the collection. |
---|---|
UnsupportedOperationException | Thrown if the folder object is read-only. |
Sets the index of the first retrieved object in the collection relative to the entire set.
blockBegin | The blockBegin setting. |
---|
Sets the blockCount setting, which is used for incremental fetch of folder contents. This value tells the number of objects in the folder to be retrieved. This value is usually used in conjunction with blockBegin.
blockCount | The blockCount setting to be used upon populating the folder from the Intelligence Server. |
---|
Sets the selected status of all units in the collection.
selected | True if the objects should be marked selected, false otherwise. |
---|
Returns the number of items in the collection.