Dart Documentationdock_spawnDialog

Dialog Class

Constructors

Code new Dialog.fromElement(String id, DockManager dockManager) #

Dialog.fromElement(String id, this.dockManager) {
  this.panel = new PanelContainer(query(id), dockManager);
  this.eventListener = dockManager;
  _initialize();  
}

Code new Dialog(PanelContainer panel, DockManager dockManager) #

Dialog(this.panel, this.dockManager) {
  _initialize();
  this.eventListener = dockManager;
}

Static Fields

Code int zIndexCounter #

static int zIndexCounter = 1000;

Methods

Code void bringToFront() #

void bringToFront() {
  zIndexCounter++;
  elementDialog.style.zIndex = "$zIndexCounter";
}

Code void destroy() #

void destroy() {
  elementDialog.classes.remove("rounded-corner-top");
  panel.elementTitle.classes.remove("rounded-corner-top");
  elementDialog.remove();
  draggable.removeDecorator();
  panel.elementPanel.remove();
  panel.floatingDialog = null;
}

Code void onMouseDown(MouseEvent e) #

void onMouseDown(MouseEvent e) {
  bringToFront();
}

Code void resize(int width, int height) #

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

Code void setPosition(num x, num y) #

void setPosition(num x, num y) {
  elementDialog.style.left = "${x}px";
  elementDialog.style.top = "${y}px";
}

Code void setTitle(String title) #

void setTitle(String title) {
  panel.setTitle(title);
}

Code void setTitleIcon(String iconName) #

void setTitleIcon(String iconName) {
  panel.setTitleIcon(iconName);
}

Fields

Code DockManager dockManager #

DockManager dockManager;

Code DraggableContainer draggable #

DraggableContainer draggable;

Code DivElement elementDialog #

DivElement elementDialog;

Code DialogEventListener eventListener #

DialogEventListener eventListener;

Code var mouseDownHandler #

var mouseDownHandler;

Code PanelContainer panel #

PanelContainer panel;

Code ResizableContainer resizable #

ResizableContainer resizable;