import { IPSDECMSeperatorItem } from './ipsdecmseperator-item'; import { IPSDETBSeperatorItem } from './ipsdetbseperator-item'; import { PSDEToolbarItemImpl } from './psdetoolbar-item-impl'; import { IPSLanguageRes } from '../../res/ipslanguage-res'; import { IPSSysCss } from '../../res/ipssys-css'; import { IPSSysImage } from '../../res/ipssys-image'; export class PSDETBSeperatorItemImpl extends PSDEToolbarItemImpl implements IPSDETBSeperatorItem, IPSDECMSeperatorItem { protected cappslanguageres: IPSLanguageRes | null = null; getCapPSLanguageRes(): IPSLanguageRes | null { if (this.cappslanguageres != null) return this.cappslanguageres; const value = this.M.getCapPSLanguageRes; if (value == null) { return null; } this.cappslanguageres = this.getPSModel4('res.IPSLanguageRes', value, 'getCapPSLanguageRes') as IPSLanguageRes; return this.cappslanguageres; } get capPSLanguageRes(): IPSLanguageRes | null { return this.getCapPSLanguageRes(); } getCapPSLanguageResMust(): IPSLanguageRes { const value = this.getCapPSLanguageRes(); if (value == null) { throw new Error('未指定标题语言资源'); } return value; } get caption(): string { return this.M.caption; } protected pssyscss: IPSSysCss | null = null; getPSSysCss(): IPSSysCss | null { if (this.pssyscss != null) return this.pssyscss; const value = this.M.getPSSysCss; if (value == null) { return null; } this.pssyscss = this.getPSModel4('res.IPSSysCss', value, 'getPSSysCss') as IPSSysCss; return this.pssyscss; } get psSysCss(): IPSSysCss | null { return this.getPSSysCss(); } getPSSysCssMust(): IPSSysCss { const value = this.getPSSysCss(); if (value == null) { throw new Error('未指定系统样式表'); } return value; } protected pssysimage: IPSSysImage | null = null; getPSSysImage(): IPSSysImage | null { if (this.pssysimage != null) return this.pssysimage; const value = this.M.getPSSysImage; if (value == null) { return null; } this.pssysimage = this.getPSModel4('res.IPSSysImage', value, 'getPSSysImage') as IPSSysImage; return this.pssysimage; } get psSysImage(): IPSSysImage | null { return this.getPSSysImage(); } getPSSysImageMust(): IPSSysImage { const value = this.getPSSysImage(); if (value == null) { throw new Error('未指定图标资源对象'); } return value; } get tooltip(): string { return this.M.tooltip; } get showCaption(): boolean { return this.M.showCaption; } get showIcon(): boolean { return this.M.showIcon; } get spanMode(): boolean { return this.M.spanMode; } get cls(): string { return 'PSDETBSeperatorItemImpl'; } instanceof(cls: string): boolean { if (cls == 'control.toolbar.IPSDECMSeperatorItem' || cls == 'control.toolbar.IPSDETBSeperatorItem') return true; return super.instanceof(cls); } }