HEADER

ru.biosoft.access.support
Class DataCollectionRowModelAdapter

|
+--ru.biosoft.access.support.DataCollectionRowModelAdapter

public class DataCollectionRowModelAdapter
extends AbstractRowModel
implements DataCollectionListener


Constructor Summary
DataCollectionRowModelAdapter(DataCollection dc)
           

Method Summary
 voidcleanup()
           
 voidelementAdded(DataCollectionEvent e)
          Called after data element was added.
 voidelementChanged(DataCollectionEvent e)
          Called after data element was changed.
 voidelementRemoved(DataCollectionEvent e)
          Called after data element was removed.
 voidelementWillAdd(DataCollectionEvent e)
          Called before data element will be added.
 voidelementWillChange(DataCollectionEvent e)
          Called before data element will be changed.
 voidelementWillRemove(DataCollectionEvent e)
          Called before data element will be removed.
 ObjectgetBean(int index)
          Returns a bean at the index.
 voidregisterListener()
           
 intsize()
          Returns a number of beans in the model.
 voidunregisterListener()
           

Constructor Detail

DataCollectionRowModelAdapter

public DataCollectionRowModelAdapter(DataCollection dc)
Method Detail

cleanup

public void cleanup()

elementAdded

public void elementAdded(DataCollectionEvent e)
throws java.lang.Exception
Called after data element was added.
Parameters:
e - DataCollectionEvent information about added data element.
Throws:
Exception - If error occured.

elementChanged

public void elementChanged(DataCollectionEvent e)
throws java.lang.Exception
Called after data element was changed. e contains old data element (which already changed).
Parameters:
e - DataCollectionEvent information about changed data element.
Throws:
Exception - If error occured.

elementRemoved

public void elementRemoved(DataCollectionEvent e)
throws java.lang.Exception
Called after data element was removed.
Parameters:
e - DataCollectionEvent information about removed data element.
Throws:
Exception - If error occured.

elementWillAdd

public void elementWillAdd(DataCollectionEvent e)
throws ru.biosoft.access.DataCollectionVetoException,
java.lang.Exception
Called before data element will be added.
Parameters:
e - DataCollectionEvent information about will added data element.
Throws:
DataCollectionVetoException - If listener cancel adding of data element.
Exception - If error occured.

elementWillChange

public void elementWillChange(DataCollectionEvent e)
throws ru.biosoft.access.DataCollectionVetoException,
java.lang.Exception
Called before data element will be changed. e contains old data element (which will be changed).
Parameters:
e - DataCollectionEvent information about will change data element.
Throws:
DataCollectionVetoException - If listener cancel changing of data element.
Exception - If error occured.

elementWillRemove

public void elementWillRemove(DataCollectionEvent e)
throws ru.biosoft.access.DataCollectionVetoException,
java.lang.Exception
Called before data element will be removed.
Parameters:
e - DataCollectionEvent information about will removed data element.
Throws:
DataCollectionVetoException - If listener cancel removing of data element.
Exception - If error occured.

getBean

public Object getBean(int index)
Returns a bean at the index.

registerListener

public void registerListener()

size

public int size()
Returns a number of beans in the model. A TabularPropertyInspector uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

unregisterListener

public void unregisterListener()

Association Links

to Class org.apache.log4j.Category

to Class ru.biosoft.access.DataCollection


FOOTER

BOTTOM