source: src/main/java/genius/gui/tree/IssueValueCellEditor.java@ 345

Last change on this file since 345 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: 955 bytes
Line 
1package genius.gui.tree;
2
3import java.awt.*;
4import javax.swing.*;
5import javax.swing.table.*;
6
7/**
8*
9* @author Richard Noorlandt
10*
11*/
12
13public class IssueValueCellEditor extends AbstractCellEditor implements TableCellEditor, TableCellRenderer {
14
15 private static final long serialVersionUID = -7575662197085471060L;
16 //Attributes
17 NegotiatorTreeTableModel tableModel;
18
19 //Constructors
20 public IssueValueCellEditor(NegotiatorTreeTableModel model) {
21 super();
22 tableModel = model;
23 }
24
25 //Methods
26 public Object getCellEditorValue() {
27 //TODO TEST CODE!!
28 return new Integer(7);
29 }
30
31 public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
32 return (IssueValuePanel)value;
33 }
34
35 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
36 return (IssueValuePanel)value;
37 }
38}
Note: See TracBrowser for help on using the repository browser.