Class SimpleGridTableListModel
java.lang.Object
org.zkoss.zul.AbstractListModel<GridTableRow>
org.adempiere.webui.editor.grid.selection.SimpleGridTableListModel
- All Implemented Interfaces:
Serializable,EventListener,TableModelListener,org.zkoss.zul.ext.Pageable,org.zkoss.zul.ext.Selectable<GridTableRow>,org.zkoss.zul.ext.Sortable<Object>,org.zkoss.zul.ListModel<GridTableRow>,org.zkoss.zul.PageableModel
public class SimpleGridTableListModel
extends org.zkoss.zul.AbstractListModel<GridTableRow>
implements TableModelListener, org.zkoss.zul.ext.Sortable<Object>
ListModel for
GridTabSelectionListView- Author:
- Low Heng Sin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zul.AbstractListModel
org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E extends Object> -
Field Summary
Fields inherited from class org.zkoss.zul.AbstractListModel
_selectionFields inherited from interface org.zkoss.zul.PageableModel
INTERNAL_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt(int rowIndex) intgetSize()Get total number of rowsgetSortDirection(Comparator<Object> cmpr) voidsort(Comparator<Object> cmpr, boolean ascending) voidvoidupdateComponent(int row) Request components that attached to this model to re-render a row.voidupdateComponent(int fromRow, int toRow) Request components that attached to this model to re-render a range of row.Methods inherited from class org.zkoss.zul.AbstractListModel
addListDataListener, addPagingEventListener, addToSelection, clearSelection, clone, fireEvent, fireSelectionEvent, getActivePage, getListDataListeners, getPageCount, getPageSize, getSelection, getSelectionControl, getTotalSize, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, readSelection, removeAllSelection, removeFromSelection, removeListDataListener, removePagingEventListener, retainAllSelection, setActivePage, setMultiple, setPageSize, setSelection, setSelectionControl, writeSelectionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zul.ext.Sortable
sort
-
Constructor Details
-
SimpleGridTableListModel
- Parameters:
tableModel-windowNo-
-
-
Method Details
-
getElementAt
- Specified by:
getElementAtin interfaceorg.zkoss.zul.ListModel<GridTableRow>- Parameters:
rowIndex-- See Also:
-
ListModel.getElementAt(int)
-
getSize
public int getSize()Get total number of rows- Specified by:
getSizein interfaceorg.zkoss.zul.ListModel<GridTableRow>- Returns:
- int
- See Also:
-
ListModel.getSize()
-
updateComponent
public void updateComponent(int row) Request components that attached to this model to re-render a row.- Parameters:
row-
-
updateComponent
public void updateComponent(int fromRow, int toRow) Request components that attached to this model to re-render a range of row.- Parameters:
fromRow-toRow-
-
sort
- Specified by:
sortin interfaceorg.zkoss.zul.ext.Sortable<Object>- Parameters:
cmpr-ascending-- See Also:
-
org.zkoss.zul.ListModelExt#sort(Comparator, boolean)
-
tableChanged
- Specified by:
tableChangedin interfaceTableModelListener- Parameters:
e-- See Also:
-
getSortDirection
- Specified by:
getSortDirectionin interfaceorg.zkoss.zul.ext.Sortable<Object>
-