Exemplo n.º 1
0
 private OWLDatatypeProperty chooseDatatypeProperty() {
   return (OWLDatatypeProperty)
       DisplayUtilities.pickInstanceFromCollection(
           (Component) this,
           OWLUtils.sortFrameCollection(okb.getOWLDatatypePropertyClass().getInstances(true)),
           0,
           "Select a datatype property");
 }
Exemplo n.º 2
0
 /* pickCls doesn't care about sorting order. */
 private OWLNamedClass chooseClass() {
   return (OWLNamedClass)
       DisplayUtilities.pickCls(
           (Component) this,
           okb,
           CollectionUtilities.createCollection(okb.getOWLThingClass()),
           "Select a class");
 }
Exemplo n.º 3
0
 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);
     }
   }
 }