forked from LupusNobilis/java-org.hwo.ui
WIP161104
parent
b563f61a1c
commit
a14c4bcc45
|
@ -27,12 +27,9 @@ import javax.swing.JFrame;
|
|||
import javax.swing.JTable;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
<<<<<<< Updated upstream
|
||||
import javax.swing.table.TableRowSorter;
|
||||
=======
|
||||
import javax.swing.table.DefaultTableCellRenderer;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
import org.hwo.csv.CSV;
|
||||
import org.hwo.csv.CSVRecord;
|
||||
|
@ -325,14 +322,9 @@ public class TableMapper extends AbstractTableModel
|
|||
table.setModel(this);
|
||||
table.setColumnModel(new TableMapperColumnModel(this));
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
table.setAutoCreateRowSorter(false);
|
||||
setSortingEnabled(true);
|
||||
=======
|
||||
table.setAutoCreateRowSorter(true);
|
||||
|
||||
table.setDefaultRenderer(Object.class, new TableCellRenderer());
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
mouseAdapter = new MouseAdapter() {
|
||||
|
||||
|
@ -387,7 +379,6 @@ public class TableMapper extends AbstractTableModel
|
|||
|
||||
}
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
private void initializeJTable(){
|
||||
if (sortingEnabled){
|
||||
this.jTable.setRowSorter(new TableRowSorter<TableMapper>(this));
|
||||
|
@ -403,13 +394,13 @@ public class TableMapper extends AbstractTableModel
|
|||
public void setSortingEnabled(boolean sortingEnabled) {
|
||||
this.sortingEnabled = sortingEnabled;
|
||||
initializeJTable();
|
||||
=======
|
||||
}
|
||||
|
||||
public TableMapperColorSourceInterface getColorSourceInterface() {
|
||||
return colorSourceInterface;
|
||||
}
|
||||
public void setColorSourceInterface(TableMapperColorSourceInterface colorSourceInterface) {
|
||||
this.colorSourceInterface = colorSourceInterface;
|
||||
>>>>>>> Stashed changes
|
||||
}
|
||||
|
||||
public void addListSelectionListener(ListSelectionListener listener)
|
||||
|
|
Loading…
Reference in New Issue