}
class ClearRegsManagerTableModel extends DefaultTableModel {
public ClearRegsManagerTableModel() {
BaseClass object = ClassManager.createClass(510);
Vector names = new Vector();
Vector dataValues = new Vector();
closeValues=new Vector();
openValues=new Vector();
Iterator columnIter = object.getColumns().iterator();
names.add("");
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isIndexField())
names.add(column);
//add combox
searchField.addItem(new Item(column.getColumnName(),column.toString()));
}
names.add("row");
Iterator rowIter = object.getRows().iterator();
while (rowIter.hasNext()) {
Row row = (Row)rowIter.next();
String ld = (String)ObjectUtil.findNewCell(row, "RI", "LD").getColumnValue();
String lt = "";
if (ld != null)
lt = LedgerClass.getLTByLD(ld);
if ( (ld !=null) && ( (lt.equals("AP")) || (lt.equals("AR")) ) ) {
Vector rowDatas = new Vector();
if (isRegCleared(row)) {
Item item2 = new Item("Close", TxtManager.getTxt("VIEW.CLEARREGMANAGER.TABLE.COLUMN1VALUE2"));
rowDatas.add(item2);
} else {
Item item1 = new Item("Open", TxtManager.getTxt("VIEW.CLEARREGMANAGER.TABLE.COLUMN1VALUE1"));
rowDatas.add(item1);
}
columnIter = object.getColumns().iterator();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isIndexField()) {
Cell newCell = ObjectUtil.findNewCell(row, column.getTableName(), column.getColumnName());
if (column.getInputType() == 4) {