source: josm/trunk/src/org/openstreetmap/josm/gui/history/RelationMemberTableColumnModel.java@ 1861

Last change on this file since 1861 was 1709, checked in by Gubaer, 15 years ago

new: history feature implemented

File size: 1.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import javax.swing.table.DefaultTableColumnModel;
5import javax.swing.table.TableColumn;
6import static org.openstreetmap.josm.tools.I18n.tr;
7
8/**
9 * The {@see TableColumnModel} for the table with the list of relation members.
10 *
11 */
12public class RelationMemberTableColumnModel extends DefaultTableColumnModel {
13 protected void createColumns() {
14 TableColumn col = null;
15 RelationMemberListTableCellRenderer renderer = new RelationMemberListTableCellRenderer();
16
17 // column 0 - Version
18 col = new TableColumn(0);
19 col.setHeaderValue(tr("Role"));
20 col.setCellRenderer(renderer);
21 addColumn(col);
22
23 // column 0 - Version
24 col = new TableColumn(1);
25 col.setHeaderValue(tr("Primitive"));
26 col.setCellRenderer(renderer);
27 addColumn(col);
28 }
29
30 public RelationMemberTableColumnModel() {
31 createColumns();
32 }
33}
Note: See TracBrowser for help on using the repository browser.