|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.AbstractTemplateModel
org.barracudamvc.core.comp.AbstractIterativeTemplateModel
org.barracudamvc.contrib.sam.models.IteratorModel
iterates over a Map, uses the special keys "Key" and "Value" for returning key-value-pairs
Field Summary | |
protected Object |
_current
current element during iteration, might be casted to appropiate class |
protected Iterator |
_iter
|
protected static org.apache.log4j.Logger |
logger
|
protected String |
name
name of the model |
Fields inherited from class org.barracudamvc.core.comp.AbstractTemplateModel |
listeners, UNDEFINED, viewContext |
Constructor Summary | |
IteratorModel(String name)
|
|
IteratorModel(String name,
Iterator iter)
initialize the model |
Method Summary | |
String |
getName()
get the name of the model |
boolean |
hasNext()
|
void |
loadNext()
empty implementation, does nothing. |
void |
setIterator(Iterator iter)
|
void |
setName(String name)
set the name of the model |
Methods inherited from class org.barracudamvc.core.comp.AbstractIterativeTemplateModel |
postIterate, preIterate |
Methods inherited from class org.barracudamvc.core.comp.AbstractTemplateModel |
addModelListener, fireModelChanged, getItem, getItem, getViewContext, processDirective, removeModelListener, setViewContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected String name
protected Iterator _iter
protected Object _current
Constructor Detail |
public IteratorModel(String name, Iterator iter)
name
- Name of the modeliter
- Iterator to iteratepublic IteratorModel(String name)
Method Detail |
public String getName()
public void setIterator(Iterator iter)
public void setName(String name)
name
- name of the modelpublic boolean hasNext()
hasNext
in interface IterativeModel
hasNext
in class AbstractIterativeTemplateModel
public void loadNext()
loadNext
in interface IterativeModel
loadNext
in class AbstractIterativeTemplateModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |