Last change
on this file since 5340 was 5266, checked in by bastiK, 12 years ago |
fixed majority of javadoc warnings by replacing "{@see" by "{@link"
|
-
Property svn:eol-style
set to
native
|
File size:
926 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 TableColumnModel} for the table with the list of tags
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public class TagTableColumnModel extends DefaultTableColumnModel{
|
---|
14 | protected void createColumns() {
|
---|
15 | TableColumn col = null;
|
---|
16 |
|
---|
17 | TagTableCellRenderer renderer = new TagTableCellRenderer();
|
---|
18 |
|
---|
19 | // column 0 - Name
|
---|
20 | col = new TableColumn(0);
|
---|
21 | col.setHeaderValue(tr("Name"));
|
---|
22 | col.setCellRenderer(renderer);
|
---|
23 | addColumn(col);
|
---|
24 |
|
---|
25 | // column 1 - Value
|
---|
26 | col = new TableColumn(1);
|
---|
27 | col.setHeaderValue(tr("Value"));
|
---|
28 | col.setCellRenderer(renderer);
|
---|
29 | addColumn(col);
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | public TagTableColumnModel() {
|
---|
34 | createColumns();
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.