001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.widgets;
003
004import javax.swing.table.TableModel;
005
006import org.openstreetmap.josm.data.osm.OsmPrimitive;
007
008/**
009 * A table model that displays OSM primitives in it's rows
010 */
011public interface OsmPrimitivesTableModel extends TableModel {
012
013    /**
014     * Gets the primitive at a given row index
015     * @param idx The row
016     * @return The primitive in that row
017     */
018    OsmPrimitive getReferredPrimitive(int idx);
019}