Dart Documentationdock_spawnDocumentTabPage

DocumentTabPage Class

Specialized tab page that doesn't display the panel's frame when docked in a tab page

Extends

TabPage > DocumentTabPage

Constructors

Code new DocumentTabPage(TabHost _host, IDockContainer _container) #

DocumentTabPage(TabHost _host, IDockContainer _container) : super(_host, _container)
{
  // If the container is a panel, extract the content element and set it as the tab's content
  if (container.containerType == "panel") {
    panel = container;
    containerElement = panel.elementContent;
    
    // detach the container element from the panel's frame.  
    // It will be reattached when this tab page is destroyed
    // This enables the panel's frame (title bar etc) to be hidden
    // inside the tab page
    containerElement.remove();
  }
}

Methods

Code void destroy() #

void destroy() {
  super.destroy();

  // Restore the panel content element back into the panel frame
  panel.elementContentHost.nodes.add(containerElement);
}

Fields

Code PanelContainer panel #

PanelContainer panel = null;