| Class | Line # | Actions | |||
|---|---|---|---|---|---|
| JalviewChangeSupport | 27 | 4 | 4 |
| 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 | @Deprecated | |
| 27 | public class JalviewChangeSupport implements PropertyChangeListener | |
| 28 | { | |
| 29 | 0 | public void propertyChange(PropertyChangeEvent evt) |
| 30 | { | |
| 31 | // Handle change events - most are simply routed to other sources | |
| 32 | 0 | changeSupport.firePropertyChange(evt); |
| 33 | } | |
| 34 | ||
| 35 | /** | |
| 36 | * change listeners are notified of changes to resources so they can update | |
| 37 | * their state. E.g. - the 'services' property notifies when the available set | |
| 38 | * of web service endpoints have changed. | |
| 39 | */ | |
| 40 | private java.beans.PropertyChangeSupport changeSupport = new java.beans.PropertyChangeSupport( | |
| 41 | this); | |
| 42 | ||
| 43 | /** | |
| 44 | * @param propertyName | |
| 45 | * @param listener | |
| 46 | * @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.lang.String, | |
| 47 | * java.beans.PropertyChangeListener) | |
| 48 | */ | |
| 49 | 0 | public void addJalviewPropertyChangeListener(String propertyName, |
| 50 | PropertyChangeListener listener) | |
| 51 | { | |
| 52 | 0 | changeSupport.addPropertyChangeListener(propertyName, listener); |
| 53 | } | |
| 54 | ||
| 55 | /** | |
| 56 | * @param listener | |
| 57 | * @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.beans.PropertyChangeListener) | |
| 58 | */ | |
| 59 | 0 | public void addJalviewPropertyChangeListener( |
| 60 | PropertyChangeListener listener) | |
| 61 | { | |
| 62 | 0 | changeSupport.addPropertyChangeListener(listener); |
| 63 | } | |
| 64 | ||
| 65 | /* | |
| 66 | * @param propertyName | |
| 67 | * | |
| 68 | * @param oldValue | |
| 69 | * | |
| 70 | * @param newValue | |
| 71 | * | |
| 72 | * @see java.beans.PropertyChangeSupport#firePropertyChange(java.lang.String, | |
| 73 | * java.lang.Object, java.lang.Object) public void firePropertyChange(String | |
| 74 | * propertyName, Object oldValue, Object newValue) { | |
| 75 | * changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | |
| 76 | */ | |
| 77 | ||
| 78 | /** | |
| 79 | * @param propertyName | |
| 80 | * @param listener | |
| 81 | * @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.lang.String, | |
| 82 | * java.beans.PropertyChangeListener) | |
| 83 | */ | |
| 84 | 0 | public void removeJalviewPropertyChangeListener(String propertyName, |
| 85 | PropertyChangeListener listener) | |
| 86 | { | |
| 87 | 0 | changeSupport.removePropertyChangeListener(propertyName, listener); |
| 88 | } | |
| 89 | ||
| 90 | } |