Changeset 15772 in josm
- Timestamp:
- 2020-01-26T18:26:20+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryViewerPanel.java
r14463 r15772 30 30 } 31 31 32 protected abstract JTable buildReferenceTable(); 33 34 protected abstract JTable buildCurrentTable(); 32 protected abstract JTable buildTable(PointInTimeType pointInTimeType); 35 33 36 34 private void build() { … … 73 71 gc.fill = GridBagConstraints.BOTH; 74 72 gc.anchor = GridBagConstraints.NORTHWEST; 75 add(embedInScrollPane(build ReferenceTable()), gc);73 add(embedInScrollPane(buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME)), gc); 76 74 77 75 gc.gridx = 1; … … 83 81 gc.fill = GridBagConstraints.BOTH; 84 82 gc.anchor = GridBagConstraints.NORTHWEST; 85 add(embedInScrollPane(build CurrentTable()), gc);83 add(embedInScrollPane(buildTable(PointInTimeType.CURRENT_POINT_IN_TIME)), gc); 86 84 } 87 85 } -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r14692 r15772 52 52 53 53 @Override 54 protected JTable buildReferenceTable() { 55 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME, "table.referencenodelisttable"); 56 } 57 58 @Override 59 protected JTable buildCurrentTable() { 60 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME, "table.currentnodelisttable"); 61 } 62 63 private JTable buildTable(PointInTimeType pointInTimeType, String name) { 54 protected JTable buildTable(PointInTimeType pointInTimeType) { 64 55 final DiffTableModel tableModel = model.getNodeListTableModel(pointInTimeType); 65 56 final NodeListTableColumnModel columnModel = new NodeListTableColumnModel(); 66 57 final JTable table = new JTable(tableModel, columnModel); 67 58 tableModel.addTableModelListener(new ReversedChangeListener(table, columnModel)); 68 table.setName(name);69 59 table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 70 60 selectionSynchronizer.participateInSynchronizedSelection(table.getSelectionModel()); -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListViewer.java
r14675 r15772 36 36 37 37 @Override 38 protected JTable buildReferenceTable() { 39 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME, "table.referencememberlisttable"); 40 } 41 42 @Override 43 protected JTable buildCurrentTable() { 44 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME, "table.currentmemberlisttable"); 45 } 46 47 private JTable buildTable(PointInTimeType pointInTimeType, String name) { 38 protected JTable buildTable(PointInTimeType pointInTimeType) { 48 39 JTable table = new JTable( 49 40 model.getRelationMemberTableModel(pointInTimeType), 50 41 new RelationMemberTableColumnModel()); 51 table.setName(name);52 42 table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 53 43 selectionSynchronizer.participateInSynchronizedSelection(table.getSelectionModel()); -
trunk/src/org/openstreetmap/josm/gui/history/TagInfoViewer.java
r15769 r15772 59 59 60 60 @Override 61 protected JTable buildReferenceTable() { 62 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME); 63 } 64 65 @Override 66 protected JTable buildCurrentTable() { 67 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME); 68 } 69 70 private JTable buildTable(PointInTimeType pointInTime) { 61 protected JTable buildTable(PointInTimeType pointInTime) { 71 62 TagTableModel tagTableModel = model.getTagTableModel(pointInTime); 72 63 JTable table = new JTable(tagTableModel, new TagTableColumnModel());
Note:
See TracChangeset
for help on using the changeset viewer.