Package edu.stanford.bmir.protege.web.client.rpc.data

Examples of edu.stanford.bmir.protege.web.client.rpc.data.PropertyEntityData


        return widget;
    }

    protected PropertyWidget createInstanceRadioButton(Map<String, Object> conf, String prop) {
        InstanceRadioButtonWidget widget = new InstanceRadioButtonWidget(project);
        widget.setup(conf, new PropertyEntityData(prop));
        return widget;
    }
View Full Code Here


        return widget;
    }

    private PropertyWidget createInstanceComboBox(Map<String, Object> conf, String prop) {
        InstanceComboBox widget = new InstanceComboBox(project);
        widget.setup(conf, new PropertyEntityData(prop));
        return widget;
    }
View Full Code Here

    protected GridRowListener getRowListener() {
        if (gridRowListener == null) {
            gridRowListener = new GridRowListenerAdapter() {
                @Override
                public void onRowClick(GridPanel grid, int rowIndex, EventObject e) {
                    PropertyEntityData property = (PropertyEntityData)(store.getAt(rowIndex).getAsObject(PROPERTY));
                    currentSelection = new ArrayList<EntityData>();
                    currentSelection.add(property);

                    super.onRowClick(grid, rowIndex, e);
                }
View Full Code Here

                            newPropValue = "~#" + newValueS + " " + propValue;
                        }
                        valueTypeT = ValueType.Literal;
                    }

                    PropertyEntityData prop = (PropertyEntityData) (store.getAt(rowIndex).getAsObject(PROPERTY));
                    replacePropertyValue(_currentEntity.getName(), prop.getName(), valueTypeT,
                            oldPropValue, newPropValue, null); //no op description
                }
            };
        }
        return editorGridListener;
View Full Code Here

        ValueType valueType = valueEd.getValueType();
        String lang = record.getAsString(LANGUAGE);
        if (lang != null && lang.length() > 0) {
            valueType = ValueType.Literal; //TODO: check if necessary
        }
        PropertyEntityData prop = (PropertyEntityData) (record.getAsObject(PROPERTY));

        deletePropertyValue(_currentEntity.getName(), prop.getName(), valueType, value, null); //TODO: how to handle operationDescription
    }
View Full Code Here

        return toOWLEntityData(entityData);
    }

    protected Optional<OWLEntityData> toOWLEntityData(EntityData entityData) {
        if(entityData instanceof PropertyEntityData) {
            PropertyEntityData propertyEntityData = (PropertyEntityData) entityData;
            PropertyType propertyType = propertyEntityData.getPropertyType();
            if (propertyType != null) {
                switch(propertyType) {
                    case OBJECT:
                        return Optional.<OWLEntityData>of(new OWLObjectPropertyData(DataFactory.getOWLObjectProperty(entityData.getName()), entityData.getBrowserText()));
                    case DATATYPE:
View Full Code Here

        List<Triple> result = new ArrayList<Triple>();
        for (OWLOntology ontology : getRootOntologyImportsClosure()) {
            for(OWLAnnotationAssertionAxiom ax : ontology.getAnnotationAssertionAxioms(entity.getIRI())) {
                RenderingManager rm = getRenderingManager();
                EntityData subjectData = rm.getEntityData(entity);
                PropertyEntityData propData = rm.getPropertyEntityData(ax.getProperty());
                EntityData valueData = rm.getEntityData(ax.getValue());
                Triple triple = new Triple(subjectData, propData, valueData);
                result.add(triple);
            }
        }
View Full Code Here

        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()){
                //TODO fix this
                //onAddNewReference((String) ReferenceFieldWidget.this.getWidgetConfiguration().get(FormConstants.LABEL));
                PropertyEntityData prop = getProperty();
                onAddNewReference(prop == null ? "" : UIUtil.getDisplayText(prop));
                }
            }
        });
View Full Code Here

        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()){
                //TODO fix this
                //onAddNewReference((String) ReferenceFieldWidget.this.getWidgetConfiguration().get(FormConstants.LABEL));
                PropertyEntityData prop = getProperty();
                onReplaceReference(prop == null ? "" : UIUtil.getDisplayText(prop));
                }
            }
        });
View Full Code Here

    private String currentValue; //TODO: logic is inverted - should not be here but in the widget; import should call a callback


    public BioPortalSearchComponent(ProjectId projectId, boolean isSingleValued) {
        this(projectId, null, new PropertyEntityData(null), isSingleValued);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.PropertyEntityData

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.