while (componentExtIter.hasNext()) {
ComponentExt componentExt = (ComponentExt)componentExtIter.next();
Column column = componentExt.getColumn();
JComponent component = componentExt.getComponent();
Cell cell = ObjectUtil.findNewCell(row, column.getTableName(), column.getColumnName());
if (container.getAction().equals("Add")) {
if ( (column.getInputType() == 22) || (column.getInputType() == 24) ) {//created by
cell.setColumnValue(GlobalValueManager.getValue("SESSION.LOGINUSER"));
} else if ( (column.getInputType() == 21) || (column.getInputType() == 23) ) {//created
java.util.Date date = new java.util.Date();
String now = TimeManager.getTime(date.getTime());
cell.setColumnValue(now);
} else {
cell.setColumnValue(ComponentManager.getValue(component));
}
} else if (container.getAction().equals("Edit")) {
if (column.getInputType() == 24) {//lastchanged by
cell.setColumnValue(GlobalValueManager.getValue("SESSION.LOGINUSER"));
} else if (column.getInputType() == 23) {// lastchanged
java.util.Date date = new java.util.Date();
String now = TimeManager.getTime(date.getTime());
cell.setColumnValue(now);
} else {
cell.setColumnValue(ComponentManager.getValue(component));
}
}
}