Alanren/bdc (#4161)

* wip

* target cluster type page

* finish target cluster type page

* remove commented line
This commit is contained in:
Alan Ren
2019-02-25 14:04:12 -08:00
committed by GitHub
parent 779ca13d48
commit a71be2b193
10 changed files with 512 additions and 109 deletions

View File

@@ -5,20 +5,19 @@
'use strict';
import * as sqlops from 'sqlops';
import { WizardBase } from './wizardBase';
export abstract class WizardPageBase<T> {
private _page: sqlops.window.WizardPage;
public get page(): sqlops.window.WizardPage {
public get pageObject(): sqlops.window.WizardPage {
return this._page;
}
public get wizard(): WizardBase<T> {
public get wizard(): T {
return this._wizard;
}
constructor(title: string, description: string, protected model: T, private _wizard: WizardBase<T>) {
constructor(title: string, description: string, private _wizard: T) {
this._page = sqlops.window.createWizardPage(title);
this._page.description = description;
this._page.registerContent((view: sqlops.ModelView) => {
@@ -27,4 +26,8 @@ export abstract class WizardPageBase<T> {
}
protected abstract initialize(view: sqlops.ModelView): Thenable<void>;
public onEnter(): void { }
public onLeave(): void { }
}