net.sf.jsm.table.utils
Class AbstractGenerateJsmTrsCallback

java.lang.Object
  extended bynet.sf.jsm.table.utils.AbstractGenerateJsmTrsCallback
All Implemented Interfaces:
GenerateJsmTrsCallback

public class AbstractGenerateJsmTrsCallback
extends java.lang.Object
implements GenerateJsmTrsCallback


Constructor Summary
AbstractGenerateJsmTrsCallback()
           
 
Method Summary
 void postProcessing(JsmTr tr, java.lang.Object valueObject)
          Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object.
 void preProcessing(JsmTr tr, java.lang.Object valueObject)
          Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object.
 void processing(JsmTr tr, JsmTd td, java.lang.Object valueObject)
          Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGenerateJsmTrsCallback

public AbstractGenerateJsmTrsCallback()
Method Detail

preProcessing

public void preProcessing(JsmTr tr,
                          java.lang.Object valueObject)
Description copied from interface: GenerateJsmTrsCallback
Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object. No cells and meta data have been appended at this stage

Specified by:
preProcessing in interface GenerateJsmTrsCallback
Parameters:
tr - The row object. Modify in any way you want.
valueObject - The current value object which JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) is processing. Do not modify that object.

processing

public void processing(JsmTr tr,
                       JsmTd td,
                       java.lang.Object valueObject)
Description copied from interface: GenerateJsmTrsCallback
Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object. The cell has just been appended to the row.

Specified by:
processing in interface GenerateJsmTrsCallback
Parameters:
tr - The row object. Modify in any way you want.
td - The cell which has just been appended. Modify in any way you want.
valueObject - The current value object which JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) is processing. Do not modify that object.

postProcessing

public void postProcessing(JsmTr tr,
                           java.lang.Object valueObject)
Description copied from interface: GenerateJsmTrsCallback
Will be called by JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) for every generated JsmTr object. All the cells and the meta data are already been appended at this stage

Specified by:
postProcessing in interface GenerateJsmTrsCallback
Parameters:
tr - The row object. Modify in any way you want.
valueObject - The current value object which JsmTableUtil.generateJsmTrs(Collection, String[], String[], GenerateJsmTrsCallback) is processing. Do not modify that object.