source: src/main/java/genius/gui/tree/WeightSliderCellEditor.java@ 346

Last change on this file since 346 was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 924 bytes
Line 
1package genius.gui.tree;
2
3import java.awt.*;
4
5import javax.swing.*;
6import javax.swing.table.*;
7
8/**
9*
10* @author Richard Noorlandt
11*
12*/
13
14public class WeightSliderCellEditor extends AbstractCellEditor implements TableCellEditor, TableCellRenderer {
15
16 private static final long serialVersionUID = -18549774953873547L;
17 //Attributes
18 NegotiatorTreeTableModel tableModel;
19
20 //Constructors
21
22 public WeightSliderCellEditor(NegotiatorTreeTableModel model) {
23 super();
24 tableModel = model;
25 }
26
27 //Methods
28 public Object getCellEditorValue() {
29 return null;
30 }
31
32 public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
33 return (WeightSlider)value;
34 }
35
36 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
37 return (WeightSlider)value;
38 }
39}
Note: See TracBrowser for help on using the repository browser.