Interface IBlock
- All Superinterfaces:
IWidget
,IWritable
,Serializable
Block interface
- Author:
- bchapoton
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add childvoid
addFragment
(IFragmentComponent fragment) Add fragmentGet all children recursively by idGet childrenGet all children recursivelygetChildrenRecursively
(Class<?> clazz) Get all children recursively by classGet cssClassGet the first editable not hidden WidgetGet fragmentsGet all fragments recursivelyboolean
Is the block collapsable ?void
removeChild
(IWidget child) Remove childvoid
removeFragment
(IFragmentComponent fragment) Remove fragmentvoid
setCssClass
(String cssClass) Set cssClassMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ui.IWidget
afterInit, getParentBlock, getSysname, isHidden, refresh, render, setHidden, setParentBlock, setSysname
-
Method Details
-
addChild
Add child- Parameters:
child
- the child widget
-
removeChild
Remove child- Parameters:
child
- the child widget
-
getChildren
Get children- Returns:
- children
-
getChildrenRecursively
LinkedList<IWidget> getChildrenRecursively()Get all children recursively- Returns:
- children
-
getChildrenRecursively
Get all children recursively by class- Parameters:
clazz
- the class- Returns:
- children
-
getChildRecursively
Get all children recursively by id- Parameters:
id
- the id- Returns:
- children
-
getFirstEditableWidgetRecursively
IWidget getFirstEditableWidgetRecursively()Get the first editable not hidden Widget- Returns:
- child
-
getCssClass
String getCssClass()Get cssClass- Returns:
- cssClass
-
setCssClass
Set cssClass- Parameters:
cssClass
- the css class
-
getFragments
List<IFragmentComponent> getFragments()Get fragments- Returns:
- fragments
-
addFragment
Add fragment- Parameters:
fragment
- the fragment
-
removeFragment
Remove fragment- Parameters:
fragment
- the fragment
-
getFragmentsRecursively
List<IFragmentComponent> getFragmentsRecursively()Get all fragments recursively- Returns:
- fragments
-
isCollapsable
boolean isCollapsable()Is the block collapsable ?- Returns:
- true if the block can be collapsed
-