1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.ui.element;
|
10
|
|
11
|
/**
|
12
|
* IRelevantFormElement interface.
|
13
|
*
|
14
|
* @author n.hoffmann
|
15
|
* @created May 10, 2010
|
16
|
*/
|
17
|
public interface ICacheRelevantFormElement {
|
18
|
|
19
|
/**
|
20
|
* Update the relevance state of the element.
|
21
|
* Usually the results in a color change.
|
22
|
* Containers may sent this to their subelements.
|
23
|
*/
|
24
|
public void updateCacheRelevance();
|
25
|
|
26
|
/**
|
27
|
* Registers this element as being dependend on the
|
28
|
* given cache element (ToggleableTextElement).
|
29
|
* An element may depend on multiple cache elements.
|
30
|
*/
|
31
|
public void addDependsOnCache(ToggleableTextElement toggleElement);
|
32
|
|
33
|
/**
|
34
|
* Computes the cache relevance for this element.
|
35
|
* The cache relevance depends on the registered cache elements
|
36
|
* and on their state.
|
37
|
*/
|
38
|
public CacheRelevance cacheRelevance();
|
39
|
|
40
|
}
|