Class XTableModelDecoratorBase
java.lang.Object
org.openxava.tab.impl.XTableModelDecoratorBase
- All Implemented Interfaces:
Serializable, TableModel, IObjectTableModel, IRefreshTableModel, IXTableModel
- Direct Known Subclasses:
HiddenXTableModel, SelectedRowsXTableModel
Base class to create
IXTableModel decorators.
A decorator as describe in GoF book.
By default simply redirect the call to IXTableModel original.
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetColumnClass(int columnIndex) intgetColumnName(int columnIndex) getObjectAt(int rowIndex) Return the object associated to indicated row.intintTotal count of objects represented by this table model.getValueAt(int rowIndex, int columnIndex) booleanbooleanisCellEditable(int rowIndex, int columnIndex) voidrefresh()Refresh data from datasource.voidvoidvoidvoidsetValueAt(Object aValue, int rowIndex, int columnIndex)
-
Constructor Details
-
XTableModelDecoratorBase
- Parameters:
toDecorate- IXTableModel to decorate.- Throws:
IllegalArgumentException- If toDecorate == null.
-
-
Method Details
-
addTableModelListener
- Specified by:
addTableModelListenerin interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel
-
getObjectAt
Description copied from interface:IObjectTableModelReturn the object associated to indicated row.- Specified by:
getObjectAtin interfaceIObjectTableModel- Specified by:
getObjectAtin interfaceIXTableModel- Throws:
javax.ejb.FinderException
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel
-
refresh
Description copied from interface:IRefreshTableModelRefresh data from datasource.- Specified by:
refreshin interfaceIRefreshTableModel- Specified by:
refreshin interfaceIXTableModel- Throws:
TabException
-
removeAllRows
public void removeAllRows()- Specified by:
removeAllRowsin interfaceIXTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListenerin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel
-
getTotalSize
Description copied from interface:IXTableModelTotal count of objects represented by this table model.Cantidad de objetos total representados por el table model.
getRowCount()in another side, return the loaded objects count, not total.- Specified by:
getTotalSizein interfaceIXTableModel- Throws:
RemoteException
-
getSum
- Specified by:
getSumin interfaceIXTableModel- Throws:
RemoteException
-
removeRow
- Specified by:
removeRowin interfaceIXTableModel- Throws:
javax.ejb.FinderException
-
getChunkSize
public int getChunkSize()- Specified by:
getChunkSizein interfaceIXTableModel- Since:
- 5.7
-
isAllLoaded
public boolean isAllLoaded()- Specified by:
isAllLoadedin interfaceIXTableModel- Since:
- 5.7
-