Search in sources :

Example 6 with RecordLayerTable

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;
}
Also used : RecordLayerTable(com.revolsys.swing.map.layer.record.table.RecordLayerTable)

Aggregations

RecordLayerTable (com.revolsys.swing.map.layer.record.table.RecordLayerTable)6 Condition (com.revolsys.record.query.Condition)1 RecordDefinition (com.revolsys.record.schema.RecordDefinition)1 EnableCheck (com.revolsys.swing.action.enablecheck.EnableCheck)1 AbstractRecordLayer (com.revolsys.swing.map.layer.record.AbstractRecordLayer)1 LayerRecord (com.revolsys.swing.map.layer.record.LayerRecord)1 LayerRecordMenu (com.revolsys.swing.map.layer.record.LayerRecordMenu)1 RecordLayerTableModel (com.revolsys.swing.map.layer.record.table.model.RecordLayerTableModel)1 BaseJPopupMenu (com.revolsys.swing.menu.BaseJPopupMenu)1 RecordRowPredicateRowFilter (com.revolsys.swing.table.record.filter.RecordRowPredicateRowFilter)1 RecordRowTableModel (com.revolsys.swing.table.record.model.RecordRowTableModel)1 JMenuItem (javax.swing.JMenuItem)1 ListSelectionModel (javax.swing.ListSelectionModel)1