home *** CD-ROM | disk | FTP | other *** search
- class application.strategies.ContentStrategie
- {
- var instCounter;
- var home;
- var normalProductContent;
- var benefitContent;
- var tonlineSoftwareContent;
- var clientContent;
- var installerSelectionContent;
- var softwareListContent;
- var helpContent;
- var imprintContent;
- var coBrandContent;
- function ContentStrategie()
- {
- this.instCounter = 0;
- this.home = new application.contents.HomeContent();
- this.normalProductContent = new application.contents.NormalProductContent();
- this.benefitContent = new application.contents.BenefitContent();
- this.tonlineSoftwareContent = new application.contents.TonlineSoftwareContent();
- this.clientContent = new application.contents.ClientContent();
- this.installerSelectionContent = new application.contents.InstallerSelectionContent();
- this.softwareListContent = new application.contents.SoftwareListContent();
- this.helpContent = new application.contents.HelpContent();
- this.imprintContent = new application.contents.InprintContent();
- this.coBrandContent = new application.contents.CoBrandContent();
- }
- function getStrategy(content)
- {
- this.instCounter = this.instCounter + 1;
- switch(content)
- {
- case "home":
- this.home.instCounter = this.instCounter;
- return this.home;
- case "normalProductContent":
- this.normalProductContent.instCounter = this.instCounter;
- return this.normalProductContent;
- case "benefitContent":
- this.benefitContent.instCounter = this.instCounter;
- return this.benefitContent;
- case "tonlineSoftwareContent":
- this.tonlineSoftwareContent.instCounter = this.instCounter;
- return this.tonlineSoftwareContent;
- case "clientContent":
- this.clientContent.instCounter = this.instCounter;
- return this.clientContent;
- case "installerSelectionContent":
- this.installerSelectionContent.instCounter = this.instCounter;
- return this.installerSelectionContent;
- case "softwareListContent":
- this.softwareListContent.instCounter = this.instCounter;
- return this.softwareListContent;
- case "helpContent":
- this.helpContent.instCounter = this.instCounter;
- return this.helpContent;
- case "imprintContent":
- this.imprintContent.instCounter = this.instCounter;
- return this.imprintContent;
- case "coBrandContent":
- this.coBrandContent.instCounter = this.instCounter;
- return this.coBrandContent;
- default:
- }
- }
- }
-