import eu.etaxonomy.taxeditor.ui.section.grantedAuthority.GrantedAuthorityLabelTextProvider;
/**
- * <p>
- * Abstract AbstractSelectionElement class.
- * </p>
- *
* @author n.hoffmann
* @created Nov 17, 2009
* @version 1.0
private final ConversationHolder conversation;
private Class<T> clazz;
- /**
- * <p>
- * Constructor for AbstractSelectionElement.
- * </p>
- *
- * @param formFactory
- * a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
- * object.
- * @param conversation
- * TODO
- * @param parentElement
- * a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement}
- * object.
- * @param labelString
- * a {@link java.lang.String} object.
- * @param entity
- * a T object.
- * @param isEditable
- * a boolean.
- * @param isSelectable
- * a boolean.
- * @param isDeletable
- * a boolean.
- * @param style
- * a int.
- * @param <T>
- * a T object.
- */
public EntitySelectionElement(CdmFormFactory formFactory,
- ConversationHolder conversation, ICdmFormElement parentElement,
+ ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
String labelString, T entity, int mode, int style, boolean filterElement) {
super(formFactory, parentElement);
+ this.clazz = clazz;
this.isEditable = (mode & EDITABLE) == EDITABLE;
this.isDeletable = (mode & DELETABLE) == DELETABLE;
boolean isSelectable = (mode & SELECTABLE) == SELECTABLE;
}
}
- public EntitySelectionElement(CdmFormFactory formFactory,
- ConversationHolder conversation, ICdmFormElement parentElement,
- String labelString, T entity, int mode, int style){
- this(formFactory, conversation, parentElement, labelString, entity, mode, style, false);
- }
-
- /**
- * @param entity2
- */
private void setFilteredEntity(T filterEntity) {
this.filteredEntity =filterEntity;
}
- public EntitySelectionElement(CdmFormFactory formFactory,
- ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
- String labelString, T entity, int mode, int style, boolean filterElement) {
- this(formFactory, conversation, parentElement, labelString, entity, mode, style, filterElement);
- this.clazz = clazz;
- }
-
public EntitySelectionElement(CdmFormFactory formFactory,
ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
String labelString, T entity, int mode, int style){
- this(formFactory, conversation, parentElement, labelString, entity, mode, style, false);
+ this(formFactory, conversation, parentElement, clazz, labelString, entity, mode, style, false);
}
private void createControls(Composite parent, int style) {
/**
* Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy
+ * European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
- *
+ *
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* <p>
* NomenclaturalAuthorTeamSelectionElement class.
* </p>
- *
+ *
* @author n.hoffmann
* @created Jun 22, 2010
* @version 1.0
* <p>
* Constructor for NomenclaturalAuthorTeamSelectionElement.
* </p>
- *
+ *
* @param formFactory
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
* object.
public NomenclaturalAuthorTeamSelectionElement(CdmFormFactory formFactory,
ConversationHolder conversation, ICdmFormElement parentElement,
String labelString, Team entity, int mode, int style) {
- super(formFactory, conversation, parentElement, labelString, entity,
+ super(formFactory, conversation, parentElement, Team.class, labelString, entity,
mode, style);
}
/**
* Copyright (C) 2009 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode> {
private Classification classification;
-
+
public TaxonNodeSelectionElement(CdmFormFactory formFactory,
ConversationHolder conversation, ICdmFormElement parentElement,
String labelString, TaxonNode entity, int mode, int style) {
- super(formFactory, conversation, parentElement, labelString, entity, mode,
+ super(formFactory, conversation, parentElement, TaxonNode.class, labelString, entity, mode,
style);
}
-
+
/**
* @return
*/
public Classification getClassification() {
return classification;
}
-
+
public void setClassification(Classification classification){
this.classification = classification;
}
-
+
/*
* (non-Javadoc)
- *
+ *
* @see
* org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
* .events.SelectionEvent)
getConversationHolder(), "Select parent taxon", null, null, getClassification());
setSelectionInternal(newSelection);
}
-
+
/*
* (non-Javadoc)
- *
+ *
* @see
* eu.etaxonomy.taxeditor.forms.selection.AbstractSelectionElement#getTitle
* ()