if ( (objectTable.getSelectedRow() != -1) && (objectTable.getRowCount() > objectTable.getSelectedRow()) ) {
int selectedRowNumber = objectTable.convertRowIndexToModel(objectTable.getSelectedRow());
IndexTableModel model = (IndexTableModel)objectTable.getModel();
Vector dataVector = model.getDataVector();
Vector rowDatas = (Vector)dataVector.get(selectedRowNumber);
Row row = (Row)rowDatas.get(rowDatas.size() - 1);
Iterator columnIter = getCurrentObject().getColumns().iterator();
Vector cells = row.getNewCells();
StringBuffer sb = new StringBuffer();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isHeadField()) {
sb.append(column.toString() + " --- ");
for (int k = 0; k < cells.size(); k++) {
Cell cell = (Cell)cells.get(k);
if ((cell.getColumnName().equals(column.getColumnName())) && (cell.getTableName().equals(column.getTableName()))) {
if (cell.getColumnValue() != null)
sb.append(cell.getColumnValue());
sb.append("\n");
break;
}
}
}
}
sb.append("\n");
boolean hasItemTableField = false;
columnIter = getCurrentObject().getColumns().iterator();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isItemTableField()) {
hasItemTableField = true;
sb.append(column.toString() + "\t");
}
}
sb.append("\n");
if (hasItemTableField) {
RowSet rowSet = row.getRowSet();
Iterator rowIter = rowSet.getRows().iterator();
while (rowIter.hasNext()) {
Row tempRow = (Row)rowIter.next();
Iterator cellIter = tempRow.getNewCells().iterator();
while (cellIter.hasNext()) {
Cell cell = (Cell)cellIter.next();
columnIter = getCurrentObject().getColumns().iterator();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();