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 TypeMethodDescriptionvoidAdds a block.voidAdds a block.voidaddComponent(IComponent component) Adds a component.voidaddComponent(IComponent component, String path) Adds a component.voidaddFirstComponent(IComponent component) Adds a component in the first position in the block.findBlockBySystemName(String name) Searches aIBlockobject by its system name.findBlockBySystemName(String name, boolean recursive) Searches aIBlockobject by its system name, recursively.Searches aIComponentobject by its system name.findComponentBySystemName(String name, boolean recursive) Searches aIComponentobject by its system name, recursively.findContentComponentById(IStorageKey storageKey) Searches aIContentComponentobject by its identifier.findContentComponentById(IStorageKey storageKey, boolean recursive) Searches aIContentComponentobject by its identifier, recursively.Searches aIContentComponentobject by its system name.findContentComponentBySystemName(String name, boolean recursive) Searches aIContentComponentobject by its system name, recursively.Gets the inherited block.Gets all the content components (IBlockorIComponentelements).booleanChecks if the block has been rebuilt.voidremoveBlock(IBlock block) Removes a block.voidremoveComponent(IComponent component) Removes a component.voidreplaceBlock(IBlock block, String path) Replaces a block.voidreplaceComponent(IComponent component, String path) Replaces a component.voidsetBlockTemplateContainer(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- TheIBlockobject to add.
-
addBlock
Adds a block.- Parameters:
block- TheIBlockobject to add.path- The path of the component to replace.
-
addComponent
Adds a component.- Parameters:
component- TheIComponentobject to add.
-
addFirstComponent
Adds a component in the first position in the block.- Parameters:
component- TheIComponentobject to add.
-
addComponent
Adds a component.- Parameters:
component- TheIComponentobject to add.path- The path of the component to replace.
-
replaceBlock
Replaces a block.- Parameters:
block- TheIBlockobject to replace.path- The path of the component to replace.
-
replaceComponent
Replaces a component.- Parameters:
component- TheIComponentobject to replace.path- The path of the component to replace.
-
getContentComponents
Collection<IContentComponent> getContentComponents()Gets all the content components (IBlockorIComponentelements).- Returns:
- A java.util.Collection of
IContentComponentobjects.
-
removeBlock
Removes a block.- Parameters:
block- TheIBlockobject to remove.
-
removeComponent
Removes a component.- Parameters:
component- TheIComponentobject to remove.
-
getBlockTemplateContainer
IBlockTemplateContainer getBlockTemplateContainer()Gets the inherited block.- Returns:
- A
IBlockTemplateContainerobject.
-
setBlockTemplateContainer
Sets the block template container.- Parameters:
blockTemplateContainer- TheIBlockTemplateContainerto set.
-
findContentComponentById
Searches aIContentComponentobject by its identifier.- Parameters:
storageKey- TheIStorageKeyobject to search with.- Returns:
- A
IContentComponentobject.
-
findContentComponentById
Searches aIContentComponentobject by its identifier, recursively.- Parameters:
storageKey- TheIStorageKeyobject to search with.recursive- Specify if recursive.- Returns:
- A
IContentComponentobject.
-
findContentComponentBySystemName
Searches aIContentComponentobject by its system name.- Parameters:
name- The system name of the child content component.- Returns:
- A
IContentComponentobject.
-
findContentComponentBySystemName
Searches aIContentComponentobject by its system name, recursively.- Parameters:
name- The system name of the child content component.recursive- Specify if recursive.- Returns:
- A
IContentComponentobject.
-
findComponentBySystemName
Searches aIComponentobject by its system name.- Parameters:
name- The system name of the child component.- Returns:
- A
IComponentobject.
-
findComponentBySystemName
Searches aIComponentobject by its system name, recursively.- Parameters:
name- The system name of the child component.recursive- Specify if recursive.- Returns:
- A
IComponentobject.
-
findBlockBySystemName
Searches aIBlockobject by its system name.- Parameters:
name- The system name of the child block.- Returns:
- A
IBlockobject.
-
findBlockBySystemName
Searches aIBlockobject by its system name, recursively.- Parameters:
name- The system name of the child block.recursive- Specify if recursive.- Returns:
- A
IBlockobject.
-
isRebuilt
boolean isRebuilt()Checks if the block has been rebuilt.- Returns:
- true if the block has been rebuilt, false otherwise.
-