private OWLDatatypeProperty chooseDatatypeProperty() { return (OWLDatatypeProperty) DisplayUtilities.pickInstanceFromCollection( (Component) this, OWLUtils.sortFrameCollection(okb.getOWLDatatypePropertyClass().getInstances(true)), 0, "Select a datatype property"); }
/* pickCls doesn't care about sorting order. */ private OWLNamedClass chooseClass() { return (OWLNamedClass) DisplayUtilities.pickCls( (Component) this, okb, CollectionUtilities.createCollection(okb.getOWLThingClass()), "Select a class"); }
public void actionPerformed(ActionEvent e) { if (_widget.isEditable()) { Collection selections = DisplayUtilities.pickInstances( (Component) _widget, _widget.getAllowedClses(), _dialogTitle); if ((null != selections) && (selections.size() != 0)) { _widget.addValues(selections); } } }