Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
669 bytes
|
Line | |
---|
1 | package com.framsticks.gui.table; |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | import com.framsticks.params.Param; |
---|
6 | |
---|
7 | public abstract class Column { |
---|
8 | |
---|
9 | protected final Param param; |
---|
10 | protected final TableModel tableModel; |
---|
11 | |
---|
12 | /** |
---|
13 | * @param param |
---|
14 | */ |
---|
15 | public Column(Param param, TableModel tableModel) { |
---|
16 | this.param = param; |
---|
17 | this.tableModel = tableModel; |
---|
18 | } |
---|
19 | |
---|
20 | /** |
---|
21 | * @return the param |
---|
22 | */ |
---|
23 | public Param getParam() { |
---|
24 | return param; |
---|
25 | } |
---|
26 | |
---|
27 | public abstract Class<?> getColumnClass(); |
---|
28 | public abstract Object getValueAt(int rowIndex); |
---|
29 | |
---|
30 | @Override |
---|
31 | public String toString() { |
---|
32 | return "column for " + param; |
---|
33 | } |
---|
34 | |
---|
35 | public abstract int setValueAt(int rowIndex, Object value); |
---|
36 | |
---|
37 | public abstract boolean isEditable(); |
---|
38 | |
---|
39 | |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.