com.cc.framework.ui.painter
Class PainterFactoryIterator

java.lang.Object
  extended bycom.cc.framework.ui.painter.PainterFactoryIterator
All Implemented Interfaces:
java.util.Iterator

public class PainterFactoryIterator
extends java.lang.Object
implements java.util.Iterator

Iterator for registered painter factories

Since:
1.6
Version:
$Revision$
Author:
Harald Schulz

Field Summary
private  int cacheId
          The id of the current HTTP request.
private  int cursor
          The cursor that points to the current element in our factory list
private  int direction
          Stores the increment (the direction) the iterator will iterate it's collection
private  java.util.List factoryList
          The list of registered painter factories in the current page context
 
Constructor Summary
PainterFactoryIterator()
          Constructor
 
Method Summary
 boolean hasNext()
           
 void init(javax.servlet.jsp.PageContext pageContext, boolean topDown)
          Constructor
 void invalidate()
          Invalidates the cached state of the iterator
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

private int direction
Stores the increment (the direction) the iterator will iterate it's collection


cacheId

private int cacheId
The id of the current HTTP request. We cache the factory list on a HTTP request basis


factoryList

private java.util.List factoryList
The list of registered painter factories in the current page context


cursor

private int cursor
The cursor that points to the current element in our factory list

Constructor Detail

PainterFactoryIterator

public PainterFactoryIterator()
Constructor

Method Detail

invalidate

public void invalidate()
Invalidates the cached state of the iterator


init

public void init(javax.servlet.jsp.PageContext pageContext,
                 boolean topDown)
Constructor

Parameters:
pageContext - The JSP Page Context
topDown - indicates the direction the iterator will iterate it's collection

hasNext

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

next

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

remove

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


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.