@Override public void setValueAt(Object aValue, int rowIndex, int columnIndex) { PunicaoVO punicaoVO = listaPunicoes.get(rowIndex); if (columnIndex == COL_DATA) { punicaoVO.setDataPunicao(DateTimeHelper.dataJavaParaBanco(aValue.toString())); } else if (columnIndex == COL_DESCRICAO) { punicaoVO.setDescricao(aValue.toString()); } fireTableDataChanged(); }
@Override public Object getValueAt(int rowIndex, int columnIndex) { PunicaoVO punicaoVO = listaPunicoes.get(rowIndex); if (columnIndex == COL_DATA) { return DateTimeHelper.dataBancoParaJava(punicaoVO.getDataPunicao()); } else if (columnIndex == COL_DESCRICAO) { return punicaoVO.getDescricao(); } return ""; }