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

Last change on this file since 1861 was 1709, checked in by Gubaer, 15 years ago

new: history feature implemented

File size: 958 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import javax.swing.table.DefaultTableColumnModel;
5import javax.swing.table.TableColumn;
6import static org.openstreetmap.josm.tools.I18n.tr;
7
8/**
9 * The {@see TableColumnModel} for the table with the list of tags
10 *
11 */
12public class TagTableColumnModel extends DefaultTableColumnModel{
13 protected void createColumns() {
14 TableColumn col = null;
15
16 TagTableCellRenderer renderer = new TagTableCellRenderer();
17
18 // column 0 - Name
19 col = new TableColumn(0);
20 col.setHeaderValue(tr("Name"));
21 col.setCellRenderer(renderer);
22 addColumn(col);
23
24 // column 1 - Value
25 col = new TableColumn(1);
26 col.setHeaderValue(tr("Value"));
27 col.setCellRenderer(renderer);
28 addColumn(col);
29
30 }
31
32 public TagTableColumnModel() {
33 createColumns();
34 }
35}
Note: See TracBrowser for help on using the repository browser.