|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.AbstractBlockIterator
public abstract class AbstractBlockIterator
This class provides the abstract implementation of a BlockIterator. Basically, it will
Field Summary | |
---|---|
protected String |
name
|
protected BTemplate |
templateComp
|
protected Object |
templateModels
|
Fields inherited from interface org.barracudamvc.core.comp.BlockIterator |
---|
BLOCK_ITERATOR_CONTEXT |
Constructor Summary | |
---|---|
AbstractBlockIterator()
|
Method Summary | |
---|---|
String |
getName()
Get the block iterator name (from the block iterator template directive) |
abstract Object |
getTemplateModels()
Provide the template models which back this iterator. |
abstract boolean |
hasNext()
Allows the developer to return true if there are more rows to be processed |
void |
invalidateTemplateModels()
Clear the current template models (which will cause the component to be repopulated using getTemplateModels() |
abstract boolean |
loadNext()
Actually allows developer to increment forward in the data layer. |
Node |
next(ViewContext vc,
Node templateNode)
Asks the developer to process a node (given the current data layer context) |
void |
postIterate()
Gets called after iteration is complete. |
void |
preIterate()
Gets called prior to iteration. |
void |
setName(String iname)
Set the block iterator name (from the block iterator template directive) |
void |
updateTemplateModels(Object itemplateModels)
Provide a method to immeditately force an update on the model(s) that back this iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object templateModels
protected BTemplate templateComp
protected String name
Constructor Detail |
---|
public AbstractBlockIterator()
Method Detail |
---|
public void setName(String iname)
setName
in interface BlockIterator
public String getName()
getName
in interface BlockIterator
public void preIterate()
preIterate
in interface BlockIterator
public abstract boolean hasNext()
hasNext
in interface BlockIterator
public abstract boolean loadNext()
loadNext
in interface BlockIterator
public Node next(ViewContext vc, Node templateNode) throws RenderException
next
in interface BlockIterator
RenderException
public abstract Object getTemplateModels()
getTemplateModels
in interface BlockIterator
public void postIterate()
postIterate
in interface BlockIterator
public void invalidateTemplateModels()
invalidateTemplateModels
in interface BlockIterator
public void updateTemplateModels(Object itemplateModels)
updateTemplateModels
in interface BlockIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |