Class 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.ListModelExt
    List model for the version history dialog.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zul.AbstractListModel

        org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E extends java.lang.Object>
    • Field Summary

      • Fields inherited from class org.zkoss.zul.AbstractListModel

        _selection
      • Fields inherited from interface org.zkoss.zul.PageableModel

        INTERNAL_EVENT
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListDataListener​(org.zkoss.zul.event.ListDataListener l)  
      static RevisionHistoryDialog.RevisionListModel create​(ResultSetPresenter resultPresenter, ResultSetViewImpl view, DocumentId docId, java.lang.String maskName)
      Factory method.
      java.lang.Object getElementAt​(int index)
      int getSize()
      java.lang.String getSortDirection​(java.util.Comparator cmpr)  
      void removeListDataListener​(org.zkoss.zul.event.ListDataListener l)  
      void sort​(java.util.Comparator cmpr, boolean ascending)  
      • Methods inherited from class org.zkoss.zul.AbstractListModel

        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, writeSelection
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RevisionListModel

        public 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

      • getElementAt

        public java.lang.Object getElementAt​(int index)
        Specified by:
        getElementAt in interface org.zkoss.zul.ListModel
        See Also:
        ListModel.getElementAt(int)
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.zkoss.zul.ListModel
        See Also:
        ListModel.getSize()
      • sort

        public void sort​(java.util.Comparator cmpr,
                         boolean ascending)
        Specified by:
        sort in interface org.zkoss.zul.ext.Sortable
      • getSortDirection

        public java.lang.String getSortDirection​(java.util.Comparator cmpr)
        Specified by:
        getSortDirection in interface org.zkoss.zul.ext.Sortable
      • addListDataListener

        public void addListDataListener​(org.zkoss.zul.event.ListDataListener l)
        Specified by:
        addListDataListener in interface org.zkoss.zul.ListModel
        Overrides:
        addListDataListener in class org.zkoss.zul.AbstractListModel
      • removeListDataListener

        public void removeListDataListener​(org.zkoss.zul.event.ListDataListener l)
        Specified by:
        removeListDataListener in interface org.zkoss.zul.ListModel
        Overrides:
        removeListDataListener in class org.zkoss.zul.AbstractListModel