2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.ui
.element
;
12 * IRelevantFormElement interface.
15 * @created May 10, 2010
17 public interface ICacheRelevantFormElement
{
20 * Update the relevance state of the element.
21 * Usually the results in a color change.
22 * Containers may sent this to their subelements.
24 public void updateCacheRelevance();
27 * Registers this element as being dependend on the
28 * given cache element (ToggleableTextElement).
29 * An element may depend on multiple cache elements.
31 public void addDependsOnCache(ToggleableTextElement toggleElement
);
34 * Computes the cache relevance for this element.
35 * The cache relevance depends on the registered cache elements
38 public CacheRelevance
cacheRelevance();