/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.ui.section;
import java.util.Arrays;
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
+import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
-import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement;
/**
*
*/
public abstract class AbstractIdentifiableEntityDetailElement<T extends IIdentifiableEntity> extends
- AbstractCdmDetailElement<T> {
-
- protected ToggleableTextElement toggleable_cache;
-
- public AbstractIdentifiableEntityDetailElement(CdmFormFactory formFactory,
- ICdmFormElement formElement) {
- super(formFactory, formElement);
- }
-
- public void updateToggleableCacheField(){
- if(! getEntity().isProtectedTitleCache()){
- toggleable_cache.setText(getEntity().generateTitle());
- }
- }
-
- protected void handleToggleableCacheField(){
- boolean pushedState = toggleable_cache.getState();
-
- getEntity().setTitleCache(toggleable_cache.getText(),
- pushedState);
- setIrrelevant(pushedState,
- Arrays.asList(new Object[] { toggleable_cache }));
- updateToggleableCacheField();
- }
+ AbstractCdmDetailElement<T> {
+
+ protected ToggleableTextElement toggleable_cache;
+
+ public AbstractIdentifiableEntityDetailElement(CdmFormFactory formFactory, ICdmFormElement formElement) {
+ super(formFactory, formElement);
+ }
+
+ public void updateToggleableCacheField() {
+ if (!getEntity().isProtectedTitleCache()) {
+ toggleable_cache.setText(getEntity().generateTitle());
+ }
+ }
+
+ protected void handleToggleableCacheField() {
+ boolean pushedState = toggleable_cache.getState();
+
+ getEntity().setTitleCache(toggleable_cache.getText(), pushedState);
+ setIrrelevant(pushedState, Arrays.asList(new Object[] { toggleable_cache }));
+ updateToggleableCacheField();
+ }
}