Package org.spiffyui.client.widgets.button

Examples of org.spiffyui.client.widgets.button.SimpleButton


        m_feedbacks.add(m_packageNameFeedback);
        add(m_packageNameFeedback, id + "packageNameRow");
         
        addBuildTypes(id);
       
        m_submit = new SimpleButton(Index.getStrings().projectCreatorSubmit());
        m_submit.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event)
            {
                event.preventDefault();
                createProject();
View Full Code Here


        if (Index.userLoggedIn()) {
            buttonText = Index.getStrings().secData();
        } else {
            buttonText = Index.getStrings().getSecData();
        }
        final SimpleButton authTestButton = new SimpleButton(buttonText);
       
        if (Index.isAppEngine()) {
            authTestButton.setText(Index.getStrings().installMessage());
            authTestButton.setEnabled(false);
        }

        authTestButton.getElement().setId("authTestBtn");
        this.add(authTestButton, "testAuth");

        authTestButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event)
            {
                authTestButton.setInProgress(true);
                //a little timer to simulate time it takes to set in progress back to false
                Timer t = new Timer() {
                    @Override
                    public void run()
                    {
                        authTestButton.setInProgress(false);
                        getData();
                    }

                };
                t.schedule(1000);
View Full Code Here

    private void addSimpleButton()
    {
        /*
         * Add the simple button
         */
        final SimpleButton simple = new SimpleButton(Index.getStrings().simpleButton());
        simple.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event)
            {
                simple.setInProgress(true);
                //a little timer to simulate time it takes to set loading back to false
                Timer t = new Timer() {

                    @Override
                    public void run()
                    {
                        simple.setInProgress(false);
                    }
                   
                };
                t.schedule(2000);
            }
View Full Code Here

        if (Index.userLoggedIn()) {
            buttonText = Index.getStrings().secData();
        } else {
            buttonText = Index.getStrings().getSecData();
        }
        final SimpleButton doLoginButton = new SimpleButton(buttonText);
       
        if (Index.isAppEngine()) {
            doLoginButton.setText(Index.getStrings().installMessage());
            doLoginButton.setEnabled(false);
        }

        doLoginButton.getElement().setId("doLoginBtn");

        doLoginButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event)
            {
                doLoginButton.setInProgress(true);
                //a little timer to simulate time it takes to set in progress back to false
                Timer t = new Timer() {
                    @Override
                    public void run()
                    {
                        doLoginButton.setInProgress(false);
                        AuthPanel.getData(true);
                    }

                };
                t.schedule(1000);
View Full Code Here

TOP

Related Classes of org.spiffyui.client.widgets.button.SimpleButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.