Jx.task.TaskWindow

This class is used to implement the base TaskWindow widget for the Junos Space UI. This window uses a transparent background (as default) and can be used as a parent window that could contain other components used by the task. This can be overridden to implement a customized task window



Ext.ns('Jx.task');
Jx.task.TaskWindow = Ext.extend(Ext.Window, {
    layout: 'fit',
    draggable: false,
    resizable: true,
    maximized: true,
    closeable: false,
    cls: 'jx-window-transparent',
    title: 'Task Window',
    alignToRibbon: true,
    windowAlignment: 't-b',
    initComponent: function (initialConfig) {
        Ext.apply(this, initialConfig);
        Jx.task.TaskWindow.superclass.initComponent.call(this);
    }
});
Jx.task.TaskWindow.prototype.show = Jx.task.TaskWindow.prototype.show.createInterceptor(

function () {
    if (this.alignToRibbon) {
        this.alignTo(Ext.getCmp('newribbon').getEl(), this.windowAlignment);
    }
});
Jx.JxTaskWindow = Jx.task.TaskWindow;
Ext.reg('jxtaskwindow', Jx.task.TaskWindow);