Hello,
I'm not very expert.i'm also beginner.if u want to get the button click
event ,you can try like the following ways.



 SelectionListener listener = new SelectionListener<ComponentEvent>() {
             public void componentSelected(ComponentEvent ce) {
                 Button btn = (Button) ce.component;
               Info.display("Click Event", "The '{0}' button was clicked.",
btn.getText());
              }
                 };
             createButton = new Button("Ok",listener);
              formular = new FormPanel();
              TextField<String> name = new TextField<String>();
              name.setFieldLabel("Nachname");
               formular.add(name);
                formular.addButton(createButton);
                   RootPanel.get().add(formular);


I think ,this url will help you.
http://www.extjs.com/explorer/#buttons


On Thu, Oct 16, 2008 at 4:54 PM, Michi_de <[EMAIL PROTECTED]> wrote:

>
> Hi!
> Im a beginer in GWT and i have to use Ext GWT.
> But my problem is: i cant get any usefull tutorials or anything, to
> get started with some of Ext GWT Widgets. Like the FormPanel.
> As i cant register to the Ext GWT Forum, i give a try here, maybe
> someone uses Ext GWT too and can help me.
>
> My problem is pretty simple:
> I create a FormPanel like this:
>
> public class Formular implements EntryPoint  {
>
>        private FormPanel formular ;
>        private Button createButton;
>
>
>        public void onModuleLoad() {
>                createButton = new Button("Ok");
>                form = new FormPanel();
>
>
>                TextField<String> name = new TextField<String>();
>                name.setFieldLabel("Nachname");
>
>                form.add(nachname);
>                        form.addButton(createButton);
>
>
>                RootPanel.get("form").add(form);
>                }
> }
>
> Actually this form works. I can add things and stuff and hit the
> button. But i cant wire any action listeners to this button. I just
> dont get it, how this should be working? The button is not the same
> button, as the GWT Button. The Ext GWT Button dont have any
> "addClickListener()" method.
> And so far i just cant find anything, to procede with the form.
> This form just suck terribly.
>
> I wanted to add a clickListener to the button and then start a method.
> Symple as it is in GWT. In Ext GWT i just cant do anything.
>
> Any hints, on how to work with Ext GWT Form Panels?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to