com.microstrategy.web.objects.WebAttributeForms |
The WebAttributeForms interface represents a collection of attribute forms. This collection will be either read-only or read-write based upon its origin, and is index-based.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
add(WebAttributeForm form, int index)
Adds the given attribute form to the forms collection at the given index.
| ||||||||||
abstract void |
add(WebAttributeForm form)
Adds the given attribute form to the forms collection.
| ||||||||||
abstract boolean |
contains(WebAttributeForm form)
Returns whether the given form is contained in the collection.
| ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration, which can be used to iterate through the collection.
| ||||||||||
abstract WebAttributeForm |
get(int index)
Returns the attribute form with the given index from the collection.
| ||||||||||
abstract WebAttributeForm |
get(String name)
Returns the named attribute form from the collection.
| ||||||||||
abstract WebDisplayUnits |
getChildUnits()
Returns the collection of child display units, or null if the object is
not a collection.
| ||||||||||
abstract WebAttributeForm |
getIDForm()
Returns the attribute ID form.
| ||||||||||
abstract int |
indexOf(WebAttributeForm form)
Returns the index of the given form in the collection.
| ||||||||||
abstract boolean |
isEmpty()
Returns whether the collection is empty.
| ||||||||||
abstract void |
move(int fromIndex, int toIndex)
Moves the form from one position to another.
| ||||||||||
abstract void |
remove(WebAttributeForm form)
Removes the given form from the collection.
| ||||||||||
abstract void |
remove(int index)
Removes the form at the given index from the collection.
| ||||||||||
abstract int |
size()
Returns the number of items in the collection.
|
Adds the given attribute form to the forms collection at the given index. It is only possible to add forms to the collections which are attached to the working set and template attributes. All forms greater than or equal to the given index will be pushed back one position in the collection.
form | The form object to add to the forms collection. If the form already exists in the collection, it will be moved to the given index. |
---|---|
index | The index of the collection to insert the form object at. |
IllegalArgumentException | Thrown if the parameter is null. |
---|---|
UnsupportedOperationException | Thrown if the collection is read-only. |
Adds the given attribute form to the forms collection. It is only possible to add forms to the collections which are attached to the working set and template attributes.
form | The form object to add to the forms collection. If the form already exists in the collection, it will be moved to the end of the collection. |
---|
IllegalArgumentException | Thrown if the parameter is null. |
---|---|
UnsupportedOperationException | Thrown if the collection is read-only. |
Returns whether the given form is contained in the collection.
form | The form to check for within the collection. |
---|
Returns a java.util.Enumeration, which can be used to iterate through the collection.
Returns the attribute form with the given index from the collection.
index | The index (0-based) of the WebAttributeForm to retrieve. |
---|
WebAttributeForm
object with the given index within this collection.IndexOutOfBoundsException | Indicates that the given index is invalid. |
---|
Returns the named attribute form from the collection.
name | the name of an attribute form |
---|
IllegalArgumentException | thrown if there is no such a named attribute form. |
---|
Returns the collection of child display units, or null if the object is not a collection. Note that several display units are actually collections of display units as well.
WebObjectsException | thrown if there is any error encountered. |
---|
Returns the attribute ID form.
null
if there is no ID form available. Returns the index of the given form in the collection. Returns -1 if the given form is not found.
form | The form to search for in the collection |
---|
Returns whether the collection is empty.
Moves the form from one position to another.
fromIndex | The index of the form to move (0-based). |
---|---|
toIndex | The index the form should be moved to (0-based). |
IllegalArgumentException | Thrown if either position is invalid. |
---|---|
UnsupportedOperationException | Thrown if the collection is read-only. |
Removes the given form from the collection.
form | The form to remove from the collection. |
---|
IllegalArgumentException | Thrown if the parameter is null or not found in the collection. |
---|---|
UnsupportedOperationException | Thrown if the collection is read-only. |
Removes the form at the given index from the collection.
index | The index of the form to remove from the collection. |
---|
IllegalArgumentException | Thrown if the given index does not exist. |
---|---|
UnsupportedOperationException | Thrown if the collection is read-only. |
IndexOutOfBoundsException |
Returns the number of items in the collection.