Class ChangesetContentTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class ChangesetContentTableModel
    extends javax.swing.table.AbstractTableModel
    This is the table model for the content of a changeset.
    Since:
    2689
    See Also:
    Serialized Form
    • Constructor Detail

      • ChangesetContentTableModel

        public ChangesetContentTableModel​(javax.swing.DefaultListSelectionModel selectionModel)
        Constructs a new ChangesetContentTableModel.
        Parameters:
        selectionModel - selection model
    • Method Detail

      • hasSelectedPrimitives

        public boolean hasSelectedPrimitives()
        Replies true if there is at least one selected primitive in the table model
        Returns:
        true if there is at least one selected primitive in the table model
      • setSelectedByIdx

        public void setSelectedByIdx​(int row)
        Selects a single item by its index.
        Parameters:
        row - index
      • getSelectionModel

        public javax.swing.DefaultListSelectionModel getSelectionModel()
        Replies the selection model
        Returns:
        the selection model
      • getSelectedPrimitives

        public java.util.Set<HistoryOsmPrimitivegetSelectedPrimitives​(javax.swing.JTable table)
        Returns the selected history primitives.
        Parameters:
        table - the JTable used with this model
        Returns:
        the selected history primitives
      • populate

        public void populate​(ChangesetDataSet ds)
        Populates the model with the content of a changeset. If ds is null, the table is cleared.
        Parameters:
        ds - the changeset content.
      • sort

        protected void sort()
        Sort data.
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)