Revision 6154 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Table.java
Table.java | ||
---|---|---|
141 | 141 |
private IRow[] rowsCopied = null; |
142 | 142 |
private ViewInfo m_viewInfo = null; |
143 | 143 |
private boolean isPalette=false; |
144 |
|
|
145 |
/** |
|
144 |
/** |
|
146 | 145 |
* This is the default constructor |
147 | 146 |
*/ |
148 | 147 |
public Table() { |
... | ... | |
1082 | 1081 |
private IEditableSource des; |
1083 | 1082 |
private String[] aliases; |
1084 | 1083 |
private int[] mapping; |
1084 |
private boolean failed=false; |
|
1085 | 1085 |
|
1086 | 1086 |
/** |
1087 | 1087 |
* Crea un nuevo DataSourceDataModel. |
... | ... | |
1206 | 1206 |
if (getValueAt(rowIndex,columnIndex+1)==null || getValueAt(rowIndex,columnIndex+1).toString().equals(aValue)) |
1207 | 1207 |
return; |
1208 | 1208 |
try { |
1209 |
v = ValueFactory.createValueByType(aValue.toString(),
|
|
1209 |
v = ValueFactory.createValueByType(aValue.toString(),
|
|
1210 | 1210 |
des.getRecordset().getFieldType(columnIndex)); |
1211 |
|
|
1211 |
failed=false; |
|
1212 | 1212 |
IRowEdited row = des.getRow(numRow); //.getAttribute(columnIndex); |
1213 | 1213 |
Value[] values = row.getAttributes(); |
1214 | 1214 |
values[columnIndex] = v; |
... | ... | |
1226 | 1226 |
} catch (DriverException e1) { |
1227 | 1227 |
throw new RuntimeException(e1); |
1228 | 1228 |
} catch (ParseException e) { |
1229 |
throw new RuntimeException(e); |
|
1229 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"formato_del_campo_incorrecto"); |
|
1230 |
failed=true; |
|
1231 |
return; |
|
1230 | 1232 |
} catch (DriverLoadException e) { |
1231 | 1233 |
throw new RuntimeException(e); |
1232 | 1234 |
} catch (DriverIOException e) { |
Also available in: Unified diff