Package com.saperion.ngc.dialogs
Class RevisionHistoryDialog.RevisionListModel
- java.lang.Object
- 
- org.zkoss.zul.AbstractListModel
- 
- com.saperion.ngc.dialogs.RevisionHistoryDialog.RevisionListModel
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- org.zkoss.zul.ext.Pageable,- org.zkoss.zul.ext.Selectable,- org.zkoss.zul.ext.Sortable,- org.zkoss.zul.ListModel,- org.zkoss.zul.ListModelExt,- org.zkoss.zul.PageableModel
 - Enclosing class:
- RevisionHistoryDialog
 
 public static class RevisionHistoryDialog.RevisionListModel extends org.zkoss.zul.AbstractListModel implements org.zkoss.zul.ListModelExtList model for the version history dialog.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description RevisionListModel(java.util.List<java.lang.String> versionIds, ResultSetPresenter resultPresenter, DocumentId documentId, java.lang.String maskName, ResultSetViewImpl resultView, boolean historyAllowed)Constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListDataListener(org.zkoss.zul.event.ListDataListener l)static RevisionHistoryDialog.RevisionListModelcreate(ResultSetPresenter resultPresenter, ResultSetViewImpl view, DocumentId docId, java.lang.String maskName)Factory method.java.lang.ObjectgetElementAt(int index)intgetSize()java.lang.StringgetSortDirection(java.util.Comparator cmpr)voidremoveListDataListener(org.zkoss.zul.event.ListDataListener l)voidsort(java.util.Comparator cmpr, boolean ascending)- 
Methods inherited from class org.zkoss.zul.AbstractListModeladdPagingEventListener, addToSelection, clearSelection, clone, fireEvent, fireSelectionEvent, getActivePage, getPageCount, getPageSize, getSelection, getSelectionControl, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, readSelection, removeAllSelection, removeFromSelection, removePagingEventListener, retainAllSelection, setActivePage, setMultiple, setPageSize, setSelection, setSelectionControl, writeSelection
 
- 
 
- 
- 
- 
Constructor Detail- 
RevisionListModelpublic RevisionListModel(java.util.List<java.lang.String> versionIds, ResultSetPresenter resultPresenter, DocumentId documentId, java.lang.String maskName, ResultSetViewImpl resultView, boolean historyAllowed)Constructor.- Parameters:
- versionIds- list of version IDs for the document.
- resultPresenter- ResultSetViewPresenter
- documentId- id of the current document
- maskName- name of the mask to display index data
- resultView- result set view to post errors
- historyAllowed- whether the current user is allowed to view the old revisions documents
 
 
- 
 - 
Method Detail- 
getElementAtpublic java.lang.Object getElementAt(int index) - Specified by:
- getElementAtin interface- org.zkoss.zul.ListModel
- See Also:
- ListModel.getElementAt(int)
 
 - 
getSizepublic int getSize() - Specified by:
- getSizein interface- org.zkoss.zul.ListModel
- See Also:
- ListModel.getSize()
 
 - 
sortpublic void sort(java.util.Comparator cmpr, boolean ascending)- Specified by:
- sortin interface- org.zkoss.zul.ext.Sortable
 
 - 
getSortDirectionpublic java.lang.String getSortDirection(java.util.Comparator cmpr) - Specified by:
- getSortDirectionin interface- org.zkoss.zul.ext.Sortable
 
 - 
addListDataListenerpublic void addListDataListener(org.zkoss.zul.event.ListDataListener l) - Specified by:
- addListDataListenerin interface- org.zkoss.zul.ListModel
- Overrides:
- addListDataListenerin class- org.zkoss.zul.AbstractListModel
 
 - 
removeListDataListenerpublic void removeListDataListener(org.zkoss.zul.event.ListDataListener l) - Specified by:
- removeListDataListenerin interface- org.zkoss.zul.ListModel
- Overrides:
- removeListDataListenerin class- org.zkoss.zul.AbstractListModel
 
 - 
createpublic static RevisionHistoryDialog.RevisionListModel create(ResultSetPresenter resultPresenter, ResultSetViewImpl view, DocumentId docId, java.lang.String maskName) throws NgcUiException, AuthenticationException Factory method.- Parameters:
- resultPresenter- The presenter to obtain the ids from
- view- The result set view to post errors
- docId- The id of the document the revision history belongs to
- maskName- The mask
- Returns:
- The correspondent revision list model.
- Throws:
- AuthenticationException- re-logon required
- NgcUiException- exception to be handled by view
 
 
- 
 
-