Last change
on this file since 12225 was 10308, checked in by Don-vip, 8 years ago |
sonar - squid:S1854 - Dead stores should be removed
|
-
Property svn:eol-style
set to
native
|
File size:
869 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 {@link javax.swing.table.TableColumnModel} for the table with the list of nodes.
|
---|
11 | * @since 1709
|
---|
12 | */
|
---|
13 | public class NodeListTableColumnModel extends DefaultTableColumnModel {
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Constructs a new {@code NodeListTableColumnModel}.
|
---|
17 | */
|
---|
18 | public NodeListTableColumnModel() {
|
---|
19 | createColumns();
|
---|
20 | }
|
---|
21 |
|
---|
22 | protected void createColumns() {
|
---|
23 | NodeListTableCellRenderer renderer = new NodeListTableCellRenderer();
|
---|
24 |
|
---|
25 | // column 0 - Version
|
---|
26 | TableColumn col = new TableColumn(0);
|
---|
27 | col.setHeaderValue(tr("Nodes"));
|
---|
28 | col.setCellRenderer(renderer);
|
---|
29 | addColumn(col);
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.