/** Initialise the list of properties that can apply to this class */ private void initDirectPropertyList() { listModel = new DefaultListModel(); List<OntProperty> properties = reader.getDomainProperties(className); for (OntProperty prop : properties) { listModel.addElement(new OntPropertyModel(prop)); } propertyList = new JList(listModel); }
/** * Constructor * * @param name Class name * @param content Root container * @param reader Ontology * @param parent Parent frame */ public EditClassLabelPane( String name, Container content, SpecificationOntologyReader reader, SpecificationCreator parent) { this.reader = reader; className = name; ontClass = reader.getClass(name); // TODO: change syso to a popup message if (ontClass == null) { System.out.println("the class " + name + " wasn't find in the OntologyReader"); } this.content = content; this.parent = parent; init(); }