1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    4
    Vote Rating
    0
    cdrsanto is on a distinguished road

      0  

    Question Please, put as a hyperlink (to open an address of a page) when the button is clicked.

    Please, put as a hyperlink (to open an address of a page) when the button is clicked.


    Please, put as a hyperlink (to open an address of a page) when the button is clicked, for example open the http://www.google.com.

    My code is:


    package demo.app.client;

    import com.extjs.gxt.ui.client.event.ButtonEvent;
    import com.extjs.gxt.ui.client.event.SelectionListener;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.MessageBox;
    import com.extjs.gxt.ui.client.widget.button.Button;
    import com.extjs.gxt.ui.client.widget.button.ButtonBar;
    import com.google.gwt.user.client.ui.RootPanel;


    /**
    * Entry point classes define <code>onModuleLoad()</code>.
    */
    public class App extends LayoutContainer {

    /**
    * This is the entry point method.
    */
    public void onModuleLoad() {
    ButtonBar bar = new ButtonBar();


    /* BOTÃO 1*/
    Button button1 = new Button("PRINCIPAL", new SelectionListener<ButtonEvent>(){

    @Override
    public void componentSelected(ButtonEvent ce) {
    MessageBox.confirm("A.P.P.S", "TRABALHO SOBRE EXT-GWT - 1º BIMESTRE PROF. DANIEL LAMOSA", null);
    // TODO Auto-generated method stub

    }

    } );
    button1.setBorders(true);
    button1.setToolTip("IR PARA PRINCIPAL");

    bar.setShadow(true);
    bar.setBorders(true);
    bar.add(button1);


    /* BOTÃO 2*/
    Button button2 = new Button("ADD CLIENTE", new SelectionListener<ButtonEvent>(){

    @Override
    public void componentSelected(ButtonEvent ce) {
    MessageBox.confirm("A.P.P.S", "TRABALHO SOBRE EXT-GWT - 1º BIMESTRE PROF. DANIEL LAMOSA", null);
    // TODO Auto-generated method stub

    }

    } );
    button2.setBorders(true);
    button2.setToolTip("IR PARA ADD CLIENTE");

    bar.setShadow(true);
    bar.add(button2);


    /* BOTÃO 3*/

    Button button3 = new Button("LISTAR CLIENTES", new SelectionListener<ButtonEvent>(){

    @Override
    public void componentSelected(ButtonEvent ce) {
    MessageBox.confirm("A.P.P.S", "TRABALHO SOBRE EXT-GWT - 1º BIMESTRE PROF. DANIEL LAMOSA", null);
    // TODO Auto-generated method stub

    }

    } );
    button3.setBorders(true);
    button3.setToolTip("IR PARA LISTAR CLIENTE");

    bar.setShadow(true);
    bar.add(button3);





    RootPanel.get().add(bar);
    }
    }


    I am waiting for response ... thanks...

    Claudio dos Reis

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Java? Wrong forum matey!

  3. #3
    Ext User
    Join Date
    Mar 2009
    Posts
    4
    Vote Rating
    0
    cdrsanto is on a distinguished road

      0  

    Question


    Quote Originally Posted by Animal View Post
    Java? Wrong forum matey!
    I am using EXT GWT ... this forum is indicated by the web site to get help.

  4. #4
    Ext GWT Premium Member
    Join Date
    Apr 2009
    Location
    NYC
    Posts
    111
    Vote Rating
    1
    stan229 is on a distinguished road

      0  

  5. #5
    Ext User
    Join Date
    Mar 2009
    Posts
    4
    Vote Rating
    0
    cdrsanto is on a distinguished road

      0  

    Thumbs up


    Quote Originally Posted by stan229 View Post


    Thanks Dude ...

Thread Participants: 2