*/
public TaxonNodeAgentRelationCollectionSection (CdmFormFactory formFactory, ConversationHolder conversation,
ICdmFormElement parentElement, int style) {
- super(formFactory, conversation, parentElement, "Taxon node agent relation", style);
+ super(formFactory, conversation, parentElement, "Related persons or teams", style);
}
-
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getEmptyString()
- */
@Override
public String getEmptyString() {
- return "No taxon node agent relations yet.";
+ return "No related persons or teams yet.";
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getTooltipString()
- */
@Override
protected String getTooltipString() {
- return "Add a new agent relation to this taxon node.";
+ return "Add a new person/team to this taxon node.";
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getCollection(java.lang.Object)
- */
@Override
public Collection<TaxonNodeAgentRelation> getCollection(TaxonNode entity) {
//why Do I have to give the method an entity???
return allAgentRelationships;
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#addElement(java.lang.Object)
- */
@Override
public void addElement(TaxonNodeAgentRelation element) {
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#removeElement(java.lang.Object)
- */
@Override
public void removeElement(TaxonNodeAgentRelation element) {
getEntity().removeNodeAgent(element);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#createNewElement()
- */
@Override
public TaxonNodeAgentRelation createNewElement() {
TaxonNodeAgentRelation rel = getEntity().addAgentRelation(null, null);