//--AgentGen BEGIN=_CLASSES
static class AgentppTestMOFactory extends DefaultMOFactory {
public MOTable createTable(OID oid, MOTableIndex indexDef,
MOColumn[] columns) {
if (oidAgentppTestSessionsEntry.equals(oid)) {
return new DefaultAgentXSharedMOTable(oid, indexDef, columns) {
public void setAgentXSharedMOTableSupport(AgentXSharedMOTableSupport
sharedTableSupport) {
super.setAgentXSharedMOTableSupport(sharedTableSupport);
((MOMutableTableModel)model).clear();
OID index =
new OID(new int[] { sharedTableSupport.getSession().getSessionID() });
MOTableRow row = createRow(index);
if (row != null) {
addRow(row);
}
}
};
}
return new DefaultAgentXSharedMOTable(oid, indexDef, columns);
}