org.apache.cocoon.portal.layout.renderer.aspect.impl
Class SizingAspect

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
          extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.SizingAspect
All Implemented Interfaces:
LogEnabled, RendererAspect, Serviceable, ThreadSafe

public class SizingAspect
extends AbstractAspect

This renderer aspect tests, if a coplet is sizable and/or maxpageable and adds tags holding URIs for switching to currently inactive modes (i.e. maximize or minimize).

Example XML:

   <minimize-uri>minimize-event</minimize-uri>
   <!-- output from following renderers -->

 or

   <maximize-uri>maximize-event</maximize-uri>
   <!-- processing stops here -->

 

Applicable to:

TODO: make the names of the aspects to test configurable

Version:
$Id: SizingAspect.java 326220 2005-10-18 20:27:09Z cziegeler $

Field Summary
 
Fields inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
manager
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect
ROLE
 
Constructor Summary
SizingAspect()
           
 
Method Summary
 void toSAX(RendererAspectContext context, Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 
Methods inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
prepareConfiguration, service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizingAspect

public SizingAspect()
Method Detail

toSAX

public void toSAX(RendererAspectContext context,
                  Layout layout,
                  PortalService service,
                  ContentHandler handler)
           throws SAXException
Description copied from interface: RendererAspect
Stream out raw layout

Specified by:
toSAX in interface RendererAspect
Overrides:
toSAX in class AbstractAspect
Throws:
SAXException
See Also:
RendererAspect.toSAX(RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.