Last change
on this file since 16283 was 10378, checked in by Don-vip, 8 years ago |
Checkstyle 6.19: enable SingleSpaceSeparator and fix violations
|
-
Property svn:eol-style
set to
native
|
File size:
892 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 | import javax.swing.table.TableColumnModel;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * This is the {@link TableColumnModel} used in {@link SelectionTable}.
|
---|
12 | * @since 1790
|
---|
13 | */
|
---|
14 | public class SelectionTableColumnModel extends DefaultTableColumnModel {
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Constructs a new {@code SelectionTableColumnModel}.
|
---|
18 | * @param model member table model
|
---|
19 | */
|
---|
20 | public SelectionTableColumnModel(MemberTableModel model) {
|
---|
21 | // column 0 - the member role
|
---|
22 | TableColumn col = new TableColumn(0);
|
---|
23 | col.setHeaderValue(tr("Selection"));
|
---|
24 | col.setMinWidth(200);
|
---|
25 | col.setCellRenderer(new SelectionTableCellRenderer(model));
|
---|
26 | addColumn(col);
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.