Re: id attribute of buttongroup tag
[email protected] Mon, 30 May 2005 19:55:13 -0700
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
I finally took the time to look at the ButtonGroup issue - and this really was an issue. Unfortunately, the JButtonGroup is not a Component and therefore wasn't be handled by the idmap etc.. Automatic mapping only works with components that inherit from Component. Even worse, manually mapping doesn't work either since the SwingEngine's find method only returns Components. A work around is also hard to find since after a J(Radio)Button has be instantiated and added into a ButtonGroup, neither the button nor its buttonmodel seem to know about it - at least there are no getters one could ask for this kind of information. While I'd rather spend my time working on Swixml 2.0, this issue certainly deserves fixing and will be addressed in the upcoming point release. Here is the deal: Automatic mapping of ButtonGroups will work. If the buttengroup tag was given an id attribute, the ButtonGroup object will also be put into the idmap accessiable via SwingEngine's getIdMap() method. However, since the SwingEngine's find() method returns a Component and I don't want to change the signature of that method - at least not in the1.x code-line, the find method will NOT return the ButtonGroup object. While this is not a great (consistent) solution, it at least allows you to get a handle on the ButtonGroup. -wolf -- Wolf Paulus 707.202.3937 [email protected] C a r l s b a d C u b e s Dedicated to Excellence CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. On May 12, 2005, at 1:42 PM, [email protected] wrote: > Hello, > > it seems that id attribute of buttongroup tag is not handled > correctly. > more precisely created ButtonGroup component is not assigned to > correspondent field of client object. > > In attachment there is a test case. > > Regards, > Vitali. > --- > Оригинальные запчасти Mazda. Цены не > кусаются! Убедитесь сами: 218-99-33, > 218-99-66, http://www.mazda.by/own/spareparts/price_oe/ > > <ButtonGroupIdTest.java> > <frame.xml> > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > _______________________________________________ Forum mailing list [email protected] http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com