Interface IBlockDefinition
- All Superinterfaces:
IContentDefinition
,Serializable
Base interface for block definition
- Author:
- omenuel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFragment
(IFragmentDefinition fragment) Add fragment to blockvoid
addNode
(IContentDefinition node) Add nodevoid
addNodeAfter
(IContentDefinition node, IContentDefinition addedNode) Add node addedNode after nodeFind all children node Even nodes in subForm<T extends IContentDefinition>
List<T> findAllNodes
(Class<T> interfaceDefinition) Find all nodes recursively by interfaceDefinition Even nodes in subFormFind node by id<T extends IContentDefinition>
IContentDefinitionfindNodeByAttribute
(Class<T> interfaceDefinition, String attributeName, String value, boolean recursive) Find node by interface definition class attribute name and value<T extends IContentDefinition>
List<T> Find nodes by interfaceDefinition<T extends IContentDefinition>
List<T> Get all nodes recursively, except nodes in subFormIncludeGet cssClassgetFragmentByName
(String name) Get fragment by nameGet fragmentsGet all fragments recursivelyList
<? extends IContentDefinition> getNodes()
Get nodesvoid
removeFragment
(IFragmentDefinition fragment) Remove fragment to blockvoid
removeNode
(IContentDefinition node) Remove nodevoid
setCssClass
(String cssClass) Set cssClassvoid
Get the blockDefinition XMLMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ui.definitions.IContentDefinition
clone, clone, getName, getParentBlock, getValue, getValues, setValue
-
Method Details
-
getAllNodes
Get all nodes recursively, except nodes in subFormInclude- Returns:
- nodes
-
findNodes
Find nodes by interfaceDefinition- Parameters:
interfaceDefinition
-recursive
-- Returns:
- nodes
-
findAllNodes
Find all nodes recursively by interfaceDefinition Even nodes in subForm- Parameters:
interfaceDefinition
-recursive
-- Returns:
- nodes
-
getNodes
List<? extends IContentDefinition> getNodes()Get nodes- Returns:
- nodes
-
addNode
Add node- Parameters:
node
-
-
addNodeAfter
Add node addedNode after node- Parameters:
node
-addedNode
-
-
removeNode
Remove node- Parameters:
node
-
-
getFragments
List<IFragmentDefinition> getFragments()Get fragments- Returns:
- fragments
-
getFragmentsRecursively
List<IFragmentDefinition> getFragmentsRecursively()Get all fragments recursively- Returns:
- fragments
-
getFragmentByName
Get fragment by name- Parameters:
name
-- Returns:
- fragment
-
addFragment
Add fragment to block- Parameters:
fragment
-
-
removeFragment
Remove fragment to block- Parameters:
fragment
-
-
getCssClass
String getCssClass()Get cssClass- Returns:
- cssClass
-
setCssClass
Set cssClass- Parameters:
cssClass
-
-
toXml
Get the blockDefinition XML- Parameters:
parentElement
-
-
findNode
Find node by id- Parameters:
id
-recursive
-- Returns:
- node
-
findNodeByAttribute
<T extends IContentDefinition> IContentDefinition findNodeByAttribute(Class<T> interfaceDefinition, String attributeName, String value, boolean recursive) Find node by interface definition class attribute name and value- Parameters:
interfaceDefinition
-attributeName
-value
-recursive
-- Returns:
- node
-
findAllNodes
LinkedList<IContentDefinition> findAllNodes()Find all children node Even nodes in subForm- Returns:
- nodes
-