@Override public String toString() { return classEntity.getLabel() + " Class Panel ("+count+")"; } }
/** * Appends an * to the label if this is a required field. * @return Contents of the label ({@link com.google.gwt.user.client.ui.Label Label}) */ protected String getLabel() { return propertyEntity.getLabel() + ( isRequired ? "*" : "" ); }
public static String getEntityAsURLParam(final EIEntity value) { if ( value == null ) { return ""; } final StringBuffer sb = new StringBuffer(); sb.append( value.getLabel() ); sb.append( SearchRequestTokens.ENTITY_VALUE_DELIMITER ); sb.append( value.getURI() ); return sb.toString(); }
private String entityToRawString(final EIEntity entity) { final StringBuffer buf = new StringBuffer( entity.getLabel() ); buf.append( SearchRequestTokens.ENTITY_VALUE_DELIMITER ); buf.append( entity.getURI().toString() ); return buf.toString(); }
public String getCollectionRestrictionLabel() { final Set<EIEntity> collectionValues = cellLine.getObjectProperty( inCollectionProperty.getEntity() ); if( collectionValues == null || collectionValues.isEmpty()) { return ""; } return collectionValues.iterator().next().getLabel(); }
public void setSelectedEntity(final EIEntity selectedEntity) { this.selectedEntity = selectedEntity; setText( selectedEntity.getLabel() ); if ( listeners != null ) { for (final EntitySelectionListener listener : listeners) { listener.onSelection( selectedEntity ); } } }
protected void drawReadOnlyLiteralProperty(final EIEntity propertyEntity, final Set<String> propertyValues, final Map<EIEntity, String> labelMap, final FlowPanel nonOntologyPanel) { final String propLabel = ( labelMap == null || labelMap.get( propertyEntity ) == null || labelMap.get( propertyEntity ).equals( "" ) ) ? propertyEntity.getLabel() : labelMap.get( propertyEntity ); final NonOntFieldLabelContentWidget widget = new NonOntFieldLabelContentWidget( propLabel ); for (final String value : propertyValues) { widget.add( handleReadOnlyTextProperty( value ) ); } nonOntologyPanel.add( widget ); }
private void appendRCU(StringBuilder builder) { Set<EIEntity> rcuEntitySet = cellLine.getObjectProperty( inCollectionProperty.getEntity() ); if ( rcuEntitySet == null || rcuEntitySet.isEmpty() ) { return; } EIEntity rcuEntity = rcuEntitySet.iterator().next(); String rcuLabel = urlEncodeDecodeParamLabels ? URL.encodeQueryString( rcuEntity.getLabel() ) : rcuEntity.getLabel(); appendParam( builder, COLLECTION_LABEL_KEY, rcuLabel ); appendParam( builder, COLLECTION_KEY, rcuEntity.getURI().toString() ); }
private void initClassMap() { List<EIClass> topClasses = eiModelProvider.getClassesInGroup( EIOntConstants.CG_INSTANCE_CREATE ); for(EIClass eiClass : topClasses) { if(excludeFromSearchResults.contains(eiClass.getEntity().getURI().toString())) { continue; } mapURIToPlural.put(eiClass.getEntity().getURI().toString(), "in " + EIOntPlurals.plurals.get(eiClass.getEntity().getLabel())); } //Add core lab, which is an outlier mapURIToPlural.put(EIOntConstants.CORE_LABORATORY_URI.toString(), "in " + EIOntPlurals.plurals.get(EIOntConstants.CORE_LABORATORY_ENTITY.getLabel())); }
@Override public void onClick( ClickEvent event ) { if (validateFields()) { getMessagePreview(instanceEntity.getURI(), instanceEntity.getLabel()); } } });
/** * @return */ public String getTypeLabel(EIURI uri) { return getPluralLabel(eiModel.getEIClass( uri ).getEntity().getLabel()); }
private void initializeMapOfRows() { initializeMapOfRowsForResources( resourceTypesForProvider, providerRows, true ); initializeMapOfRowsForResources( resourceTypesForBrowse, browseRows, false ); final LeftListRowWidget personRow = new LeftListRowWidget( FOAF.person.getEntity(), FOAF.person.getEntity().getLabel(), false ); browseRows.put( FOAF.person.getEntity(), personRow ); final LeftListRowWidget organizationRow = new LeftListRowWidget( FOAF.organization.getEntity(), FOAF.organization.getEntity().getLabel(), false ); browseRows.put( FOAF.organization.getEntity(), organizationRow ); }
private Institutions fillInstitutions(final EICatalystCoreLab lab) { final Institutions institutions = new Institutions(); final Set<EIEntity> institutionValues = lab.getAffiliation(); for (final EIEntity value : institutionValues) { final Institution institution = new Institution(); institution.setName( value.getLabel() ); institutions.getInstitution().add( institution ); } return institutions; }
public LeftListRowWidget(final EIEntity eiEntity, final String titleText, final boolean canAdd) { super(); if(eiEntity == null) { this.eiEntity = EIEntity.NULL_ENTITY; } else { this.eiEntity = eiEntity.getURI().equals( EIURI.NULL_EIURI ) ? EIEntity.NULL_ENTITY : eiEntity; } typeAnchor = new Anchor( eiEntity.getLabel(), ""); this.canAdd = canAdd; init( titleText ); }
private Affiliations fillAffiliations(final EIResourceProvider eiProvider) { final Affiliations affiliations = new Affiliations(); final List<EIEntity> institutionValues = eiProvider.getAffiliation(); for (final EIEntity value : institutionValues) { final Affiliation affiliation = new Affiliation(); affiliation.setEiuri( value.getURI().toString() ); affiliation.setName( value.getLabel() ); affiliations.getAffiliation().add( affiliation ); } return affiliations; }
@Override protected void addNameProperty(final String labelPrefix) { final EIEntity namePropEntity = EIEntity.create( RDFS_LABEL_ENTITY.getURI(), InstanceWidgetUtils.getExtendedPropertyLabel( labelPrefix, RDFS_LABEL_ENTITY.getLabel(), true ) ); drawDataProperty( namePropEntity, "", true, makeSetFromSingle( eiInstance.getInstanceLabel() ), ontologyPanel ); }