vp.setSpacing(4);
if ( classes == null || classes.size() == 0 ) {
// empty data - we must be creating a new vocabulary
// insert a default contents to initialize the table
ClassData classData = new ClassData();
// classData.setClassUri("");
// List<String> classHeader = new ArrayList<String>();
// classHeader.add("name");
// classHeader.add("definition");
//
// List<IRow> rows = new ArrayList<IRow>();
// rows.add(new IRow() {
// 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 ) {