Last change
on this file since 1916 was 1916, checked in by Gubaer, 15 years ago |
new: Ctrl-DblClick in the relation list dialog opens the relation editor
new: Duplicate button in the relation list dialog
new: autocompletion on member roles in the member table
new: autocompletion on the member field for role assignments on multiple members
new: two-way synchronization between the selection in the map and the selection in the member table of the relation editor
|
File size:
1.2 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs.relation;
|
---|
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 | public class MemberTableColumnModel extends DefaultTableColumnModel {
|
---|
10 |
|
---|
11 | public MemberTableColumnModel() {
|
---|
12 | TableColumn col = null;
|
---|
13 |
|
---|
14 | // column 0 - the member role
|
---|
15 | col = new TableColumn(0);
|
---|
16 | col.setHeaderValue(tr("Role"));
|
---|
17 | col.setResizable(true);
|
---|
18 | col.setCellRenderer(new MemberTableRoleCellRenderer());
|
---|
19 | col.setCellEditor(new MemberRoleCellEditor());
|
---|
20 | addColumn(col);
|
---|
21 |
|
---|
22 | // column 1 - the member
|
---|
23 | col = new TableColumn(1);
|
---|
24 | col.setHeaderValue(tr("Refers to"));
|
---|
25 | col.setResizable(true);
|
---|
26 | // col.setCellRenderer(new OsmPrimitivRenderer());
|
---|
27 | col.setCellRenderer(new MemberTableMemberCellRenderer());
|
---|
28 | addColumn(col);
|
---|
29 |
|
---|
30 | // column 2 -
|
---|
31 | col = new TableColumn(2);
|
---|
32 | col.setHeaderValue(tr("Linked"));
|
---|
33 | col.setResizable(true);
|
---|
34 | col.setCellRenderer(new MemberTableLinkedCellRenderer());
|
---|
35 | addColumn(col);
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.