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() |
void |
removeListDataListener(org.zkoss.zul.event.ListDataListener l) |
void |
sort(Comparator cmpr,
boolean ascending) |
public 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.ListModel
ListModel.getElementAt(int)
public int getSize()
getSize
in interface org.zkoss.zul.ListModel
ListModel.getSize()
public void sort(Comparator cmpr, boolean ascending)
sort
in interface org.zkoss.zul.ListModelExt
public void addListDataListener(org.zkoss.zul.event.ListDataListener l)
addListDataListener
in interface org.zkoss.zul.ListModel
addListDataListener
in class org.zkoss.zul.AbstractListModel
public void removeListDataListener(org.zkoss.zul.event.ListDataListener l)
removeListDataListener
in interface org.zkoss.zul.ListModel
removeListDataListener
in class org.zkoss.zul.AbstractListModel
public 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 © 2020 Hyland Software Germany GmbH. All rights reserved.