Dart Documentationdock_spawnSplitterDockContainer

SplitterDockContainer Class

Subclasses

HorizontalDockContainer, VerticalDockContainer

Implements

IDockContainer

Constructors

Code new SplitterDockContainer(String name, List<IDockContainer> childContainers) #

SplitterDockContainer(this.name, List<IDockContainer> childContainers) {
  splitterPanel = new SplitterPanel(childContainers, stackedVertical);
}

Methods

Code Element get containerElement() #

Element get containerElement() {
  return splitterPanel.panelElement;
}

Code void destroy() #

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

Code int get height() #

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

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

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

Code int get minimumAllowedChildNodes() #

int get minimumAllowedChildNodes() { return 2; }

Code void performLayout(List<IDockContainer> childContainers) #

void performLayout(List<IDockContainer> childContainers) {
  splitterPanel.performLayout(childContainers);
}

Code void resize(int _width, int _height) #

void resize(int _width, int _height) {
  splitterPanel.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) {
}

Code void setContainerRatio(IDockContainer container, num ratio) #

Sets the percentage of space the specified container takes in the split panel The percentage is specified in ratio and is between 0..1

void setContainerRatio(IDockContainer container, num ratio) {
  splitterPanel.setContainerRatio(container, ratio);
  resize(width, height);
}

Code bool get stackedVertical() #

abstract bool get stackedVertical();

Code int get width() #

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

Fields

Code String containerType #

String containerType;

Code String name #

String name;

Code SplitterPanel splitterPanel #

SplitterPanel splitterPanel;