scravy/AbusingSwing — pull request #2 by snpnx (2012-02-28 15:37:20+00:00)
Title: new function asList()

Added a new function 'asList()' in MagicComponents to return a java.util.List of Components matching the selector string.
Right now, there is no convenient way (or is there?) of doing component-specific functions with a bunch of components that are identified by i.e. the same class in the describing XML file for a MagicPanel.

With this function, I can for example set the date on every datepicker in a Window null by doing something like

```java
for(final JXDatePicker date : $(".dateGroup1").asList(JXDatePicker.class)){
date.setDate(null);
date.setEnabled(false);
}
```