Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   mutually exclusive actions (http://www.velocityreviews.com/forums/t504078-mutually-exclusive-actions.html)

visionset 05-04-2007 11:23 AM

mutually exclusive actions
 
I tend to use an AbstractAction subclass as a factory for the usual
JButtons, JMenuItems etc.
Now I want to use mutually exclusive controls in the same way. ButtonGroup
seems the only inbuilt way to enforce mutual exclusivity. Would it be best
to emulate a ButtonGroups functionallity but to track Actions?
Now internally I guess ButtonGroup manages the deselections, so my group
implementation will need to do that, but therefore my Action implementation
will need to keep references to the mutually exclusive controls its factory
methods create. Does this sound like a plan? Alternatives?

--
Mike W




All times are GMT. The time now is 02:32 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.