Clover icon

Coverage Report

  1. Project Clover database Thu Nov 7 2024 17:01:39 GMT
  2. Package jalview.gui

File JalviewChangeSupport.java

 

Coverage histogram

../../img/srcFileCovDistChart0.png
0% of files have more coverage

Code metrics

0
4
4
1
89
27
4
1
1
4
1

Classes

Class Line # Actions
JalviewChangeSupport 26 4 4
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package jalview.gui;
22   
23    import java.beans.PropertyChangeEvent;
24    import java.beans.PropertyChangeListener;
25   
 
26    public class JalviewChangeSupport implements PropertyChangeListener
27    {
 
28  0 toggle public void propertyChange(PropertyChangeEvent evt)
29    {
30    // Handle change events - most are simply routed to other sources
31  0 changeSupport.firePropertyChange(evt);
32    }
33   
34    /**
35    * change listeners are notified of changes to resources so they can update
36    * their state. E.g. - the 'services' property notifies when the available set
37    * of web service endpoints have changed.
38    */
39    private java.beans.PropertyChangeSupport changeSupport = new java.beans.PropertyChangeSupport(
40    this);
41   
42    /**
43    * @param propertyName
44    * @param listener
45    * @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.lang.String,
46    * java.beans.PropertyChangeListener)
47    */
 
48  0 toggle public void addJalviewPropertyChangeListener(String propertyName,
49    PropertyChangeListener listener)
50    {
51  0 changeSupport.addPropertyChangeListener(propertyName, listener);
52    }
53   
54    /**
55    * @param listener
56    * @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.beans.PropertyChangeListener)
57    */
 
58  0 toggle public void addJalviewPropertyChangeListener(
59    PropertyChangeListener listener)
60    {
61  0 changeSupport.addPropertyChangeListener(listener);
62    }
63   
64    /*
65    * @param propertyName
66    *
67    * @param oldValue
68    *
69    * @param newValue
70    *
71    * @see java.beans.PropertyChangeSupport#firePropertyChange(java.lang.String,
72    * java.lang.Object, java.lang.Object) public void firePropertyChange(String
73    * propertyName, Object oldValue, Object newValue) {
74    * changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
75    */
76   
77    /**
78    * @param propertyName
79    * @param listener
80    * @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.lang.String,
81    * java.beans.PropertyChangeListener)
82    */
 
83  0 toggle public void removeJalviewPropertyChangeListener(String propertyName,
84    PropertyChangeListener listener)
85    {
86  0 changeSupport.removePropertyChangeListener(propertyName, listener);
87    }
88   
89    }