java.lang.Object | |||
↳ | com.microstrategy.web.blocks.BlockTarget | ||
↳ | com.microstrategy.web.blocks.BlockListElement | ||
↳ | com.microstrategy.web.blocks.BlockList |
This class represents a list in a Block.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
accept(BlockVisitor visitor)
Accept a BlockVisitor to this Block List.
| ||||||||||
void |
add(BlockListElement element)
Adds an existing
BlockListElement to this list. | ||||||||||
Block | addNewBlock() | ||||||||||
Block | addNewBlock(String blockName) | ||||||||||
void |
clear()
Empties the contents of this list.
| ||||||||||
BlockListElement |
get(int index)
Returns the
BlockListElement at the specified index. | ||||||||||
Block |
getElement(String listElementKey)
returns a
Block whose list element is specified | ||||||||||
BlockList | putNewList() | ||||||||||
BlockListElement |
remove(int index)
Removes a
BlockListElement at a specified index from this list. | ||||||||||
BlockListElement |
remove(String key)
Removes the
BlockListElement whose list element key is specified. | ||||||||||
int |
size()
Returns the number of elements in this list.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Accept a BlockVisitor to this Block List. The visitor is notified in the following way:
visitListStart(BlockList, BlockTarget)
.visitListEnd(BlockList, BlockTarget)
.
visitor | The BlockVisitor instance. |
---|
Adds an existing BlockListElement
to this list. By default, this
element is added to the end of the list. Properties of the BlockListElement
can modify how it is added to the list.
element | The list element to add. |
---|
Empties the contents of this list.
Returns the BlockListElement
at the specified index.
index | The index of the list element to return. |
---|
BlockListElement
to return.
Removes a BlockListElement
at a specified index from this list.
index | The index of the list element to remove. |
---|
BlockListElement
that was removed.
Removes the BlockListElement
whose list element key is specified.
key | The list element key of the list element to remove. |
---|
BlockListElement
that was removed.Returns the number of elements in this list.