ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataprovider
Class Table

java.lang.Object
  extended bycom.elegantj.data.dataprovider.Table

public class Table
extends java.lang.Object

This class encapsulates the data structure for table which hold records.


Constructor Summary
Table()
          Constructs an empty table.
 
Method Summary
 void addRecord(Record record)
          Method which adds a record to this table.
 void addRecordAt(int index, Record record)
          Method which adds a record to this table at a specified index.
 java.util.Vector getRecordAt(int index)
          Method which returns a record at specified index.
 java.util.Vector getRecordVector()
          Method which returns the vector of records in this table.
 int getTotalRecords()
          Method which returns total number of records.
 void modifyDataAt(Record record, int position)
          Method which modify record at specified position.
 void removeRecordAt(int index)
          Method which removes a record at specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()
Constructs an empty table.

Method Detail

addRecord

public void addRecord(Record record)
Method which adds a record to this table.

Parameters:
record - A record to be added to this table.

addRecordAt

public void addRecordAt(int index,
                        Record record)
Method which adds a record to this table at a specified index.

Parameters:
index - The index at which the specified record will be added.
record - A record to be added to this table.

getRecordAt

public java.util.Vector getRecordAt(int index)
Method which returns a record at specified index.

Parameters:
index - The index from which to retrieve the record.
Returns:
record The record.

removeRecordAt

public void removeRecordAt(int index)
Method which removes a record at specified index.

Parameters:
index - The index from which to remove the record.

getTotalRecords

public int getTotalRecords()
Method which returns total number of records.

Returns:
Total number of records.

getRecordVector

public java.util.Vector getRecordVector()
Method which returns the vector of records in this table.

Returns:
The vector of records in this table.

modifyDataAt

public void modifyDataAt(Record record,
                         int position)
Method which modify record at specified position.

Parameters:
record - The vector containing the record data.
position - The position of the record to be modified.

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.