net.sourceforge.fluxion.pussycat.container
Class PussycatRenderletContainer
java.lang.Object
net.sourceforge.fluxion.pussycat.container.PussycatRenderletContainer
- All Implemented Interfaces:
- RenderletContainer
public class PussycatRenderletContainer
- extends java.lang.Object
- implements RenderletContainer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PussycatRenderletContainer
public PussycatRenderletContainer(PussycatSessionManager sessionManager)
add
public void add(java.lang.String idPrefix,
java.lang.String renderletName)
throws PussycatException
- Adds a new Renderlet of the type matching the given renderletName
gives it a change listener and registers it to the nexus.
- Specified by:
add
in interface RenderletContainer
- Parameters:
idPrefix
- a prefix to uniquely identify this renderletrenderletName
- renderletName
- Throws:
PussycatException
update
public java.util.Set<java.lang.String> update(java.lang.String renderletId,
java.lang.String objectId)
- Description copied from interface:
RenderletContainer
- Look up the renderlet by its id, and lookup the referenced object that is being changed. Then update the renderlet
instance with the current linked object
- Specified by:
update
in interface RenderletContainer
- Parameters:
renderletId
- renderlet idobjectId
- object id
- Returns:
- the ids of renderlets that need updating
remove
public boolean remove(java.lang.String renderletId)
- Removes the renderlet with the given id
- Specified by:
remove
in interface RenderletContainer
- Parameters:
renderletId
- the renderlet to remove
- Returns:
- true is successful, false otherwise
removeStaleRenderlets
public java.util.Set<java.lang.String> removeStaleRenderlets()
removeStaleRenderlets
public java.util.Set<java.lang.String> removeStaleRenderlets(java.lang.String prefix)
addReadyRenderlet
public void addReadyRenderlet(java.lang.String renderletId,
java.lang.String html)
removeReadyRenderlet
public boolean removeReadyRenderlet(java.lang.String renderletId)
getReadyRenderletHtml
public java.lang.String getReadyRenderletHtml(java.lang.String renderletId)
addRenderletContainerListener
public void addRenderletContainerListener(RenderletContainerListener rcl)
- Specified by:
addRenderletContainerListener
in interface RenderletContainer
removeRenderletContainerListener
public void removeRenderletContainerListener(RenderletContainerListener rcl)
- Specified by:
removeRenderletContainerListener
in interface RenderletContainer
lookupRenderletByName
public Renderlet lookupRenderletByName(java.lang.String renderletName)
throws PussycatException
- Throws:
PussycatException
lookupRenderletById
public Renderlet lookupRenderletById(java.lang.String renderletId)
getRenderletManager
public PussycatRenderletManager getRenderletManager()
getRenderletNexus
public PussycatRenderletNexus getRenderletNexus()
Copyright © 2010. All Rights Reserved.