java.lang.Object | |
↳ | com.microstrategy.web.blocks.BlockFactory |
This class manages the creation of Blocks.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BlockRegistry |
getBlockRegistry()
Gets the registry of blocks that are associated with this
factory.
| ||||||||||
static BlockFactory |
getInstance()
Returns an instance of a BlockFactory to use for creating
Blocks.
| ||||||||||
Block |
newBlock(String name, String mode)
Create and initialize a named Block.
| ||||||||||
Block |
newBlock()
Create a new, empty, Block.
| ||||||||||
Block |
newBlock(String name)
Create and initialize a named Block.
| ||||||||||
BlockList |
newBlockList()
Creates a new
BlockList object instance. | ||||||||||
void |
setBlockRegistry(BlockRegistry blockRegistry)
Sets the registry of blocks to be associated with this
factory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Gets the registry of blocks that are associated with this factory.
BlockRegistry
used with this factory.Returns an instance of a BlockFactory to use for creating Blocks.
Create and initialize a named Block.
name | The name of the Block to create. |
---|---|
mode | The mode that the Block should be initialized for. |
Block
.Exception | If the name does not refer to a Block registered with this factory. |
---|---|
IllegalArgumentException | If the name is empty or null or the mode is invalid. |
Create a new, empty, Block.
Block
which has no properties defined.
Create and initialize a named Block.
name | The name of the Block to create. |
---|
Block
.Exception | If the name does not refer to a Block registered with this factory. |
---|---|
IllegalArgumentException | If the name is empty or null. |
Sets the registry of blocks to be associated with this factory.
blockRegistry | The BlockRegistry to use with this factory. |
---|