!7
concept Cat { // -egory
S a, b;
S globalID = aGlobalID();
}
static JTable table;
p-substance {
conceptsAndBot();
table = showConceptsTable(Cat, func(Cat c) {
litorderedmap("A" := c.a, "B" := c.b, "Global ID" := c.globalID)
});
addToWindow(table, jRightAlignedLine(
jbutton("Add...", f newCat)));
}
// f takes a concept and makes a map for display
static JTable showConceptsTable(final Class cClass, final O f) {
final JTable table = showTable();
awtOnConceptChanges(table, 1000, r {
new L