import { IPSControl } from '../ipscontrol'; import { IPSDBCustomPortletPart } from './ipsdbcustom-portlet-part'; import { PSDBSysPortletPartImpl } from './psdbsys-portlet-part-impl'; export class PSDBCustomPortletPartImpl extends PSDBSysPortletPartImpl implements IPSDBCustomPortletPart { 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.findPSControl(value); 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 cls(): string { return 'PSDBCustomPortletPartImpl'; } instanceof(cls: string): boolean { if (cls == 'control.dashboard.IPSDBCustomPortletPart') return true; return super.instanceof(cls); } }