if(data!=null){
Condition[] conditions = (Condition[])data;
int rowNum=0;
for(int i=0;i<conditions.length;i++){
Condition condition = conditions[i];
if(condition instanceof Evaluate
|| condition instanceof Otherwise
|| condition instanceof RoleExist){//������ ��츸
Or wrapperOr = new Or();
And wrapperAnd = new And();
wrapperOr.addCondition(wrapperAnd);
wrapperOr.setDescription(condition.getDescription());
if(condition instanceof Evaluate || condition instanceof RoleExist){
condition.setDescription(null);
wrapperAnd.addCondition(condition);
}else {
wrapperAnd.addCondition(new Otherwise());
}
condition = wrapperOr;
}
Or or = (Or)condition;
String key = or.getDescription().getText();
Condition[] rows = or.getConditions();
for(int j=0;j<rows.length;j++){
And and = (And)rows[j];
Condition[] cols = and.getConditions();
//Default RowCount�� �Ѿ��츦 '�ؼ� Row Count�� ������� �Ѵ�.
if(((DefaultTableModel)table.getModel()).getRowCount()<=rowNum)
((DefaultTableModel)table.getModel()).setRowCount(rowNum+1);
for(int k=0;k<cols.length;k++){
Condition cond = cols[k];
if(cond!=null)
table.setValueAt(cond, rowNum, k+START_INDEX);
}
table.setValueAt(key, rowNum, 1);