Revision 2501 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/thememanager/legendmanager/panels/edition/ValueCellEditor.java
ValueCellEditor.java | ||
---|---|---|
65 | 65 |
*/ |
66 | 66 |
public class ValueCellEditor extends JTextField implements TableCellEditor { |
67 | 67 |
private ArrayList listeners = new ArrayList(); |
68 |
private Value initialValue; |
|
68 |
//private Value initialValue;
|
|
69 | 69 |
|
70 | 70 |
/** |
71 | 71 |
* Crea un nuevo FLabelCellEditor. |
... | ... | |
90 | 90 |
//Implement the one method defined by TableCellEditor. |
91 | 91 |
public Component getTableCellEditorComponent(JTable table, Object value, |
92 | 92 |
boolean isSelected, int row, int column) { |
93 |
//initialValue=(Value)value; |
|
93 | 94 |
if (value == null) { |
94 | 95 |
setText(""); |
95 | 96 |
} else { |
... | ... | |
103 | 104 |
* @see javax.swing.CellEditor#cancelCellEditing() |
104 | 105 |
*/ |
105 | 106 |
public void cancelCellEditing() { |
106 |
if (initialValue != null) { |
|
107 |
setText(initialValue.toString()); |
|
108 |
} |
|
107 |
//if (initialValue != null) {
|
|
108 |
// setText(initialValue.toString());
|
|
109 |
//}
|
|
109 | 110 |
|
110 | 111 |
for (int i = 0; i < listeners.size(); i++) { |
111 | 112 |
CellEditorListener l = (CellEditorListener) listeners.get(i); |
Also available in: Unified diff