|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.data.XModel
net.xoetrope.optional.data.pojo.XPojoModel
net.xoetrope.optional.data.pojo.XPojoIterator
public class XPojoIterator
| Field Summary | |
|---|---|
protected int |
curIdx
|
protected XPojoModel[] |
elements
|
| Fields inherited from class net.xoetrope.optional.data.pojo.XPojoModel |
|---|
adapter, collectionElements, dataSource, dirty, elIdx, getter, getterArgValues, pojo, properties, propertyName, setter |
| Fields inherited from class net.xoetrope.xui.data.XModel |
|---|
parentModel, tagName |
| Constructor Summary | |
|---|---|
XPojoIterator(XModel parent,
XPojoDataSource ds)
Creates a new instance of XPojoIterator. |
|
| Method Summary | |
|---|---|
java.lang.Object |
current()
Returns the model node wrapping the current element in the iteration |
java.lang.Object |
first()
Returns the model node wrapping the first object from the iterated collection and resets the iteration index to 0 |
java.lang.String |
getId()
Gets the values of the ID attribute |
boolean |
hasNext()
Indicates whether the iterator has more elements |
boolean |
hasPrevious()
Indicates whether this iterator has more elements while traversing the iterated collection in the reverse direction |
java.lang.Object |
last()
Returns the model node wrapping the last element of the iterated collection |
java.lang.Object |
next()
Gets the model node wrapping the next element in the iterated collection |
java.lang.Object |
previous()
Returns the model node wrapping the previous element in the iteration. |
void |
sync()
Syncs this node with the collection that is stored in the parent node |
| Methods inherited from class net.xoetrope.optional.data.pojo.XPojoModel |
|---|
append, append, clear, copyTo, executeGetter, executeSetter, get, get, get, getAttribName, getAttribute, getAttribValue, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getAttribValueAsString, getCollectionElements, getDataSource, getElIdx, getGetter, getGetterArguments, getNumAttributes, getNumChildren, getPojo, getPropertyName, getPropertyValue, getSetter, getValueAsDouble, getValueAsInt, getValueAsString, hasAutoId, hashCode, hasTransientAncestestor, isCollection, isDirty, isPropertyTransient, isTransient, markSubtreeAsDirty, retrieveModelNode, saveModelNode, set, set, setAttribValue, setAttribValue, setDirty, setGetter, setId, setNumChildren, setPojo, setPropertyValue, setSetter |
| Methods inherited from class net.xoetrope.xui.data.XModel |
|---|
addModelListener, fireModelUpdated, getParent, getTagName, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setNumAttributes, setParent, setTagName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XPojoModel[] elements
protected int curIdx
| Constructor Detail |
|---|
public XPojoIterator(XModel parent,
XPojoDataSource ds)
parent - the parent model node wich pojo
is expected to be a collectionds - the data source object| Method Detail |
|---|
public void sync()
sync in class XPojoModelpublic java.lang.Object current()
current in interface XIteratorpublic boolean hasNext()
hasNext in interface XIteratorpublic java.lang.Object next()
next in interface XIteratorpublic java.lang.Object first()
first in interface XIteratorpublic java.lang.Object last()
last in interface XIteratorpublic boolean hasPrevious()
hasPrevious in interface XIteratorpublic java.lang.Object previous()
previous in interface XIteratorpublic java.lang.String getId()
getId in class XPojoModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||