// public String getColValue(String sortColumn) {
// return "";
// }
// });
VocabClassPanel classPanel = new VocabClassPanel(classData, myVocabPanel, readOnly);
baseOntologyContentsPanels.add(classPanel);
// classPanel.importContents(classHeader, rows);
vp.add(classPanel.getWidget());
return vp;
}
for ( ClassData classData : classes ) {
List<String> classHeader = classData.getDatatypeProperties();
VocabClassPanel classPanel = new VocabClassPanel(classData, myVocabPanel, readOnly);
baseOntologyContentsPanels.add(classPanel);
// ViewTable viewTable = new ViewTable(colNames);
// tp.add(viewTable.getWidget());
List<IndividualInfo> individuals = classData.getIndividuals();
log("num individuals: " +individuals.size());
List<IRow> rows = new ArrayList<IRow>();
for ( IndividualInfo entity : individuals ) {
final Map<String, String> vals = new HashMap<String, String>();
List<PropValue> props = entity.getProps();
for ( PropValue pv : props ) {
vals.put(pv.getPropName(), pv.getValueName());
}
vals.put("Name", entity.getLocalName());
rows.add(new RowAdapter() {
public String getColValue(String colName) {
return vals.get(colName);
}
});
}
classPanel.importContents(classHeader, rows);
vp.add(classPanel.getWidget());
}
return vp;
}