org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table
Class TableUtils.RowLoop

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableUtils.RowLoop
Enclosing class:
TableUtils

public abstract static class TableUtils.RowLoop
extends java.lang.Object

implements a loop that loops through all the rows in the visible range


Constructor Summary
TableUtils.RowLoop()
           
 
Method Summary
protected  void loop(javax.faces.context.FacesContext fc, org.apache.myfaces.trinidad.component.CollectionComponent table)
          selects each index in the table that is in the current range and calls processRow(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.CollectionComponent)
protected  void processRow(javax.faces.context.FacesContext fc, org.apache.myfaces.trinidad.component.CollectionComponent table)
          this method sets up the 'var' variable and calls processRowImpl(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.CollectionComponent)
protected abstract  void processRowImpl(javax.faces.context.FacesContext fc, org.apache.myfaces.trinidad.component.CollectionComponent table)
          this method will be called for each visible row.
 void run(javax.faces.context.FacesContext fc, org.apache.myfaces.trinidad.component.CollectionComponent table)
          calls #saveOldState to save any state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableUtils.RowLoop

public TableUtils.RowLoop()
Method Detail

run

public final void run(javax.faces.context.FacesContext fc,
                      org.apache.myfaces.trinidad.component.CollectionComponent table)
               throws java.io.IOException
calls #saveOldState to save any state. Then calls loop(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.CollectionComponent) to run through the loop. Finally, calls #restoreOldState to restore any state.

Parameters:
fc -
table -
Throws:
java.io.IOException

loop

protected void loop(javax.faces.context.FacesContext fc,
                    org.apache.myfaces.trinidad.component.CollectionComponent table)
             throws java.io.IOException
selects each index in the table that is in the current range and calls processRow(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.CollectionComponent)

Parameters:
fc -
table -
Throws:
java.io.IOException

processRow

protected final void processRow(javax.faces.context.FacesContext fc,
                                org.apache.myfaces.trinidad.component.CollectionComponent table)
                         throws java.io.IOException
this method sets up the 'var' variable and calls processRowImpl(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.CollectionComponent)

Parameters:
fc -
table -
Throws:
java.io.IOException

processRowImpl

protected abstract void processRowImpl(javax.faces.context.FacesContext fc,
                                       org.apache.myfaces.trinidad.component.CollectionComponent table)
                                throws java.io.IOException
this method will be called for each visible row. the rowIndex of table will be set to the corresponding row. the 'var' variable will be setup before this method is called.

Parameters:
table -
Throws:
java.io.IOException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.