TableMapper: ListSelectionListener
parent
118be98bac
commit
9804dbd2ad
|
@ -13,6 +13,7 @@ import java.util.LinkedList;
|
|||
import java.util.List;
|
||||
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
|
||||
import org.hwo.csv.CSV;
|
||||
|
@ -289,6 +290,15 @@ public class TableMapper extends AbstractTableModel
|
|||
|
||||
}
|
||||
|
||||
public void addListSelectionListener(ListSelectionListener listener)
|
||||
{
|
||||
jTable.getSelectionModel().addListSelectionListener(listener);
|
||||
}
|
||||
public void removeListSelectionListener(ListSelectionListener listener)
|
||||
{
|
||||
jTable.getSelectionModel().removeListSelectionListener(listener);
|
||||
}
|
||||
|
||||
private Object getEditorObject()
|
||||
{
|
||||
if (jTable.getSelectedRow()!=-1)
|
||||
|
|
Loading…
Reference in New Issue