Package org.zkoss.zkmax.zul
Interface MatrixModel<RowT,HeadT,CellT,HeaderT>
- All Superinterfaces:
org.zkoss.zul.ListModel<RowT>
public interface MatrixModel<RowT,HeadT,CellT,HeaderT>
extends org.zkoss.zul.ListModel<RowT>
The interface defines the methods that components like
Biglistbox
to get the content of cells and headers from the matrix data.- Author:
- jumperchen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data object of the cell from the specified index.intReturns the length of the columnsgetHeadAt(int rowIndex) Returns the data object of the head from the specified index.getHeaderAt(HeadT headData, int columnIndex) Returns the data object of the header from the specified index.intReturns the length of the headsMethods inherited from interface org.zkoss.zul.ListModel
addListDataListener, getElementAt, getListDataListeners, getSize, removeListDataListener
-
Method Details
-
getColumnSize
int getColumnSize()Returns the length of the columns -
getHeadSize
int getHeadSize()Returns the length of the heads -
getHeadAt
Returns the data object of the head from the specified index.- Parameters:
rowIndex- the index of the row in the headers
-
getCellAt
Returns the data object of the cell from the specified index.- Parameters:
rowData- the row datacolumnIndex- the index of the column
-
getHeaderAt
Returns the data object of the header from the specified index.- Parameters:
headData- the head datacolumnIndex- the index of the column
-