org.jasig.portal.layout.dlm.processing
Class ExampleStickyTabEnforcer

java.lang.Object
  extended by org.jasig.portal.layout.dlm.processing.ExampleStickyTabEnforcer
All Implemented Interfaces:
IParameterProcessor

public class ExampleStickyTabEnforcer
extends Object
implements IParameterProcessor

Sample IParameterProcessor that when used watches for a tab with a name of "Sticky Tab" and continuously sets that tab's ID as the activeTab stylesheet parameters to force that tab to stay in focus.

Author:
Mark Boyd

Constructor Summary
ExampleStickyTabEnforcer()
           
 
Method Summary
 void processParameters(UserPreferences prefs, HttpServletRequest request)
          Looks for a tab in the user's layout with a title of "Sticky Tab" and if found sets that tab's ID as the value of a structure stylesheet parameter "activeTab" which is looked for and used by DLM's default structure stylesheet.
 void setResources(IPerson person, DistributedLayoutManager dlm)
          Acquires an instance of DistributedLayoutManager to allow this processor to look at all tabs in the user's layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleStickyTabEnforcer

public ExampleStickyTabEnforcer()
Method Detail

setResources

public void setResources(IPerson person,
                         DistributedLayoutManager dlm)
Acquires an instance of DistributedLayoutManager to allow this processor to look at all tabs in the user's layout.

Specified by:
setResources in interface IParameterProcessor
See Also:
IParameterProcessor.setResources(org.jasig.portal.security.IPerson, org.jasig.portal.layout.dlm.DistributedLayoutManager)

processParameters

public void processParameters(UserPreferences prefs,
                              HttpServletRequest request)
Looks for a tab in the user's layout with a title of "Sticky Tab" and if found sets that tab's ID as the value of a structure stylesheet parameter "activeTab" which is looked for and used by DLM's default structure stylesheet.

Specified by:
processParameters in interface IParameterProcessor
See Also:
IParameterProcessor.processParameters(org.jasig.portal.UserPreferences, javax.servlet.http.HttpServletRequest)


Copyright © 2010 Jasig. All Rights Reserved.