|
|
@ -389,9 +389,9 @@ public class UIButtonGroup<T> extends JPanel implements GlobalNameObserver, UIOb |
|
|
|
* @param l |
|
|
|
* @param l |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addChangeListener(ChangeListener l) { |
|
|
|
public void addChangeListener(ChangeListener l) { |
|
|
|
|
|
|
|
listenerList.add(ChangeListener.class, l); |
|
|
|
for (int i = 0; i < labelButtonList.size(); i++) { |
|
|
|
for (int i = 0; i < labelButtonList.size(); i++) { |
|
|
|
labelButtonList.get(i).addChangeListener(l); |
|
|
|
labelButtonList.get(i).addChangeListener(l); |
|
|
|
listenerList.add(ChangeListener.class, l); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -399,9 +399,9 @@ public class UIButtonGroup<T> extends JPanel implements GlobalNameObserver, UIOb |
|
|
|
* @param l |
|
|
|
* @param l |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void removeChangeListener(ChangeListener l) { |
|
|
|
public void removeChangeListener(ChangeListener l) { |
|
|
|
|
|
|
|
listenerList.remove(ChangeListener.class, l); |
|
|
|
for (int i = 0; i < labelButtonList.size(); i++) { |
|
|
|
for (int i = 0; i < labelButtonList.size(); i++) { |
|
|
|
labelButtonList.get(i).removeChangeListener(l); |
|
|
|
labelButtonList.get(i).removeChangeListener(l); |
|
|
|
listenerList.remove(ChangeListener.class, l); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|