Package com.axemble.vdoc.sdk.interfaces
Interface IBlock
- All Superinterfaces:
IContentComponent
,IElement
,Serializable
- All Known Implementing Classes:
EzsBlock
This interface represents a block element.
- Since:
- 2.1
- Version:
- 1.0, 16/06/2009
- Author:
- vlygeros
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a block.void
Adds a block.void
addComponent
(IComponent component) Adds a component.void
addComponent
(IComponent component, String path) Adds a component.void
addFirstComponent
(IComponent component) Adds a component in the first position in the block.findBlockBySystemName
(String name) Searches aIBlock
object by its system name.findBlockBySystemName
(String name, boolean recursive) Searches aIBlock
object by its system name, recursively.Searches aIComponent
object by its system name.findComponentBySystemName
(String name, boolean recursive) Searches aIComponent
object by its system name, recursively.findContentComponentById
(IStorageKey storageKey) Searches aIContentComponent
object by its identifier.findContentComponentById
(IStorageKey storageKey, boolean recursive) Searches aIContentComponent
object by its identifier, recursively.Searches aIContentComponent
object by its system name.findContentComponentBySystemName
(String name, boolean recursive) Searches aIContentComponent
object by its system name, recursively.Gets the inherited block.Gets all the content components (IBlock
orIComponent
elements).boolean
Checks if the block has been rebuilt.void
removeBlock
(IBlock block) Removes a block.void
removeComponent
(IComponent component) Removes a component.void
replaceBlock
(IBlock block, String path) Replaces a block.void
replaceComponent
(IComponent component, String path) Replaces a component.void
setBlockTemplateContainer
(IBlockTemplateContainer blockTemplateContainer) Sets the block template container.Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IContentComponent
getInnerCssClass, getInnerDescription, getInnerLabel, getInnerName, getParentBlock, getSysName, getValue, getValue, isInnerNullable, isInnerReplaceable, setHidden, setInnerCssClass, setInnerNullable, setInnerReplaceable, setSysName, setValue
-
Method Details
-
addBlock
Adds a block.- Parameters:
block
- TheIBlock
object to add.
-
addBlock
Adds a block.- Parameters:
block
- TheIBlock
object to add.path
- The path of the component to replace.
-
addComponent
Adds a component.- Parameters:
component
- TheIComponent
object to add.
-
addFirstComponent
Adds a component in the first position in the block.- Parameters:
component
- TheIComponent
object to add.
-
addComponent
Adds a component.- Parameters:
component
- TheIComponent
object to add.path
- The path of the component to replace.
-
replaceBlock
Replaces a block.- Parameters:
block
- TheIBlock
object to replace.path
- The path of the component to replace.
-
replaceComponent
Replaces a component.- Parameters:
component
- TheIComponent
object to replace.path
- The path of the component to replace.
-
getContentComponents
Collection<IContentComponent> getContentComponents()Gets all the content components (IBlock
orIComponent
elements).- Returns:
- A java.util.Collection of
IContentComponent
objects.
-
removeBlock
Removes a block.- Parameters:
block
- TheIBlock
object to remove.
-
removeComponent
Removes a component.- Parameters:
component
- TheIComponent
object to remove.
-
getBlockTemplateContainer
IBlockTemplateContainer getBlockTemplateContainer()Gets the inherited block.- Returns:
- A
IBlockTemplateContainer
object.
-
setBlockTemplateContainer
Sets the block template container.- Parameters:
blockTemplateContainer
- TheIBlockTemplateContainer
to set.
-
findContentComponentById
Searches aIContentComponent
object by its identifier.- Parameters:
storageKey
- TheIStorageKey
object to search with.- Returns:
- A
IContentComponent
object.
-
findContentComponentById
Searches aIContentComponent
object by its identifier, recursively.- Parameters:
storageKey
- TheIStorageKey
object to search with.recursive
- Specify if recursive.- Returns:
- A
IContentComponent
object.
-
findContentComponentBySystemName
Searches aIContentComponent
object by its system name.- Parameters:
name
- The system name of the child content component.- Returns:
- A
IContentComponent
object.
-
findContentComponentBySystemName
Searches aIContentComponent
object by its system name, recursively.- Parameters:
name
- The system name of the child content component.recursive
- Specify if recursive.- Returns:
- A
IContentComponent
object.
-
findComponentBySystemName
Searches aIComponent
object by its system name.- Parameters:
name
- The system name of the child component.- Returns:
- A
IComponent
object.
-
findComponentBySystemName
Searches aIComponent
object by its system name, recursively.- Parameters:
name
- The system name of the child component.recursive
- Specify if recursive.- Returns:
- A
IComponent
object.
-
findBlockBySystemName
Searches aIBlock
object by its system name.- Parameters:
name
- The system name of the child block.- Returns:
- A
IBlock
object.
-
findBlockBySystemName
Searches aIBlock
object by its system name, recursively.- Parameters:
name
- The system name of the child block.recursive
- Specify if recursive.- Returns:
- A
IBlock
object.
-
isRebuilt
boolean isRebuilt()Checks if the block has been rebuilt.- Returns:
- true if the block has been rebuilt, false otherwise.
-