Last change
on this file since 8005 was 3083, checked in by bastiK, 14 years ago |
added svn:eol-style=native to source files
|
-
Property svn:eol-style
set to
native
|
File size:
757 bytes
|
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 SelectionTableColumnModel extends DefaultTableColumnModel {
|
---|
10 | public SelectionTableColumnModel(MemberTableModel model) {
|
---|
11 | TableColumn col = null;
|
---|
12 | SelectionTableCellRenderer renderer = new SelectionTableCellRenderer();
|
---|
13 | renderer.setMemberTableModel(model);
|
---|
14 |
|
---|
15 | // column 0 - the member role
|
---|
16 | col = new TableColumn(0);
|
---|
17 | col.setHeaderValue(tr("Selection"));
|
---|
18 | col.setMinWidth(200);
|
---|
19 | col.setCellRenderer(renderer);
|
---|
20 | addColumn(col);
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.