Re: Luxor question: iteration through controls
Gerald Bauer <[email protected]>
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Yuri, the current Luxor Forms architecture (Beta 8) is very simple and requires lots of code. It was never meant for dynamic (code-less) forms. I plan to add support for dynamic forms in the upcoming Beta 9. > Is it a way I can walk through all elements on the > form > after XulForm has been loaded? > > It's a function getInputControls() but it returns > empty > iterator. It seems to work only after "new > XulInput(this, "name")". > But I need to traverse all inputs as they were > loaded from XUL > since I have zillions of them and want to automate > their handling. Please, check the mailing list for answers. The best method likely is to add the getComponentById() patch using the JComponent.getName() method for lookups. I've already added the JComponent.getName() lookup machinery to the upcoming Beta 9 and hope to get it out soon. > Also what's the point of creating XulInput to get > access to control? > Isn't it more logical to have something like: > > XulInput getInput(String inputName); ?? > > So they all will be pre-created and traversable ? Yeah. You're right. XUL forms have to become simpler and easier. - Gerald ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5