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 nodes.
|
---|
11 | *
|
---|
12 | *
|
---|
13 | */
|
---|
14 | public class NodeListTableColumnModel extends DefaultTableColumnModel {
|
---|
15 | protected void createColumns() {
|
---|
16 | TableColumn col = null;
|
---|
17 | NodeListTableCellRenderer renderer = new NodeListTableCellRenderer();
|
---|
18 |
|
---|
19 | // column 0 - Version
|
---|
20 | col = new TableColumn(0);
|
---|
21 | col.setHeaderValue(tr("Nodes"));
|
---|
22 | col.setCellRenderer(renderer);
|
---|
23 | addColumn(col);
|
---|
24 | }
|
---|
25 |
|
---|
26 | public NodeListTableColumnModel() {
|
---|
27 | createColumns();
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.