Changeset 2871 in josm for trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
- Timestamp:
- 17.01.2010 16:37:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
r2005 r2871 10 10 import javax.swing.JToggleButton; 11 11 12 import org.openstreetmap.josm.tools.Destroyable; 13 12 14 /** 13 15 * Just a toggle button, with smaller border and icon only to display in … … 16 18 * @author imi 17 19 */ 18 public class IconToggleButton extends JToggleButton implements PropertyChangeListener {20 public class IconToggleButton extends JToggleButton implements PropertyChangeListener, Destroyable { 19 21 20 22 public boolean groupbutton; … … 49 51 } 50 52 } 53 54 public void destroy() { 55 Action action = getAction(); 56 if (action instanceof Destroyable) { 57 ((Destroyable) action).destroy(); 58 } 59 } 51 60 }
Note: See TracChangeset
for help on using the changeset viewer.
