com.phloxui
Version:
PhloxUI Ng2+ Framework
58 lines (57 loc) • 2.31 kB
TypeScript
import { OnInit } from '@angular/core';
import { PhloxApp } from './PhloxApp.component';
import { INavigatee } from './INavigatee';
import { IApplicationAware } from './IApplicationAware';
import { IPageLoad } from '../share/IPageLoad';
import { PhloxAppService } from '../service/PhloxAppService.service';
import { BackgroundProcessManager } from '../service/BackgroundProcessManager.service';
/**
* <p style="text-indent: 2em;">
* An abstract base class of <code>PhloxUI</code> application's <code>page</code>. All component classes extending this class can be
* added into [[PhloxApp]] component and can be navigated via its <code>router</code>.
* </p>
*
* @author shiorin, tee4cute
* @see [[PhloxApp]]
*/
export declare abstract class AbstractPage implements INavigatee, IApplicationAware, OnInit, IPageLoad {
private PAGE_LOOP_TIMEOUT;
protected phloxAppService: PhloxAppService;
protected bgProcessMgr: BackgroundProcessManager;
/**
* A [[PhloxApp]] component in which this <code>page</code> is associated with.
*/
private readonly app;
/**
* A flag indicating that this <code>page</code> is being showed or displayed by [[PhloxApp]] component or not.
*/
active: boolean;
/**
* A name of this <code>page</code>. This must be also a <code>router</code>'s uri path.
*/
protected name: string;
/**
* This constructor will automatically add <code><b>this</b></code> <code>page</code> instance into the given [[PhloxApp]] <code>application</code> (<code><b>app</b></code>).
*/
constructor(phloxAppService: PhloxAppService, name: string, bgProcessMgr: BackgroundProcessManager);
ngOnInit(): void;
/**
* <p style="text-indent: 1em;">
* Get an <code>application</code> instance in which this <code>page</code> is associated with.
* </p>
*/
getApplication(): PhloxApp;
/**
* <p style="text-indent: 1em;">
* Get a name of this <code>page</code>. This must be also a <code>router</code>'s uri path.
* </p>
*/
getName(): string;
/**
* <p style="text-indent: 1em;">
* To check that this <code>page</code> is being showed or displayed by [[PhloxApp]] component or not.
* </p>
*/
isActive(): boolean;
abstract isPageLoaded(): boolean;
}