org.zkoss.zkmax.zul
Interface MatrixModel<Row,Head,Cell,Header>

All Superinterfaces:
ListModel<Row>

public interface MatrixModel<Row,Head,Cell,Header>
extends ListModel<Row>

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
 Cell getCellAt(Row rowData, int columnIndex)
          Returns the data object of the cell from the specified index.
 int getColumnSize()
          Returns the length of the columns
 Head getHeadAt(int rowIndex)
          Returns the data object of the head from the specified index.
 Header getHeaderAt(Head headData, int columnIndex)
          Returns the data object of the header from the specified index.
 int getHeadSize()
          Returns the length of the heads
 
Methods inherited from interface org.zkoss.zul.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Method Detail

getColumnSize

int getColumnSize()
Returns the length of the columns


getHeadSize

int getHeadSize()
Returns the length of the heads


getHeadAt

Head 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

Cell getCellAt(Row rowData,
               int columnIndex)
Returns the data object of the cell from the specified index.

Parameters:
rowData - the row data
columnIndex - the index of the column

getHeaderAt

Header getHeaderAt(Head headData,
                   int columnIndex)
Returns the data object of the header from the specified index.

Parameters:
headData - the head data
columnIndex - the index of the column


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo