Hi,
If you refer to the last item selected in a ComboBox... this could be
done with a global variable, and set it when an item is selected, i.e:
//global variable
Record selectedItem;
[...]
//ComboBox listener implementation
combobox.addListener(new ComboBoxListenerAdapter() {
public void onSelect(ComboBox comboBox, Record
record, int index) {
selectedItem = record;
}
});
I hope it helps you...
Leo
On Oct 20, 10:00 am, "Romeryto Lira" <[EMAIL PROTECTED]> wrote:
> I have some ComboBox in my FormPanel.
>
> *How do I know the last component selected?*
>
> Is because when I click on a button in FormPanel want to have this
> information to perform a specific action on my application.
>
> --------------------------------------------------------------------------------------------------
> "Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
> Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
> com ele conquistará o mundo." (Albert Einstein)
> ╔════════════════════════════════════════╗
> ROMERYTO VIEIRA LIRA
> Bacharelando em Ciência da Computação - UFCG
> Membro do SegHidro2 - LSD -http://seghidro.lsd.ufcg.edu.br
> Membro do Grupo de Suporte Guardians -www.lcc.ufcg.edu.br
> Página Pessoal:http://romeryto.googlepages.com
> Blog:http://olhartecnologico.blogspot.com
> ╚════════════════════════════════════════╝
>
> Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
> ambiente.
> ----------------------------------------------------------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---