Olá a todos.
Estou iniciando os meus estudos com Flex e me deparei com um DataGrid .
Montei ele da seguinte forma no flex:
<mx:DataGrid x="86" y="60" width="463" height="200" id="dataGrid1" dataProvider="{listaFuncionario}" click="loadData(int(dataGrid1.selectedIndex))">
<mx:columns>
<mx:DataGridColumn headerText="Matrícula" dataField="matricula"/>
<mx:DataGridColumn headerText="Nome" dataField="nome"/>
</mx:columns>
</mx:DataGrid>
e no java:
while (rs.next()) {
HashMap hashmap_funcionario = new HashMap();
hashmap_cidades.put("matricula",rs.getString("matricula"));
hashmap_cidades.put("nome", rs.getString("nome"));
}
OK FUNCIONA! Mas eu queria algo mais orientada a objetos do tipo:
List<Funcionario> listaFuncionario = new ArrayList<Funcionario>();
while (rs.next()) {
Funcionario f = new Funcionario();
f.setMatricula(rs.getString("matricula"));
f.setNome(rs.getString("nome"))
listaFuncionario.add(f);
}
E lá no data grid eu colocar algo do tipo:
<mx:DataGridColumn headerText="Matrícula" dataField="listaFuncionario.matricula"/>
<mx:DataGridColumn headerText="Nome" dataField="listaFuncionario.nome"/>
O dataGrid funciona somente com HashMap? No caso eu estou trabalhando com Hibertante e toda hora vou ter que fazer um for para transformar as minhas listas de objetos em listas de HashMap? 
Alguêm tem um exemplo usando dataGrid com uma lista de objetos que vem do DAO para mostras?
Obrigado.