net.sourceforge.pebble.decorator
Class ExcerptDecorator

java.lang.Object
  extended by net.sourceforge.pebble.decorator.ContentDecoratorSupport
      extended by net.sourceforge.pebble.decorator.ExcerptDecorator
All Implemented Interfaces:
ContentDecorator

public class ExcerptDecorator
extends ContentDecoratorSupport

Automatically creates an excerpt for blog entries if one doesn't already exist.

Author:
Simon Brown

Field Summary
static java.lang.String MAX_LENGTH_KEY
          the name of the maxLength property
 
Constructor Summary
ExcerptDecorator()
           
 
Method Summary
 void decorate(ContentDecoratorContext context, BlogEntry blogEntry)
          Decorates the specified blog entry.
 void decorate(ContentDecoratorContext context, StaticPage staticPage)
          Decorates the specified static page.
 
Methods inherited from class net.sourceforge.pebble.decorator.ContentDecoratorSupport
decorate, decorate, getBlog, setBlog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_LENGTH_KEY

public static final java.lang.String MAX_LENGTH_KEY
the name of the maxLength property

See Also:
Constant Field Values
Constructor Detail

ExcerptDecorator

public ExcerptDecorator()
Method Detail

decorate

public void decorate(ContentDecoratorContext context,
                     BlogEntry blogEntry)
Decorates the specified blog entry.

Specified by:
decorate in interface ContentDecorator
Overrides:
decorate in class ContentDecoratorSupport
Parameters:
context - the context in which the decoration is running
blogEntry - the blog entry to be decorated

decorate

public void decorate(ContentDecoratorContext context,
                     StaticPage staticPage)
Decorates the specified static page.

Specified by:
decorate in interface ContentDecorator
Overrides:
decorate in class ContentDecoratorSupport
Parameters:
context - the context in which the decoration is running
staticPage - the static page to be decorated


Copyright © 2003-2006, Simon Brown. All Rights Reserved.