Last change
on this file since 2711 was 2512, checked in by stoecker, 14 years ago |
i18n updated, fixed files to reduce problems when applying patches, fix #4017
|
File size:
998 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.history;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import javax.swing.table.DefaultTableColumnModel;
|
---|
7 | import javax.swing.table.TableColumn;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * The {@see TableColumnModel} for the table with the list of relation members.
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public class RelationMemberTableColumnModel extends DefaultTableColumnModel {
|
---|
14 | protected void createColumns() {
|
---|
15 | TableColumn col = null;
|
---|
16 | RelationMemberListTableCellRenderer renderer = new RelationMemberListTableCellRenderer();
|
---|
17 |
|
---|
18 | // column 0 - Version
|
---|
19 | col = new TableColumn(0);
|
---|
20 | col.setHeaderValue(tr("Role"));
|
---|
21 | col.setCellRenderer(renderer);
|
---|
22 | addColumn(col);
|
---|
23 |
|
---|
24 | // column 0 - Version
|
---|
25 | col = new TableColumn(1);
|
---|
26 | col.setHeaderValue(tr("Primitive"));
|
---|
27 | col.setCellRenderer(renderer);
|
---|
28 | addColumn(col);
|
---|
29 | }
|
---|
30 |
|
---|
31 | public RelationMemberTableColumnModel() {
|
---|
32 | createColumns();
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.