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
|
Rev | Line | |
---|
[2512] | 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;
|
---|
[10089] | 8 | import javax.swing.table.TableColumnModel;
|
---|
[2512] | 9 |
|
---|
[10089] | 10 | /**
|
---|
| 11 | * This is the {@link TableColumnModel} used in {@link SelectionTable}.
|
---|
| 12 | * @since 1790
|
---|
| 13 | */
|
---|
[10378] | 14 | public class SelectionTableColumnModel extends DefaultTableColumnModel {
|
---|
[10089] | 15 |
|
---|
| 16 | /**
|
---|
| 17 | * Constructs a new {@code SelectionTableColumnModel}.
|
---|
| 18 | * @param model member table model
|
---|
| 19 | */
|
---|
[2512] | 20 | public SelectionTableColumnModel(MemberTableModel model) {
|
---|
| 21 | // column 0 - the member role
|
---|
[10089] | 22 | TableColumn col = new TableColumn(0);
|
---|
[2512] | 23 | col.setHeaderValue(tr("Selection"));
|
---|
| 24 | col.setMinWidth(200);
|
---|
[10089] | 25 | col.setCellRenderer(new SelectionTableCellRenderer(model));
|
---|
[2512] | 26 | addColumn(col);
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.