My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 10, 2008 by flinn2...@2112portals.com
ProgrammingModel  
Please follow this...

Introduction

PowerWindows applies to very ancient wisdoms and philosophy.

Details

  1. Yes, keep it simple and stupid (the latter was really easy for me).
  2. Programm against interfaces rather than classes!
  3. PowerWindows is dynamic. From any release to another anything is allowed to change - except the static interfaces of the portalMan and masterControl Objects.

There are three important GLOBAL Object you will meet in the PW system:

  1. The global Namespace NS2112
  2. The global Portal Manager (NS2112.portalMan)
  3. The global runtime control or simply the mc (NS2112.masterControl)

  • If you are a user (the one that applies PowerWindows to the Web)

The very simpliest rule you need to follow to build a smooth running system is to never instantiate anything! Use the global Namespaces and their static methods only.

  • If you are a snapIn developer
Same as above will apply in the first place. But from hereon there is total freestyle for you. Decide wether to build an intrinsic snapIn that has no UI or a visible snapIn that shows up in the Application. Since your code is then loaded into the runtime you can literally do anything.

Featured Methods to use

Portal Manager Runtime

masterControl

The Brain.

  • NS2112.masterControl.doResize()
  • I don't think you will need this - it will inform the masterControl instance to adjust its layout - will reposition all windows.
  • NS2112.masterControl.Log(strMsg, strCategory)
  • Just in case you loaded the logger snapIn. This will dump to the logger.
  • NS2112.masterControl.requestSnap(strURL, strName, strTitle, strSIM)
  • Load any compatible snapIn from any source into the portal.


Sign in to add a comment
Hosted by Google Code