Dart Documentationdock_spawnTabPage

TabPage Class

Subclasses

DocumentTabPage

Constructors

Code new TabPage(TabHost host, IDockContainer container) #

TabPage(this.host, this.container) {
  handle = new TabHandle(this);
  containerElement = container.containerElement;
}

Methods

Code void destroy() #

void destroy() {
  handle.destroy();
}

Code void onSelected() #

void onSelected() {
  host.onTabPageSelected(this);
}

Code void resize(int width, int height) #

void resize(int width, int height) {
  container.resize(width, height);
}

Code void setSelected(bool flag) #

void setSelected(bool flag) {
  selected = flag;
  handle.setSelected(flag);
  
  if (selected) {
    host.contentElement.nodes.add(containerElement);
    // force a resize again
    int width = host.contentElement.$dom_clientWidth;
    int height = host.contentElement.$dom_clientHeight;
    container.resize(width, height);
  } else {
    containerElement.remove();
  }
}

Fields

Code IDockContainer container #

IDockContainer container;

Code Element containerElement #

Element containerElement;

Code TabHandle handle #

TabHandle handle;

Code TabHost host #

TabHost host;

Code bool selected #

bool selected = false;