Dart Documentationdock_spawnFillDockContainer

FillDockContainer Class

Subclasses

DocumentManagerContainer

Implements

IDockContainer

Constructors

Code new FillDockContainer([int tabStripDirection = TabHost.DIRECTION_BOTTOM]) #

FillDockContainer([int tabStripDirection = TabHost.DIRECTION_BOTTOM]) {
  this.tabOrientation = tabStripDirection;
  name = getNextId("fill_");
  element = new DivElement();
  element.classes.add("dock-container");
  element.classes.add("dock-container-fill");
  
  tabHost = new TabHost(tabStripDirection: tabOrientation);
  element.nodes.add(tabHost.hostElement);
}

Methods

Code Element get containerElement() #

Element get containerElement() {
  return element;
}

Code void destroy() #

void destroy() {
  element.remove();
  element = null;
}

Code int get height() #

int get height() {
  return element.$dom_clientHeight;
}

Code void loadState(Map<String, Object> state) #

void loadState(Map<String, Object> state) {
  width = state['width'];
  height = state['height'];
}

Code int get minimumAllowedChildNodes() #

int get minimumAllowedChildNodes() { return 2; }

Code void performLayout(List<IDockContainer> children) #

void performLayout(List<IDockContainer> children) {
  tabHost.performLayout(children);
}

Code void resize(int _width, int _height) #

void resize(int _width, int _height) {
  element.style.width = "${_width}px";
  element.style.height = "${_height}px";
  tabHost.resize(_width, _height);
}

Code void saveState(Map<String, Object> state) #

void saveState(Map<String, Object> state) {
  state['width'] = width;
  state['height'] = height;
}

Code void setActiveChild(IDockContainer child) #

void setActiveChild(IDockContainer child) {
  tabHost.setActiveTab(child);
}

Code int get width() #

int get width() {
  return element.$dom_clientWidth;
}

Fields

Code String containerType #

String containerType = "fill";

Code DockManager dockManager #

DockManager dockManager;

Code DivElement element #

DivElement element;

Code String name #

String name;

Code TabHost tabHost #

TabHost tabHost;

Code int tabOrientation #

int tabOrientation = TabHost.DIRECTION_BOTTOM;