org.apache.struts2.util
Class SortIteratorFilter

java.lang.Object
  extended by org.apache.struts2.util.IteratorFilterSupport
      extended by org.apache.struts2.util.SortIteratorFilter
All Implemented Interfaces:
Action, java.util.Iterator

public class SortIteratorFilter
extends IteratorFilterSupport
implements java.util.Iterator, Action

A bean that takes a source and comparator then attempt to sort the source utilizing the comparator. It is being used in SortIteratorTag.

See Also:
SortIteratorTag

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.struts2.util.IteratorFilterSupport
IteratorFilterSupport.EnumerationIterator
 
Field Summary
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
SortIteratorFilter()
           
 
Method Summary
 java.lang.String execute()
           
 java.util.List getList()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 void setComparator(java.util.Comparator aComparator)
           
 void setSource(java.lang.Object anIterator)
           
 
Methods inherited from class org.apache.struts2.util.IteratorFilterSupport
getIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortIteratorFilter

public SortIteratorFilter()
Method Detail

setComparator

public void setComparator(java.util.Comparator aComparator)

getList

public java.util.List getList()

setSource

public void setSource(java.lang.Object anIterator)

execute

public java.lang.String execute()
Specified by:
execute in interface Action

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.