use of com.revolsys.swing.map.layer.record.table.RecordLayerTable in project com.revolsys.open by revolsys.
the class ListRecordLayerTableModel method newTable.
public static RecordLayerTable newTable(final ListRecordLayer layer, final Collection<String> fieldNames) {
final RecordLayerTableModel model = new ListRecordLayerTableModel(layer, fieldNames);
final RecordLayerTable table = new RecordLayerTable(model);
table.setSortable(true);
EventQueue.addPropertyChange(layer, "hasSelectedRecords", () -> selectionChanged(table, model));
return table;
}
Aggregations