View Javadoc
1   /*
2    * Copyright 2013-2023 Medical Information Systems Research Group (https://medical.zcu.cz),
3    * Department of Computer Science and Engineering, University of West Bohemia.
4    * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5    *
6    * This file is part of Sparkle project.
7    *
8    * Sparkle is free software: you can redistribute it and/or modify
9    * it under the terms of the GNU General Public License as published by
10   * the Free Software Foundation, either version 3 of the License.
11   *
12   * Sparkle is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with Sparkle. If not, see <http://www.gnu.org/licenses/>.
19   */
20  package cz.zcu.mre.sparkle.gui.query.helpers;
21  
22  /**
23   * Objekt třídy implementující toto rozhraní je posluchačem událostí přidání,
24   * odebrání a změny názvu proměnné.
25   *
26   * @author Jan Smucr
27   * @author Klara Hlavacova
28   * @author Petr Vcelak (vcelak@kiv.zcu.cz)
29   */
30  public interface VariablesCollector {
31  
32      /**
33       * Oznamuje přidání proměnné.
34       *
35       * @param variableName Název proměnné.
36       */
37      void onVariableAdded(final String variableName);
38  
39      /**
40       * Oznamuje odebrání proměnné.
41       *
42       * @param variableName Název proměnné.
43       */
44      void onVariableRemoved(final String variableName);
45  
46      /**
47       * Oznamuje změnu názvu proměnné.
48       *
49       * @param oldVariableName Starý název.
50       * @param newVariableName Nový název.
51       */
52      void onVariableChanged(String oldVariableName, String newVariableName);
53  }