1 19 20 package org.netbeans.api.java.source.query; 21 22 import javax.swing.ListSelectionModel ; 23 import javax.swing.table.AbstractTableModel ; 24 import org.netbeans.api.java.source.query.QueryResult; 25 import org.netbeans.api.java.source.query.ResultTableModel; 26 27 32 public abstract class QueryResultTableModel extends AbstractTableModel implements ResultTableModel { 33 protected Query query; 34 public final String title; 35 36 37 public QueryResultTableModel(Query q, String t) { 38 query = q; 39 title = t; 40 } 41 42 45 public Query getQuery() { 46 return query; 47 } 48 49 52 public abstract int getResultCount(); 53 54 60 public abstract QueryResult getResult(int row); 61 62 67 public abstract QueryResult getResult(ListSelectionModel lsm); 68 } 69 | Popular Tags |