source: josm/trunk/src/org/openstreetmap/josm/gui/history/TagTableColumnModel.java@ 7771

Last change on this file since 7771 was 5832, checked in by stoecker, 11 years ago

i18n update and javadoc fixes

  • Property svn:eol-style set to native
File size: 944 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import javax.swing.table.DefaultTableColumnModel;
7import javax.swing.table.TableColumn;
8
9/**
10 * The {@link javax.swing.table.TableColumnModel} for the table with the list of tags
11 *
12 */
13public 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.