import { IPSControl } from '../ipscontrol'; import { IPSDBHtmlPortletPart } from './ipsdbhtml-portlet-part'; import { PSDBSysPortletPartImpl } from './psdbsys-portlet-part-impl'; export class PSDBHtmlPortletPartImpl extends PSDBSysPortletPartImpl implements IPSDBHtmlPortletPart { protected contentpscontrol: IPSControl | null = null; getContentPSControl(): IPSControl | null { if (this.contentpscontrol != null) return this.contentpscontrol; const value = this.M.getContentPSControl; if (value == null) { return null; } this.contentpscontrol = this.getPSModel4('control.IPSControl', value, 'getContentPSControl') as IPSControl; return this.contentpscontrol; } get contentPSControl(): IPSControl | null { return this.getContentPSControl(); } getContentPSControlMust(): IPSControl { const value = this.getContentPSControl(); if (value == null) { throw new Error('未指定内容部件'); } return value; } get htmlShowMode(): 'INNER' | 'IFRAME' { return this.M.htmlShowMode; } get pageUrl(): string { return this.M.pageUrl; } get cls(): string { return 'PSDBHtmlPortletPartImpl'; } instanceof(cls: string): boolean { if (cls == 'control.dashboard.IPSDBHtmlPortletPart') return true; return super.instanceof(cls); } }