com.ideo.sweetdev.presentation.struts.tag.table.data
Class TableDataBeanNoMapping

java.lang.Object
  extended bycom.ideo.sweetdev.presentation.struts.tag.table.data.TableDataBeanNoMapping
All Implemented Interfaces:
ITableData, java.io.Serializable

Deprecated. use TableListDataBeanNoMapping which use List instead of ArrayList

public class TableDataBeanNoMapping
extends java.lang.Object
implements ITableData, java.io.Serializable

See Also:
Serialized Form
 

Constructor Summary
TableDataBeanNoMapping(java.util.ArrayList _datas, java.lang.String[] _columns, java.lang.String[] _headers, IUser _user)
          Deprecated. Used for backward compatibility.
TableDataBeanNoMapping(java.util.ArrayList _datas, java.lang.String[] _columns, java.lang.String[] _headers, IUser _user, java.lang.String[] _headersTip)
          Deprecated.  
TableDataBeanNoMapping(java.util.ArrayList _datas, java.lang.String[] _columns, java.lang.String[] _headers, java.lang.String[] _widths, java.lang.String[] _aligns, IUser _user)
          Deprecated. Used for backward compatibility.
TableDataBeanNoMapping(java.util.ArrayList _datas, java.lang.String[] _columns, java.lang.String[] _headers, java.lang.String[] _widths, java.lang.String[] _aligns, IUser _user, java.lang.String[] _headersTip)
          Deprecated.  
 
Method Summary
 java.lang.String[] generateHeaderNames(TableBeans _table)
          Deprecated. Generate the TableBeans headers
 java.lang.String[] generateHeaderNamesTip(TableBeans _table)
          Deprecated. Generate the TableBeans headers tip
 java.lang.String[] getAligns()
          Deprecated. Get the table's aligns.
 java.lang.String[] getColumns()
          Deprecated. Get the table's columns.
 java.util.ArrayList getData()
          Deprecated. Get the table's datas.
 java.lang.String[] getHeaders()
          Deprecated. Get the table's headers.
 java.lang.String[] getRowAtIndex(int _index, TableBeans _table)
          Deprecated. Retrieve the row at a current index
 java.lang.String[] getWidths()
          Deprecated. Get the table's widths.
 void setAligns(java.lang.String[] _aligns)
          Deprecated. Set the table's aligns.
 void setColumns(java.lang.String[] _columns)
          Deprecated. Set the table's columns.
 void setData(java.util.ArrayList _datas)
          Deprecated. Set the table's datas.
 void setHeaders(java.lang.String[] _headers)
          Deprecated. Set the table's headers.
 void setWidths(java.lang.String[] _widths)
          Deprecated. Set the table's widths.
 int size()
          Deprecated. Retrieve the data size
 void sort(TableBeans _table)
          Deprecated. Sort all rows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDataBeanNoMapping

public TableDataBeanNoMapping(java.util.ArrayList _datas,
                              java.lang.String[] _columns,
                              java.lang.String[] _headers,
                              IUser _user)
                       throws TechnicalException
Deprecated. 
Used for backward compatibility.

Throws:
TechnicalException - exception
Parameters:
_datas - ArrayList
_columns - String[]
_headers - String[]
_user - IUser

TableDataBeanNoMapping

public TableDataBeanNoMapping(java.util.ArrayList _datas,
                              java.lang.String[] _columns,
                              java.lang.String[] _headers,
                              IUser _user,
                              java.lang.String[] _headersTip)
                       throws TechnicalException
Deprecated. 
Throws:
TechnicalException - exception
Parameters:
_datas - ArrayList
_columns - String[]
_headers - String[]
_user - IUser

TableDataBeanNoMapping

public TableDataBeanNoMapping(java.util.ArrayList _datas,
                              java.lang.String[] _columns,
                              java.lang.String[] _headers,
                              java.lang.String[] _widths,
                              java.lang.String[] _aligns,
                              IUser _user)
                       throws TechnicalException
Deprecated. 
Used for backward compatibility.

Throws:
TechnicalException - exception
Parameters:
_datas - ArrayList
_columns - String[]
_headers - String[]
_widths - String[]
_aligns - String[]
_user - IUser

TableDataBeanNoMapping

public TableDataBeanNoMapping(java.util.ArrayList _datas,
                              java.lang.String[] _columns,
                              java.lang.String[] _headers,
                              java.lang.String[] _widths,
                              java.lang.String[] _aligns,
                              IUser _user,
                              java.lang.String[] _headersTip)
                       throws TechnicalException
Deprecated. 
Throws:
TechnicalException - exception
Parameters:
_datas - ArrayList
_columns - String[]
_headers - String[]
_widths - String[]
_aligns - String[]
_user - IUser
Method Detail

getData

public java.util.ArrayList getData()
Deprecated. 
Get the table's datas. The Table's datas is a list of Java Beans.

Returns:
ArrayList

setData

public void setData(java.util.ArrayList _datas)
Deprecated. 
Set the table's datas. The Table's datas is a list of Java Beans.

Parameters:
_datas -

getColumns

public java.lang.String[] getColumns()
Deprecated. 
Get the table's columns. The Table's datas is a list of Java Beans. The columns is an array of String, which are the names of the beans' attributes that will be displayed. Exemple : if the datas are a list of Java Beans with the attributes firstname, lastname and title, the columns attribute could be : ["title", "firstname", "lastname"].

Returns:
String[] the column's name ordered by position in the table.

setColumns

public void setColumns(java.lang.String[] _columns)
Deprecated. 
Set the table's columns. The Table's datas is a list of Java Beans. The columns is an array of String, which are the names of the beans' attributes that will be displayed. Exemple : if the datas are a list of Java Beans with the attributes firstname, lastname and title, the columns attribute could be : ["title", "firstname", "lastname"].

Parameters:
_columns - the column's name ordered by position in the table.

getHeaders

public java.lang.String[] getHeaders()
Deprecated. 
Get the table's headers. The Table's headers is an array of String, which contains the columns' titles. These String could be either the columns' text or a message key which will be translated.

Returns:
String[] the table's headers.

setHeaders

public void setHeaders(java.lang.String[] _headers)
Deprecated. 
Set the table's headers. The Table's headers is an array of String, which contains the columns' titles. These String could be either the columns' text or a message key which will be translated.

Parameters:
_headers - the table's headers.

getWidths

public java.lang.String[] getWidths()
Deprecated. 
Get the table's widths. The Table's widths is an array of String, which contains the columns' widths.

Specified by:
getWidths in interface ITableData
Returns:
String[] the table's widths.

setWidths

public void setWidths(java.lang.String[] _widths)
Deprecated. 
Set the table's widths. The Table's widths is an array of String, which contains the columns' widths.

Specified by:
setWidths in interface ITableData
Parameters:
_widths - the table's column's widths.

getAligns

public java.lang.String[] getAligns()
Deprecated. 
Get the table's aligns. The Table's aligns is an array of String, which contains the columns' aligns.

Specified by:
getAligns in interface ITableData
Returns:
String[] the table's aligns.

setAligns

public void setAligns(java.lang.String[] _aligns)
Deprecated. 
Set the table's aligns. The Table's aligns is an array of String, which contains the columns' aligns.

Specified by:
setAligns in interface ITableData
Parameters:
_aligns - the table's aligns.

size

public int size()
Deprecated. 
Description copied from interface: ITableData
Retrieve the data size

Specified by:
size in interface ITableData
Returns:
int
See Also:
ITableData.size()

getRowAtIndex

public java.lang.String[] getRowAtIndex(int _index,
                                        TableBeans _table)
                                 throws TechnicalException
Deprecated. 
Description copied from interface: ITableData
Retrieve the row at a current index

Specified by:
getRowAtIndex in interface ITableData
Throws:
TechnicalException
Parameters:
_index - the row index
_table - TableBeans
Returns:
String[] containing the row datas
See Also:
ITableData.getRowAtIndex(int, com.ideo.sweetdev.presentation.struts.tag.table.TableBeans)

sort

public void sort(TableBeans _table)
          throws TechnicalException
Deprecated. 
Description copied from interface: ITableData
Sort all rows

Specified by:
sort in interface ITableData
Throws:
TechnicalException
Parameters:
_table - TableBeans
See Also:
ITableData.sort(com.ideo.sweetdev.presentation.struts.tag.table.TableBeans)

generateHeaderNames

public java.lang.String[] generateHeaderNames(TableBeans _table)
                                       throws TechnicalException
Deprecated. 
Description copied from interface: ITableData
Generate the TableBeans headers

Specified by:
generateHeaderNames in interface ITableData
Throws:
TechnicalException
Parameters:
_table - TableBeans
Returns:
String[]
See Also:
ITableData.generateHeaderNames(com.ideo.sweetdev.presentation.struts.tag.table.TableBeans)

generateHeaderNamesTip

public java.lang.String[] generateHeaderNamesTip(TableBeans _table)
                                          throws TechnicalException
Deprecated. 
Description copied from interface: ITableData
Generate the TableBeans headers tip

Specified by:
generateHeaderNamesTip in interface ITableData
Throws:
TechnicalException
Parameters:
_table - TableBeans
Returns:
String[]
See Also:
ITableData.generateHeaderNames(com.ideo.sweetdev.presentation.struts.tag.table.TableBeans)