|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.decorator.ContentDecoratorChain
public class ContentDecoratorChain
Manages a list of content decorators at runtime.
Constructor Summary | |
---|---|
ContentDecoratorChain(Blog blog)
Creates a new chain. |
Method Summary | |
---|---|
void |
add(ContentDecorator decorator)
Adds a new decorator. |
void |
decorate(ContentDecoratorContext context,
BlogEntry blogEntry)
Decorates the specified blog entry. |
void |
decorate(ContentDecoratorContext context,
Comment comment)
Decorates the specified comment. |
static void |
decorate(ContentDecoratorContext context,
java.util.List blogEntries)
Decorates the specified blog entries. |
void |
decorate(ContentDecoratorContext context,
StaticPage staticPage)
Decorates the specified static page. |
void |
decorate(ContentDecoratorContext context,
TrackBack trackBack)
Decorates the specified TrackBack. |
Blog |
getBlog()
Gets the blog to which this decorator is associated. |
java.util.List |
getContentDecorators()
Gets the list of decorators in use. |
java.util.List<ContentDecorator> |
getDecorators()
Gets the list of content decorators. |
void |
setBlog(Blog blog)
Sets the blog to which this decorator is associated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentDecoratorChain(Blog blog)
Method Detail |
---|
public void add(ContentDecorator decorator)
decorator
- a ContentDecorator instancepublic java.util.List getContentDecorators()
public void decorate(ContentDecoratorContext context, BlogEntry blogEntry)
decorate
in interface ContentDecorator
context
- the context in which the decoration is runningblogEntry
- the blog entry to be decoratedpublic void decorate(ContentDecoratorContext context, Comment comment)
decorate
in interface ContentDecorator
context
- the context in which the decoration is runningcomment
- the comment to be decoratedpublic void decorate(ContentDecoratorContext context, TrackBack trackBack)
decorate
in interface ContentDecorator
context
- the context in which the decoration is runningtrackBack
- the TrackBack to be decoratedpublic void decorate(ContentDecoratorContext context, StaticPage staticPage)
decorate
in interface ContentDecorator
context
- the context in which the decoration is runningstaticPage
- the static page to be decoratedpublic Blog getBlog()
getBlog
in interface ContentDecorator
public void setBlog(Blog blog)
setBlog
in interface ContentDecorator
blog
- a Blog instancepublic java.util.List<ContentDecorator> getDecorators()
public static void decorate(ContentDecoratorContext context, java.util.List blogEntries)
blogEntries
- a List of BlogEntry instances
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |