public static class RevisionHistoryDialog.RevisionListModel
extends org.zkoss.zul.AbstractListModel
implements org.zkoss.zul.ListModelExt
| Constructor and Description |
|---|
RevisionListModel(List<String> versionIds,
ResultSetPresenter resultPresenter,
DocumentId documentId,
String maskName,
ResultSetViewImpl resultView,
boolean historyAllowed)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(org.zkoss.zul.event.ListDataListener l) |
static RevisionHistoryDialog.RevisionListModel |
create(ResultSetPresenter resultPresenter,
ResultSetViewImpl view,
DocumentId docId,
String maskName)
Factory method.
|
Object |
getElementAt(int index) |
int |
getSize() |
String |
getSortDirection(Comparator cmpr) |
void |
removeListDataListener(org.zkoss.zul.event.ListDataListener l) |
void |
sort(Comparator cmpr,
boolean ascending) |
addPagingEventListener, addToSelection, clearSelection, clone, fireEvent, fireSelectionEvent, getActivePage, getPageCount, getPageSize, getSelection, getSelectionControl, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, readSelection, removeAllSelection, removeFromSelection, removePagingEventListener, retainAllSelection, setActivePage, setMultiple, setPageSize, setSelection, setSelectionControl, writeSelectionpublic RevisionListModel(List<String> versionIds, ResultSetPresenter resultPresenter, DocumentId documentId, String maskName, ResultSetViewImpl resultView, boolean historyAllowed)
versionIds - list of version IDs for the document.resultPresenter - ResultSetViewPresenterdocumentId - id of the current documentmaskName - name of the mask to display index dataresultView - result set view to post errorshistoryAllowed - whether the current user is allowed to view the old revisions documentspublic Object getElementAt(int index)
getElementAt in interface org.zkoss.zul.ListModelListModel.getElementAt(int)public int getSize()
getSize in interface org.zkoss.zul.ListModelListModel.getSize()public void sort(Comparator cmpr, boolean ascending)
sort in interface org.zkoss.zul.ext.Sortablepublic String getSortDirection(Comparator cmpr)
getSortDirection in interface org.zkoss.zul.ext.Sortablepublic void addListDataListener(org.zkoss.zul.event.ListDataListener l)
addListDataListener in interface org.zkoss.zul.ListModeladdListDataListener in class org.zkoss.zul.AbstractListModelpublic void removeListDataListener(org.zkoss.zul.event.ListDataListener l)
removeListDataListener in interface org.zkoss.zul.ListModelremoveListDataListener in class org.zkoss.zul.AbstractListModelpublic static RevisionHistoryDialog.RevisionListModel create(ResultSetPresenter resultPresenter, ResultSetViewImpl view, DocumentId docId, String maskName) throws NgcUiException, AuthenticationException
resultPresenter - The presenter to obtain the ids fromview - The result set view to post errorsdocId - The id of the document the revision history belongs tomaskName - The maskAuthenticationException - re-logon requiredNgcUiException - exception to be handled by viewCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.