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 likeBiglistboxto get the content of cells and headers from the matrix data.- Author:
- jumperchen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CellTgetCellAt(RowT rowData, int columnIndex)Returns the data object of the cell from the specified index.intgetColumnSize()Returns the length of the columnsHeadTgetHeadAt(int rowIndex)Returns the data object of the head from the specified index.HeaderTgetHeaderAt(HeadT headData, int columnIndex)Returns the data object of the header from the specified index.intgetHeadSize()Returns the length of the heads
-
-
-
Method Detail
-
getColumnSize
int getColumnSize()
Returns the length of the columns
-
getHeadSize
int getHeadSize()
Returns the length of the heads
-
getHeadAt
HeadT getHeadAt(int rowIndex)
Returns the data object of the head from the specified index.- Parameters:
rowIndex- the index of the row in the headers
-
getCellAt
CellT getCellAt(RowT rowData, int columnIndex)
Returns the data object of the cell from the specified index.- Parameters:
rowData- the row datacolumnIndex- the index of the column
-
-