Revision 22477 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/gui/ValueComplexEditor.java
ValueComplexEditor.java | ||
---|---|---|
25 | 25 |
*/ |
26 | 26 |
public class ValueComplexEditor extends JButton implements TableCellEditor { |
27 | 27 |
private final Border grayBorder = BorderFactory.createLineBorder(Color.darkGray); |
28 |
private Value value;
|
|
28 |
private Object value;
|
|
29 | 29 |
private ComplexValuePanel cvp=null; |
30 | 30 |
public ValueComplexEditor() { |
31 | 31 |
addMouseListener(new MouseListener() { |
32 | 32 |
public void mouseClicked(MouseEvent e) { |
33 | 33 |
if (e.getClickCount()==2) { |
34 |
cvp=new ComplexValuePanel(PluginServices.getText(this,"titulo"),(ComplexValue)getValue());
|
|
34 |
cvp=new ComplexValuePanel(PluginServices.getText(this,"titulo"),getValue()); |
|
35 | 35 |
PluginServices.getMDIManager().addWindow(cvp); |
36 | 36 |
} |
37 | 37 |
} |
... | ... | |
59 | 59 |
* |
60 | 60 |
* @param value DOCUMENT ME! |
61 | 61 |
*/ |
62 |
public void setValue(Value value) {
|
|
62 |
public void setValue(Object value) {
|
|
63 | 63 |
this.value = value; |
64 | 64 |
} |
65 | 65 |
|
... | ... | |
68 | 68 |
* |
69 | 69 |
* @return DOCUMENT ME! |
70 | 70 |
*/ |
71 |
public Value getValue() {
|
|
71 |
public Object getValue() {
|
|
72 | 72 |
return value; |
73 | 73 |
} |
74 | 74 |
|
... | ... | |
85 | 85 |
*/ |
86 | 86 |
public Component getTableCellEditorComponent(JTable table, Object value, |
87 | 87 |
boolean isSelected, int row, int column) { |
88 |
setValue((Value) value);
|
|
88 |
setValue(value); |
|
89 | 89 |
setText(PluginServices.getText(this, "compleja")); |
90 | 90 |
setForeground(Color.darkGray); |
91 | 91 |
setOpaque(true); |
Also available in: Unified diff