root / trunk / libraries / libUIComponent / src / org / gvsig / gui / beans / controls / combobutton / ModeToggleButtonGroup.java @ 13655
History | View | Annotate | Download (814 Bytes)
1 |
/*
|
---|---|
2 |
GeoGebra - Dynamic Geometry and Algebra
|
3 |
Copyright Markus Hohenwarter, http://www.geogebra.at
|
4 |
|
5 |
This file is part of GeoGebra.
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify it
|
8 |
under the terms of the GNU General Public License as published by
|
9 |
the Free Software Foundation; either version 2 of the License, or
|
10 |
(at your option) any later version.
|
11 |
*/
|
12 |
package org.gvsig.gui.beans.controls.combobutton; |
13 |
|
14 |
import javax.swing.ButtonGroup; |
15 |
import javax.swing.JPopupMenu; |
16 |
|
17 |
public class ModeToggleButtonGroup extends ButtonGroup { |
18 |
private static final long serialVersionUID = 7060814534660638147L; |
19 |
private JPopupMenu activePopMenu; |
20 |
|
21 |
public void setActivePopupMenu(JPopupMenu popMenu) { |
22 |
activePopMenu = popMenu; |
23 |
} |
24 |
|
25 |
public JPopupMenu getActivePopupMenu() { |
26 |
return activePopMenu;
|
27 |
} |
28 |
} |