Package edu.stanford.bmir.protege.web.client.ui.util.SelectionUtil

Examples of edu.stanford.bmir.protege.web.client.ui.util.SelectionUtil.SelectionCallback


    protected void onAddExistingValue() {
        String type = UIUtil.getStringConfigurationProperty(getWidgetConfiguration(), FormConstants.ONT_TYPE, null);
        if (type == null) { return} //TODO: not type specified, maybe use range of property

        SelectionUtil.selectIndividuals(getProject(), UIUtil.createCollection(new EntityData(type)), true, false, new SelectionCallback() {
            public void onSelect(Collection<EntityData> selection) {
                addExistingValues(selection);
            }
        });
    }
View Full Code Here


    protected void handleAddInstanceValue(final PropertyEntityData prop) {
        if (!(ValueType.Instance.equals(prop.getValueType()))) {
            return;
        }
        SelectionUtil.selectIndividuals(project, prop.getAllowedValues(), true, true, new SelectionCallback() {
            public void onSelect(Collection<EntityData> selection) {
                if (selection == null) { return; }
                //TODO: optimize: make one call for all values
                for (EntityData instVal : selection) {
                    addPropertyValue(_currentEntity.getName(), prop.getName(), prop.getValueType(), instVal.getName(), getAddValueOpDescription(prop, instVal));
View Full Code Here

   
    protected void handleAddClassValue(final PropertyEntityData prop) {
        if(!(ValueType.Instance.equals(prop.getValueType()))) {
            return;
        }
        SelectionUtil.selectClses(project, true, new SelectionCallback() {
            public void onSelect(Collection<EntityData> selection) {
                if(selection == null) {
                    for(EntityData entityData : selection) {
                        addPropertyValue(_currentEntity.getName(), prop.getName(), prop.getValueType(), entityData.getName(), getAddValueOpDescription(prop, entityData));
                    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.util.SelectionUtil.SelectionCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.