Class ChangesetCacheManagerModel

    • Constructor Detail

      • ChangesetCacheManagerModel

        public ChangesetCacheManagerModel​(javax.swing.DefaultListSelectionModel selectionModel)
        Creates a new ChangesetCacheManagerModel that is based on the selectionModel
        Parameters:
        selectionModel - A new selection model that should be used.
    • Method Detail

      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Adds a property change listener to this model.
        Parameters:
        listener - The listener
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Removes a property change listener from this model.
        Parameters:
        listener - The listener
      • hasSelectedChangesets

        public boolean hasSelectedChangesets()
        Replies true if there is at least one selected changeset
        Returns:
        true if there is at least one selected changeset
      • getSelectedChangesets

        public java.util.List<ChangesetgetSelectedChangesets()
        Replies the list of selected changesets
        Returns:
        the list of selected changesets
      • getSelectedChangesetIds

        public java.util.Set<java.lang.Integer> getSelectedChangesetIds()
        Replies a set of ids of the selected changesets
        Returns:
        a set of ids of the selected changesets
      • setSelectedChangesets

        public void setSelectedChangesets​(java.util.Collection<Changeset> selected)
        Selects the changesets in selected.
        Parameters:
        selected - the collection of changesets to select. Ignored if empty.
      • getColumnCount

        public int getColumnCount()
        Specified by:
        getColumnCount in interface javax.swing.table.TableModel
      • getRowCount

        public int getRowCount()
        Specified by:
        getRowCount in interface javax.swing.table.TableModel
      • getValueAt

        public Changeset getValueAt​(int row,
                                    int column)
        Specified by:
        getValueAt in interface javax.swing.table.TableModel
      • init

        public void init()
        Initializes the data that is displayed using the changeset cache.
      • tearDown

        public void tearDown()
        Destroys and unregisters this model.
      • getSelectionModel

        public javax.swing.DefaultListSelectionModel getSelectionModel()
        Gets the selection model this table is based on.
        Returns:
        The selection model.
      • sort

        protected void sort()