webwork.util
Class SortIteratorFilter

java.lang.Object
  extended bywebwork.util.IteratorFilterSupport
      extended bywebwork.util.SortIteratorFilter
All Implemented Interfaces:
Action, java.util.Iterator, java.io.Serializable

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

A bean that takes an iterator and outputs a subset of it.

Version:
$Revision: 1.9 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
, Serialized Form

Nested Class Summary
 
Nested classes inherited from class webwork.util.IteratorFilterSupport
IteratorFilterSupport.EnumerationIterator
 
Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
SortIteratorFilter()
           
 
Method Summary
 java.lang.String execute()
          This method is where the logic of the action is executed.
 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 webwork.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

setSource

public void setSource(java.lang.Object anIterator)

setComparator

public void setComparator(java.util.Comparator aComparator)

getList

public java.util.List getList()

execute

public java.lang.String execute()
Description copied from interface: Action
This method is where the logic of the action is executed. Parameters are passed by calling set-methods, or by implementing the ParameterAware interface.

Specified by:
execute in interface Action
Returns:
a string representing the logical result of the execution. See constants in this interface for a list of standard result values.

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 © 2001-2003 WebWork All Rights Reserved.