Interface IBlock

All Superinterfaces:
IWidget, IWritable, Serializable

public interface IBlock extends IWidget
Block interface
Author:
bchapoton
  • Method Details

    • addChild

      void addChild(IWidget child)
      Add child
      Parameters:
      child - the child widget
    • removeChild

      void removeChild(IWidget child)
      Remove child
      Parameters:
      child - the child widget
    • getChildren

      List<? extends IWidget> getChildren()
      Get children
      Returns:
      children
    • getChildrenRecursively

      LinkedList<IWidget> getChildrenRecursively()
      Get all children recursively
      Returns:
      children
    • getChildrenRecursively

      List<IWidget> getChildrenRecursively(Class<?> clazz)
      Get all children recursively by class
      Parameters:
      clazz - the class
      Returns:
      children
    • getChildRecursively

      IWidget getChildRecursively(String id)
      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

      void setCssClass(String cssClass)
      Set cssClass
      Parameters:
      cssClass - the css class
    • getFragments

      List<IFragmentComponent> getFragments()
      Get fragments
      Returns:
      fragments
    • addFragment

      void addFragment(IFragmentComponent fragment)
      Add fragment
      Parameters:
      fragment - the fragment
    • removeFragment

      void removeFragment(IFragmentComponent fragment)
      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