info.magnolia.cms.gui.controlx.list
Class ListModelIteratorImpl

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.list.ListModelIteratorImpl
All Implemented Interfaces:
ListModelIterator, Iterator

public class ListModelIteratorImpl
extends Object
implements ListModelIterator

Author:
Sameer Charles $Id:ListModelIteratorImpl.java 2492 2006-03-30 08:30:43Z scharles $

Constructor Summary
ListModelIteratorImpl(AbstractListModel model, List list)
           
 
Method Summary
 String getGroupName()
          get group name
 String getId()
          An id to identify the current row
 Object getValue(String name)
          get named value
protected  Object getValue(String name, Object node)
          get value from a specified object
 Object getValueObject()
          The current object representing a row.
 ValueProvider getValueProvider()
           
 boolean hasNext()
          checks if there is next record
 boolean hasNextInGroup()
          checks if there are more records in the current group
 Object next()
          move next
 Object nextGroup()
          jump to next group
 void remove()
           
 void setValueProvider(ValueProvider valueProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListModelIteratorImpl

public ListModelIteratorImpl(AbstractListModel model,
                             List list)
Method Detail

getValue

public Object getValue(String name)
get named value

Specified by:
getValue in interface ListModelIterator
Parameters:
name - its a key to which value is attached in this record

getValue

protected Object getValue(String name,
                          Object node)
get value from a specified object

Parameters:
name - its a key to which value is attached in this record
node -

getValueObject

public Object getValueObject()
Description copied from interface: ListModelIterator
The current object representing a row. Can be of any type.

Specified by:
getValueObject in interface ListModelIterator
Returns:
the object.
See Also:
ListModelIterator.getValueObject()

getGroupName

public String getGroupName()
get group name

Specified by:
getGroupName in interface ListModelIterator
Returns:
name of the group of the current record

next

public Object next()
move next

Specified by:
next in interface Iterator

nextGroup

public Object nextGroup()
jump to next group

Specified by:
nextGroup in interface ListModelIterator

hasNext

public boolean hasNext()
checks if there is next record

Specified by:
hasNext in interface Iterator
Returns:
true if not EOF

hasNextInGroup

public boolean hasNextInGroup()
checks if there are more records in the current group

Specified by:
hasNextInGroup in interface ListModelIterator
Returns:
true if not EOF

getId

public String getId()
Description copied from interface: ListModelIterator
An id to identify the current row

Specified by:
getId in interface ListModelIterator

remove

public void remove()
Specified by:
remove in interface Iterator

setValueProvider

public void setValueProvider(ValueProvider valueProvider)

getValueProvider

public ValueProvider getValueProvider()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.