code: public void addComponents(final Model<UIHeading> _headingmodel)
      {
          final WebMarkupContainer container = new WebMarkupContainer("container");
  
          this.add(container);
          if (_headingmodel.getObject().getLevel() == 0) {
              container.add(AttributeModifier.replace("class", "eFapsFrameTitle"));
          } else {
              container.add(AttributeModifier.replace("class", "eFapsHeading" + _headingmodel.getObject().getLevel()));
          }
          container.add(new Label("heading", _headingmodel.getObject().getLabel()));
  
          final String toggleId = this.getMarkupId(true);
          final Component span = new WebComponent("toggle") {
  
              private static final long serialVersionUID = 1L;
  
              @Override
              protected void onComponentTag(final ComponentTag _tag)
              {
                  super.onComponentTag(_tag);
                  _tag.put("onclick", "toggleSection('" + toggleId + "');");
              }
  
              @Override
              public boolean isVisible()
              {
                  return _headingmodel.getObject().getLevel() > 0 && _headingmodel.getObject().isCollapsible();
              }
          };
          container.add(span);
  
          final Component status = new WebComponent("status") {
  
              private static final long serialVersionUID = 1L;
  
              @Override
              protected void onComponentTag(final ComponentTag _tag)
              {
                  super.onComponentTag(_tag);
                  _tag.put("name", _headingmodel.getObject().getName());
                  _tag.put("value", false);
              }
  
              @Override
              public boolean isVisible()
              {
                  return _headingmodel.getObject().getLevel() > 0 && _headingmodel.getObject().isCollapsible();
              }
          };
          status.setMarkupId("status_" + toggleId);
          container.add(status);
      }
docs: Method to add the Component to this Panel.
  
  @param _headingmodel model of the heading.